# Minimum\_should\_match does not work with ngram

**URL:** <https://discuss.elastic.co/t/minimum-should-match-does-not-work-with-ngram/87439>\
**Category:** Elasticsearch\
**Created:** [May 29, 2017, 11:13am UTC](https://discuss.elastic.co/t/minimum-should-match-does-not-work-with-ngram/87439 "2017-05-29T11:13:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![raffis](https://avatars.discourse-cdn.com/v4/letter/r/3be4f8/32.png) [@raffis](https://discuss.elastic.co/u/raffis)\
**Post date:** [May 29, 2017, 11:13am UTC](https://discuss.elastic.co/t/minimum-should-match-does-not-work-with-ngram/87439/1 "2017-05-29T11:13:12Z")

</div>

Hows does [https://www.elastic.co/guide/en/elasticsearch/guide/current/ngrams-compound-words.html2](https://www.elastic.co/guide/en/elasticsearch/guide/current/ngrams-compound-words.html2) work with 5.x?

Looks like a bug, since it does not work with 5.x. minumum\_should\_match gets ignored.

the ngram filter does actually work, but if I setup a query I want a minimum match of found ngrams otherwise I would get lots of useless documents in the result.

---

<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:** [June 26, 2017, 11:13am UTC](https://discuss.elastic.co/t/minimum-should-match-does-not-work-with-ngram/87439/2 "2017-06-26T11:13:17Z")

</div>

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