I'd like to build a specific query to ES that I can't find currently, here
is what I would like to do:
The query would be a multi_match that keeps only the documents that have
all the terms in the query (the terms can be spread across several fields).
The default multi_match gives me documents that match at least one term
of the query (too much documents), and if I add "boolean": "and" it gives
me only documents that have all the terms of the query in one particular
field (too strict).
As a solution, I was thinking about using the analyzer of ES to get the
list of tokens, then do an "AND" query of multi_match queries for one
token in all the field, but it introduces a big overhead as there is two
API calls to ES.
Could you give me any pointers on how I could build such a query ?
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 firstname.lastname@example.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/ee1b7644-fbb5-466d-8998-f7104e25f59a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.