# Boolean should and proximity?

**URL:** <https://discuss.elastic.co/t/boolean-should-and-proximity/243734>\
**Category:** Elasticsearch\
**Created:** [August 4, 2020, 2:41pm UTC](https://discuss.elastic.co/t/boolean-should-and-proximity/243734 "2020-08-04T14:41:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![flm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flm/32/3169_2.png) [@flm](https://discuss.elastic.co/u/flm)\
**Post date:** [August 4, 2020, 2:41pm UTC](https://discuss.elastic.co/t/boolean-should-and-proximity/243734/1 "2020-08-04T14:41:41Z")

</div>

Is there a way to mix boolean should and span or proximity queries?

I want to match documents that contain X% of a group of terms in any order but not further apart from each other than distance D.

Is this possible?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 1, 2020, 2:41pm UTC](https://discuss.elastic.co/t/boolean-should-and-proximity/243734/2 "2020-09-01T14:41:43Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
