I have an elastic cluster where my indexes contain the current date - for example:
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 multiple indexes, ignoring those that do not exist. For example, these are WORKS :
return elastic.search({ index: [ "example-idex-2016-07-26", "example-idex-2016-07-25"], ], ... });
While this one returns 404 :
return elastic.search({ index: [ "example-idex-2016-07-25", "example-idex-2016-07-24"],
I would expect the second example to return documents only from the 25th.
angularjs elasticsearch
Stoyan dekov
source share