Hi,
I would like to add some sort of "search as you type" functionality but have been struggling to find the right one.
Say I have the following product name:
Some Brand Sweater Striped Green
What would be the best method to find this product when the user is at "sweater gre"?
"multi_match": {
"query": "sweater gre",
"type": "bool_prefix",
"fields": [
"name"
]
}
This will give me products called just "Sweater" first; then the product I'm looking for; and after that other products that only include "sweater" and not "gre".