You need to use:

A Range Filter: 
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-range-filter.html
A Terms aggregation: 
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html#search-aggregations-bucket-terms-aggregation

I would recommend reading as well: 
http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/_ranges.html

HTH


-- 
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr


Le 7 mai 2014 à 12:29:00, Ha Lan Quyen ([email protected]) a écrit:

Hi everyone,

I just begin to use elasticsearch for report. When have a request access to my 
website then I will index that by using elasticsearch with some information 
like: url, date, host.. and now i want to get top 10 urls from start date to 
finish date.

E.g: get 10 urls ordered by the access number of request from 2014/05/01 to 
2014/05/30.

So how can I do it with elasticsearch?
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/84c29638-18ad-48b9-b0d2-8e0e2ef500b7%40googlegroups.com.
For more options, visit 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/etPan.536a1042.2eb141f2.8781%40air-de-david.esprit.tn.
For more options, visit https://groups.google.com/d/optout.

Reply via email to