hello,
it's possible to create autocompleter. In solr is very easy to create
them. But in ES is not simple. We trying it write with regexp. But
it's not fast. Best way to create autocompleter is? We trying to make
ex.how google. then user typing word example g (must show google,
gmail and etc), if add go (it's showing google)
hello,
it's possible to create autocompleter. In solr is very easy to create
them. But in ES is not simple. We trying it write with regexp. But
it's not fast. Best way to create autocompleter is? We trying to make
ex.how google. then user typing word example g (must show google,
gmail and etc), if add go (it's showing google)
Are you referring to the "suggester" functionality in Lucene? If so, I am
not a big fan of it, because it is not "realtime" and requires rebuilding
it periodically (which can get really expensive), so, at least now, its not
implemented in elasticsearch.
Obviously, many people have implemented auto suggest by simply doing
"search", using things like ngrams.
hello,
it's possible to create autocompleter. In solr is very easy to create
them. But in ES is not simple. We trying it write with regexp. But
it's not fast. Best way to create autocompleter is? We trying to make
ex.how google. then user typing word example g (must show google,
gmail and etc), if add go (it's showing google)
ex. if user typing one word (ex.w "demon"), it using regexp:
{"query":{"match_all":{}},"from":0,"size":10,"facets":
{"group_by_terms":{"terms":{"field":"keywordsNoAnalyze","size":
10,"regex":"demon.","regex_flags":"DOTALL"}}}}
if user typing word with to words (it using regexp and query):
{"query":{"query_string":{"query":"keywordsAnalyze: (+demon)"}},"from":
0,"size":5,"facets":{"group_by_terms":{"terms":
{"field":"keywordsNoAnalyze","size":
10,"regex":"ga.","regex_flags":"DOTALL"}}}}.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.