# How large can we increment index.max\_ngram\_diff?

**URL:** <https://discuss.elastic.co/t/how-large-can-we-increment-index-max-ngram-diff/187303>\
**Category:** Elasticsearch\
**Created:** [June 25, 2019, 10:40am UTC](https://discuss.elastic.co/t/how-large-can-we-increment-index-max-ngram-diff/187303 "2019-06-25T10:40:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Keita\_Iwamoto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keita_iwamoto/32/48723_2.png) [@Keita\_Iwamoto](https://discuss.elastic.co/u/Keita_Iwamoto)\
**Post date:** [June 25, 2019, 10:40am UTC](https://discuss.elastic.co/t/how-large-can-we-increment-index-max-ngram-diff/187303/1 "2019-06-25T10:40:53Z")

</div>

Hi, I have a question about `NGramTokenizer` .  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html)

I want to widen the difference between min\_gram and max\_gram. For example, `min_gram = 1` and `max_gram = 20`. I know that it needs to set `index.max_ngram_diff` to suppress warning.

Why does this setting `index.max_ngram_diff` exist?  
Once I tried to set big difference of max and min without setting `index.max_ngram_diff` and ran es.  
It didn't happen anything just seeing `Deprecated big difference between max_gram and min_gram in NGram Tokenizer,expected difference must be less than or equal to: [1]`.  
It makes any bad effect (ex. slowly or failure search) if I ignore it?

Thank you.

---

<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 23, 2019, 10:40am UTC](https://discuss.elastic.co/t/how-large-can-we-increment-index-max-ngram-diff/187303/2 "2019-07-23T10:40:55Z")

</div>

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