I noticed if I specify a very high size query param for the below query, the response latency increases 100x (2ms to 200-500ms) when running locally. The total doc count is ~ 1000, totalhits for this particular query is only 10. Why the increase?
Thank you,
-nikita
{
"query": {
"bool": {
"should": {
"nested": {
"query": {
"term": {
"brand.id": 551
}
},
"path": "brand"
}
}
}
},
"_source": false
}