# How can I achieve query loosening in elasticsearch?

**URL:** <https://discuss.elastic.co/t/how-can-i-achieve-query-loosening-in-elasticsearch/14075>\
**Category:** Elasticsearch\
**Created:** [October 23, 2013, 3:18pm UTC](https://discuss.elastic.co/t/how-can-i-achieve-query-loosening-in-elasticsearch/14075 "2013-10-23T15:18:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jofen](https://avatars.discourse-cdn.com/v4/letter/j/8c91f0/32.png) [@Jofen](https://discuss.elastic.co/u/Jofen)\
**Post date:** [October 23, 2013, 3:18pm UTC](https://discuss.elastic.co/t/how-can-i-achieve-query-loosening-in-elasticsearch/14075/1 "2013-10-23T15:18:44Z")

</div>

For example, I want to search "text1 text2 text3 text4 text5" in \_all fields, and my preference would be find the documents that have all the five text terms in it, but usually it would return with very little hit. So I would want to do some query loosening here. e.g. I would also accept documents that contains 3 or 4 of the terms. Is there a way to do it in a single query call to elasticsearch?

Thanks.

---

<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 6, 2017, 2:11am UTC](https://discuss.elastic.co/t/how-can-i-achieve-query-loosening-in-elasticsearch/14075/2 "2017-07-06T02:11:00Z")

</div>

Closed on July 6, 2017, 2:11am UTC


