# Suggest next word without suggesting entire field value

**URL:** <https://discuss.elastic.co/t/suggest-next-word-without-suggesting-entire-field-value/20272>\
**Category:** Elasticsearch\
**Created:** [October 15, 2014, 11:57pm UTC](https://discuss.elastic.co/t/suggest-next-word-without-suggesting-entire-field-value/20272 "2014-10-15T23:57:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard\_Tier](https://avatars.discourse-cdn.com/v4/letter/r/a88e57/32.png) [@Richard\_Tier](https://discuss.elastic.co/u/Richard_Tier)\
**Post date:** [October 15, 2014, 11:57pm UTC](https://discuss.elastic.co/t/suggest-next-word-without-suggesting-entire-field-value/20272/1 "2014-10-15T23:57:59Z")

</div>

Hi,

I am a bit stuck with suggestions. I would like to suggest the next word,  
and I would like the suggestion to occur even if the word the user provides  
is in the middle of a field's value (and not just at the start). e.g.,

document containing  
{ body: "nice quick bronw fox jumped over" }

quick --\> quick brown  
brown --\> brown fox  
quick bro --\> quick brown

However, when I use "completion" suggester I am only offered completion  
options if the search term is at the start of the field value - so "nice"  
in this case.

Moreover I am offered the entire field value, but I would like only the  
next word.

I followed the tutorial here  
[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-suggesters-completion.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-suggesters-completion.html)  
.

I also experimented with the other suggestors but they were not suitable

- term: suggests single word. Does not suggest next word.
- phrase: suggest multiple words, but does not suggest next word

This seems an obvious use case for suggestors so I think I am missing  
something fundamental here?

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/16d19ffd-986a-48f6-9c62-c6dcd47ba34a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/16d19ffd-986a-48f6-9c62-c6dcd47ba34a%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:55am UTC](https://discuss.elastic.co/t/suggest-next-word-without-suggesting-entire-field-value/20272/2 "2017-07-06T00:55:56Z")

</div>

Closed on July 6, 2017, 12:55am UTC


