Supporting typeahead autocomplete with ElasticSearch

autocomplete, elasticsearch, typeahead

Solution

You can use Edge NGram based analyzer, see http://www.elasticsearch.org/guide/reference/index-modules/analysis/edgengram-tokenizer.html

Or use the suggest plugin: https://github.com/spinscale/elasticsearch-suggest-plugin

HTH

Problem

Is there a standard way to implement character-by-character typeahead autocomplete using ElasticSearch for small fields (e.g. place names). (At the time of writing this, there are a number of discussions available via search, but nothing that seems definitive. (Also, I see there is talk of the effect of feature support for autocomplete/suggest in Apache Lucene 4.)) Thanks for thoughts.

Original source