How to suggest (autocomplete) next word in elastic search?

后端 未结 2 1881
别那么骄傲
别那么骄傲 2020-12-10 12:14

Lets say I have following strings indexed:

\"My awesome pizza\"
\"My awesome beer\"
\"Heineken is awesome beer\"
\"I love pizza pepperoni\"
\"Where is my bee         


        
2条回答
  •  醉酒成梦
    2020-12-10 12:28

    Elasticsearch provides a convenient way to get autocomplete up and running quickly with its completion suggester feature.

    Check this link, this is what you are looking for

    https://qbox.io/blog/multi-field-partial-word-autocomplete-in-elasticsearch-using-ngrams

    Completion Suggester also helps you to achieve this functionality

提交回复
热议问题