# Phrase-based proximity search

**URL:** <https://discuss.elastic.co/t/phrase-based-proximity-search/227929>\
**Category:** Elasticsearch\
**Created:** [April 14, 2020, 1:54pm UTC](https://discuss.elastic.co/t/phrase-based-proximity-search/227929 "2020-04-14T13:54:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![whatgeorgemade](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/whatgeorgemade/32/103246_2.png) [@whatgeorgemade](https://discuss.elastic.co/u/whatgeorgemade)\
**Post date:** [April 14, 2020, 1:54pm UTC](https://discuss.elastic.co/t/phrase-based-proximity-search/227929/1 "2020-04-14T13:54:27Z")

</div>

Hi all,

There seem to be quite a few other threads about this on the forum but none have answers, so forgive me for posting something that has been asked before.

I'm looking for a way to do a phrase-based proximity search. i.e. the phrases `was gifted` and `tennis shoes` within 2 terms of each other. Order doesn't matter, so both these examples would match:

```
> he was gifted some tennis shoes
> the tennis shoes were kindly gifted to her

```

Does anyone know of a way to do this?

Thanks in advance.

---

<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:** [May 12, 2020, 1:54pm UTC](https://discuss.elastic.co/t/phrase-based-proximity-search/227929/2 "2020-05-12T13:54:37Z")

</div>

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