I have a query string like this:
"query_string" : {
"query" : "dc_name:(\"dc1\" or \"dc2\" or \"dc3\")"
}
This return all results, but I don't need all. I just need a result per each DC.
basically, instead of returning all results, is it possible to return just 1 result per DC?
Basically, I should get just 3 results for the above query: 1 for dc1, 1 for dc2, and 1 for dc3. Instead of all results, which could be thousands.