# How to construct proximity query

**URL:** <https://discuss.elastic.co/t/how-to-construct-proximity-query/46307>\
**Category:** Elasticsearch\
**Created:** [April 5, 2016, 12:01am UTC](https://discuss.elastic.co/t/how-to-construct-proximity-query/46307 "2016-04-05T00:01:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eprst](https://avatars.discourse-cdn.com/v4/letter/e/a6a055/32.png) [@eprst](https://discuss.elastic.co/u/eprst)\
**Post date:** [April 5, 2016, 12:01am UTC](https://discuss.elastic.co/t/how-to-construct-proximity-query/46307/1 "2016-04-05T00:01:51Z")

</div>

i want to construct query which will match the phrase with slop where 1-2 words can be missing. it is not possible with match\_phrase. so may be it is possible with some span query?

---

<div class="post-metadata">

**Author:** ![eprst](https://avatars.discourse-cdn.com/v4/letter/e/a6a055/32.png) [@eprst](https://discuss.elastic.co/u/eprst)\
**Post date:** [April 5, 2016, 6:51pm UTC](https://discuss.elastic.co/t/how-to-construct-proximity-query/46307/2 "2016-04-05T18:51:00Z")

</div>

will anyone answer me? or should i provide more details or what?

---

<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:** [July 5, 2017, 11:02pm UTC](https://discuss.elastic.co/t/how-to-construct-proximity-query/46307/3 "2017-07-05T23:02:08Z")

</div>


