I need to get date histogram with interval is day, but I want to limit from
a start date to finish date. So how can I do it in java? Here is my source
code but it seem doesn't work correctly
I need to get date histogram with interval is day, but I want to limit
from a start date to finish date. So how can I do it in java? Here is my
source code but it seem doesn't work correctly
I'm using elasticsearch for report, when have a request to a page on my
website then I will index that request with some information like url,
requestDate, hostname, ... by using elasticsearch. After that i used
elasticsearch to get date histogram by interval is DAY. The problem is the
doc_count is not change for a
DateHistogram.Bucket even that request has been indexed many times.
E.g: Have a request URL to a page
is http://localhost:8080/test-es/en/elasticsearch/, this request is called
5 times that means it has been indexed 5 times. But elasticsearch
aggregation response just returned doc_count is 1. So I think it's wrong.
Do you know why?
Thanks
On Wednesday, May 7, 2014 7:04:23 PM UTC+7, Adrien Grand wrote:
Your code looks good. What makes you think that it doesn't work?
On Wed, May 7, 2014 at 11:30 AM, Ha Lan Quyen <dango...@gmail.com<javascript:>
wrote:
Hi
I need to get date histogram with interval is day, but I want to limit
from a start date to finish date. So how can I do it in java? Here is my
source code but it seem doesn't work correctly
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.