From performance perspective, does filtering on _index
field behave as if i've set the index name in the URL?
GET log-*/_doc/_search
{
"query": {
"bool": {
"must": [
{
"term": {
"event_name.keyword": {
"value": "send_email",
"boost": 1
}
}
},
{
"term": {
"_index": {
"value": "log-2021-01",
"boost": 1
}
}
}
],
"boost": 1
}
}, "size":10000
}
VS
GET log-2021-01/_doc/_search
{
"query": {
"bool": {
"must": [
{
"term": {
"event_name.keyword": {
"value": "send_email",
"boost": 1
}
}
}
],
"boost": 1
}
}
}