# Term suggester option for increased word length

**URL:** <https://discuss.elastic.co/t/term-suggester-option-for-increased-word-length/14276>\
**Category:** Elasticsearch\
**Created:** [November 5, 2013, 10:33pm UTC](https://discuss.elastic.co/t/term-suggester-option-for-increased-word-length/14276 "2013-11-05T22:33:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevins](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kevins/32/946_2.png) [@kevins](https://discuss.elastic.co/u/kevins)\
**Post date:** [November 5, 2013, 10:33pm UTC](https://discuss.elastic.co/t/term-suggester-option-for-increased-word-length/14276/1 "2013-11-05T22:33:00Z")

</div>

I am using the Term Suggester found here:  
[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-suggesters-term.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-suggesters-term.html)

When send the text of "yo" for term suggest I expect to receive "young" in  
the returned options. It is a high frequency word in the data. However, I  
need to send 4 letters in order to make it to appear.

_Question is_ how do I get longer word suggests returned when only typing  
two letters?

I have set the following options for my term argument:

'min\_word\_len' =\> 2,  
'size' =\> $size,  
'sort' =\> 'frequency',  
'prefix\_len' =\> 2,  
'field' =\> 'title'

Here are my results.

text of "yo" results:

options":[{"text":"you","score":0.5,"freq":10}]}]}"

text of "you" results:

options":[{"text":"your","score":0.6666666,"freq":2}]}]}"

text of "youn" results:

options":[{"text":"young","score":0.75,"freq":33},{"text":"your","score":0.75,"freq":13},{"text":"you","score":0.6666666,"freq":10}]}]}"

--  
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:08am UTC](https://discuss.elastic.co/t/term-suggester-option-for-increased-word-length/14276/2 "2017-07-06T02:08:39Z")

</div>


