Best approach to multi-word search as you type


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": [

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

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.