Discrete value aggregations on a URL field

2014-09-12 Thread Ali Kheyrollahi
Hi, I am trying to find numbers of discrete value per URL in a day and the result is not what I expect. So let's say I have an index which contains such document: { date: ..., url: , other... } And basically I am trying to group by url for a particular date: { query: {

Re: Discrete value aggregations on a URL field

2014-09-12 Thread Ali Kheyrollahi
OK, it seems that I need to use not_analyzed on the field. Is that correct? On Friday, 12 September 2014 08:18:19 UTC+1, Ali Kheyrollahi wrote: Hi, I am trying to find numbers of discrete value per URL in a day and the result is not what I expect. So let's say I have an index which

Re: Discrete value aggregations on a URL field

2014-09-12 Thread Magnus Bäck
On Friday, September 12, 2014 at 09:23 CEST, Ali Kheyrollahi alios...@gmail.com wrote: On Friday, 12 September 2014 08:18:19 UTC+1, Ali Kheyrollahi wrote: I am trying to find numbers of discrete value per URL in a day and the result is not what I expect. [...] Result is bizarre,