# Search multiple words within the same paragraph in the target document?

**URL:** <https://discuss.elastic.co/t/search-multiple-words-within-the-same-paragraph-in-the-target-document/210093>\
**Category:** Elasticsearch\
**Created:** [December 2, 2019, 1:40am UTC](https://discuss.elastic.co/t/search-multiple-words-within-the-same-paragraph-in-the-target-document/210093 "2019-12-02T01:40:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddream777](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ddream777/32/58598_2.png) [@ddream777](https://discuss.elastic.co/u/ddream777)\
**Post date:** [December 2, 2019, 1:40am UTC](https://discuss.elastic.co/t/search-multiple-words-within-the-same-paragraph-in-the-target-document/210093/1 "2019-12-02T01:40:09Z")

</div>

I was wondering whether it's possible to set a condition so as to limit the range of the search to within a paragraph, the query being a multiple-word one.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [December 2, 2019, 9:32am UTC](https://discuss.elastic.co/t/search-multiple-words-within-the-same-paragraph-in-the-target-document/210093/2 "2019-12-02T09:32:28Z")

</div>

Hey,

not sure if this matches your requirement, but have you taken a look at the [intervals](https://www.elastic.co/guide/en/elasticsearch/reference/7.4/query-dsl-intervals-query.html)?

--Alex

---

<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:** [December 30, 2019, 9:32am UTC](https://discuss.elastic.co/t/search-multiple-words-within-the-same-paragraph-in-the-target-document/210093/3 "2019-12-30T09:32:34Z")

</div>

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