Hi guys. These 2 queries produce the same results via different approaches.
Is there any reason why one should be used over another?
Thanks,
Nick
{
"size": 10,
"fields": ["id", "name"],
"sort": [ { "name.orig": "asc" } ],
"query": {
"bool": {
"must": [
{
"terms": {
"catalog_ids": ["4dddd736349c302bd100004e",
"511a70be63051f6a64000217"],
"minimum_should_match": 1
}
}
]
}
}
}
{
"size": 10,
"fields": ["id", "name"],
"sort": [ { "name.orig": "asc" } ],
"query": {
"bool": {
"minimum_should_match": 1,
"should": [
{ "term": { "catalog_ids": "4dddd736349c302bd100004e" } },
{ "term": { "catalog_ids": "511a70be63051f6a64000217" } }
]
}
}
}
--
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 protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/5df1fbf3-9c3a-4f1d-aef0-f7cbec83913d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.