Time-series index: query with time-window

Hi,
I'm using time-series indices with the following pattern: message_YYYY.MM.DD
I'd like to perform queries for documents inside a certain time-window.

Something like:

GET /{from message_2017.11.05 to message_2017.11.07} /_search

Is it possible?

Thanks
Sarah

Hi Sarah,

You can inform multiple indices in the URL separated by comma. For example, you could do something like this:

GET message_2017.11.05,message_2017.11.06,message_2017.11.07/_search

It is possible to use wildcard too. If you want to search for November messages:

GET message_2017.11*/_search

Ciao Luiz,
thanks for your reply.
Ok, so I have to list all days.

Thanks
Sarah

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.