I have elastic cluster where my indexes contain the current date - e.g:
example-idex-2016-07-26 --> exists
example-idex-2016-07-25 --> exists
example-idex-2016-07-24 --> doesn't exist (weekend)
...
Is it possible to query across multiple indexes, ignoring ones that don't exist. For example this WORKS:
return elastic.search({
index: [
"example-idex-2016-07-26",
"example-idex-2016-07-25"],
],
...
});
Whereas this throws back a 404:
return elastic.search({
index: [
"example-idex-2016-07-25",
"example-idex-2016-07-24"], //this doesn't exist
],
...
});
I would expect the second example to return documents from 25th only.