# Multiple search terms with radius

**URL:** <https://discuss.elastic.co/t/multiple-search-terms-with-radius/242294>\
**Category:** Elasticsearch\
**Created:** [July 23, 2020, 7:23am UTC](https://discuss.elastic.co/t/multiple-search-terms-with-radius/242294 "2020-07-23T07:23:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phil795](https://avatars.discourse-cdn.com/v4/letter/p/dc4da7/32.png) [@Phil795](https://discuss.elastic.co/u/Phil795)\
**Post date:** [July 23, 2020, 7:23am UTC](https://discuss.elastic.co/t/multiple-search-terms-with-radius/242294/1 "2020-07-23T07:23:11Z")

</div>

For our search engine I want to search in PDF documents for related search terms.

For example: `oil mist`

It is relevant that each reference contains `oil` and `mist`.

In addition, I would like to determine how many words are between the two search terms. However, I cannot find the right parameter for this.

My search query currently looks like this

```auto
{ 
    "query": {
        "match_phrase": { 
            "attachment.content": {
                "query": "oil mist"
            }
        } 
    },
    "_source": ["filename", "folder", "attachment.date", "attachment.author", "attachment.language", "attachment.title"],
    "highlight" : {
        "number_of_fragments": 150,
        "fields" : {
            "attachment.content" : { "type": "plain" }
        }
    }
}

```

---

<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:** [August 20, 2020, 7:23am UTC](https://discuss.elastic.co/t/multiple-search-terms-with-radius/242294/2 "2020-08-20T07:23:14Z")

</div>

Closed on August 20, 2020, 7:23am UTC

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