I would like to query for 'apple pie' and return the result 'apple pie' as
well as 'pie apple', but I want to restrict any results such as 'apple pie
crumb cake' or 'brown apple pie'. Is there some kind of: 'result must
match query exactly' or some way to use the score as an indicator for a
Default operator 'and' is perfect, but it also retrieves results that do
not match exactly.
'not_analyze' or tokenizing the fields as 'keyword' doesn't allow me to
query for the item in reverse, ie: 'apple pie' works, but 'pie apple' does
Is the solution to tokenize the input such that each permutation of the
string is indexed as a keyword? ie- 'apple pie crumb cake' as:
'apple cake pie crumb'
'apple cake crumb pie'
or is there a way to filter queries such that they only return results that
match every word in the query and rejects results that contain excess words
not found in the original query? ie - 'exact_match': 'true'
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
For more options, visit https://groups.google.com/groups/opt_out.