I want to make a search-as-you-type search service (with tokenization, analyzer etc.) and to use minimum_should_match
in it, i.e. to show pages with three of four typed tokens but not with two of four.
What is the best way to do it?
One that I see is to add * to the text typed (to make it work as a prefix search) and to wrap it into simple_query_string
or query_string
, but this approach has obvious disadvantages, for example these types of queries take into account all wildcard symbols (- " etc.) which is often inconvenient.