Re:Rules for Autocomplete
by edsrzf on Wednesday March 20, 2019 @01:24AM
(#19439260)
This is pretty interesting and useful. Now where are the details about how to get ElasticSearch to behave this way? :)
[ Parent
| on HN ]
Re:Rules for Autocomplete
by speedplane on Wednesday March 20, 2019 @02:00AM
(#19439435)
> Now where are the details about how to get ElasticSearch to behave this way?
The rules posted in the article make a lot of sense, but they also require a ton of backend work. To do prefix matches quickly, you need to create a new index of your content. Then to handle the relevance rules described, you need to be able to query both indices and merge the results in a meaningful way. No obvious way to do this with ES.