When i use aaaa-* and limit time range to search, es will search all of index begin with aaaa index, if there any way to search specific index according to time range?
for example:
aaaa-* have these index: aaaa-2022-01-01, aaaa-2022-01-02, aaaa-2022-01-03
and i have this query:
GET aaaa-*/_search
{
"query": {
"range": {
"date": {
"gte": "2022-01-02 10:10:10",
"lte": "2022-01-03 11:11:11"
}
}
}
}
i wish es to search aaaa-2022-01-02 and aaaa-2022-01-03 without aaaa-2022-01-01