Current time value in ES?

Is there a way to indicate the current timestamp or current date in an ES
query? I would like to filter some visualizations I have running by a
range of the previous 24 hours.

Is this possible?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Yes, range queries and filters support "date mathhttps://github.com/elasticsearch/elasticsearch/issues/1708
".

On Thursday, April 18, 2013 5:35:30 PM UTC-4, OffensivelyBad wrote:

Is there a way to indicate the current timestamp or current date in an ES
query? I would like to filter some visualizations I have running by a
range of the previous 24 hours.

Is this possible?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

That said I would not use 'now' as a parameter but the end of the current day or tomorrow.
You will have a better cache usage.

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 19 avr. 2013 à 01:10, Igor Motov imotov@gmail.com a écrit :

Yes, range queries and filters support "date math".

On Thursday, April 18, 2013 5:35:30 PM UTC-4, OffensivelyBad wrote:

Is there a way to indicate the current timestamp or current date in an ES query? I would like to filter some visualizations I have running by a range of the previous 24 hours.

Is this possible?
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.