So I am getting up to speed with elastic search and I was surprised to find
no way to set the number of buckets for a histogram.
In my use case, I have a index of search clicks and one of the parameters
is the item rank within returned search results.
I want to have an aggregation that shows the number search clicks in the
first position, second position ....
So for this I need to set the interval to 1. But some of these can have a
significant number of clicks with a very long tail with larger page ranks
having very small number of clicks.
I would like to say to the histogram, just return me what is in the first
20 buckets.
Seems like in addition to the interval, a size setting would also be needed
to accomplish this.
I am trying to reproduce how the terms panel in Kibana works, but do not
want to implement using facets, would rather do this with aggregations.
I am not sure to understand what the aggregation that you are building
looks like. Can you provide us with your aggregation and a example of what
your documents look like?
So I am getting up to speed with Elasticsearch and I was surprised to
find no way to set the number of buckets for a histogram.
In my use case, I have a index of search clicks and one of the parameters
is the item rank within returned search results.
I want to have an aggregation that shows the number search clicks in the
first position, second position ....
So for this I need to set the interval to 1. But some of these can have
a significant number of clicks with a very long tail with larger page ranks
having very small number of clicks.
I would like to say to the histogram, just return me what is in the first
20 buckets.
Seems like in addition to the interval, a size setting would also be
needed to accomplish this.
I am trying to reproduce how the terms panel in Kibana works, but do not
want to implement using facets, would rather do this with aggregations.
So I am getting up to speed with Elasticsearch and I was surprised to
find no way to set the number of buckets for a histogram.
In my use case, I have a index of search clicks and one of the parameters
is the item rank within returned search results.
I want to have an aggregation that shows the number search clicks in the
first position, second position ....
So for this I need to set the interval to 1. But some of these can have
a significant number of clicks with a very long tail with larger page ranks
having very small number of clicks.
I would like to say to the histogram, just return me what is in the first
20 buckets.
Seems like in addition to the interval, a size setting would also be
needed to accomplish this.
I am trying to reproduce how the terms panel in Kibana works, but do not
want to implement using facets, would rather do this with aggregations.
So I am getting up to speed with Elasticsearch and I was surprised to
find no way to set the number of buckets for a histogram.
In my use case, I have a index of search clicks and one of the parameters
is the item rank within returned search results.
I want to have an aggregation that shows the number search clicks in the
first position, second position ....
So for this I need to set the interval to 1. But some of these can have
a significant number of clicks with a very long tail with larger page ranks
having very small number of clicks.
I would like to say to the histogram, just return me what is in the first
20 buckets.
Seems like in addition to the interval, a size setting would also be
needed to accomplish this.
I am trying to reproduce how the terms panel in Kibana works, but do not
want to implement using facets, would rather do this with aggregations.
I was able to solve this by using two queries and in the histogram buckets,
I simply used a range filter to limit the number of buckets. Each bucket
has the has the information I need, but I need to get the total count from
the overall (without the range filter).
On Wednesday, September 3, 2014 9:29:58 PM UTC-5, vineeth mohan wrote:
On Thu, Sep 4, 2014 at 3:34 AM, Doug Nelson <doug....@gmail.com
<javascript:>> wrote:
So I am getting up to speed with Elasticsearch and I was surprised to
find no way to set the number of buckets for a histogram.
In my use case, I have a index of search clicks and one of the
parameters is the item rank within returned search results.
I want to have an aggregation that shows the number search clicks in
the first position, second position ....
So for this I need to set the interval to 1. But some of these can
have a significant number of clicks with a very long tail with larger page
ranks having very small number of clicks.
I would like to say to the histogram, just return me what is in the
first 20 buckets.
Seems like in addition to the interval, a size setting would also be
needed to accomplish this.
I am trying to reproduce how the terms panel in Kibana works, but do not
want to implement using facets, would rather do this with aggregations.
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.