A range filter on a date field with something like from now/d-1 to now/d+1
might work I think.
If you don’t have a date field (could be a _timestamp field if you activated
it), I’m afraid you can’t do that.
--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet https://twitter.com/dadoonet | @elasticsearchfr
https://twitter.com/elasticsearchfr | @scrutmydocs
https://twitter.com/scrutmydocs
Le 15 janv. 2015 à 18:15, Matthew acernu...@gmail.com a écrit :
Hi all,
Is there any way to only load the last 24 hours of indices? I am trying to
apply a query to only show the number of documents created over the last 24
hours (over the REST API), but I have not had too much luck.
Thanks!
--
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+unsubscr...@googlegroups.com
mailto:elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/07576351-5bea-4f99-af51-16ff76791914%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/07576351-5bea-4f99-af51-16ff76791914%40googlegroups.com?utm_medium=emailutm_source=footer.
For more options, visit https://groups.google.com/d/optout
https://groups.google.com/d/optout.
--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/0882E33E-371F-4B54-BAF9-CD0BABBD7E6F%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.