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
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