# Multi length ngrams

**URL:** <https://discuss.elastic.co/t/multi-length-ngrams/12022>\
**Category:** Elasticsearch\
**Created:** [May 18, 2013, 9:15pm UTC](https://discuss.elastic.co/t/multi-length-ngrams/12022 "2013-05-18T21:15:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan\_Camp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonathan_camp/32/2329_2.png) [@Jonathan\_Camp](https://discuss.elastic.co/u/Jonathan_Camp)\
**Post date:** [May 18, 2013, 9:15pm UTC](https://discuss.elastic.co/t/multi-length-ngrams/12022/1 "2013-05-18T21:15:12Z")

</div>

Hi all, I am trying to wrap my head around indexing a field with ngrams of  
multiple lengths (e.g. 3 to 8). What I am trying understand is how the  
quality of matches is correlated with the number of ngrams.

This discussion had quite of bit of useful info:  
[https://groups.google.com/d/topic/elasticsearch/QXYvb27Pvl8/discussion](https://groups.google.com/d/topic/elasticsearch/QXYvb27Pvl8/discussion) but  
it doesn't really help with figureing out _what_ the range should be.  
Ideally I'd like a calculator that shows the relationship between ngram  
parameters, index size, and expected query time. But of course I understand  
that without a full description of the source data and use cases this is  
just about impossible.

Any pointers would be helpful.

Thanks!  
Jonathan

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:35am UTC](https://discuss.elastic.co/t/multi-length-ngrams/12022/2 "2017-07-06T02:35:51Z")

</div>

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


