Re: elasticsearch filter query with time range using java api

2014-06-16 Thread Subhadip Bagui
Hi Alex, Yes I tried that and it's working. 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. To view this

Re: elasticsearch filter query with time range using java api

2014-06-16 Thread Alexander Reelsen
Hey, did you try something along the lines FilterBuilders.rangeFilter("@timestamp").from("now").to("now - 5d") - did that pose problems? make sure you are reading this paragraph about date range filters: http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/filter-caching.html --Ale

elasticsearch filter query with time range using java api

2014-06-04 Thread Subhadip Bagui
Hi, I have a document like below { "_index": "cpu_usage_metrics", "_type": "cpu_usage_metrics", "_id": "CKAAs1n8TKiR6FncC5NLGA", "_score": 1, "_source": { "status": 0, "occurrences": 1, "value