I'm getting different results depending on selected Size.
Steps to reproduce in Kibana:
Create vertical bar chart
metrics > Y-Axis > Aggregation: Average
metrics > Y-Axis > Field: select a numerical field
buckets > X-Axis > Aggregation: Terms
buckets > X-Axis > Field: select a string field
buckets > X-Axis > Order by: select metric: Average
buckets > X-Axis > Order: Descending
buckets > X-Axis > Size: 10
For my data the first bar has a value of 1,918.84. It is using a document count of 5 to calculate this result.
If I change buckets > X-Axis > Size: 30, the first bar has a value of 1,373.61. It is using a document count of 7 to calculate this result.
If I change buckets > X-Axis > Size: 0, the first bar has a value of 962.51. It is using a document count of 10 to calculate this result. I believe this to be the correct value.
There are 10 documents with the value associated with the first bar, and a total count of 13,902 in total document Hits.
I'm concerned as the returned values are quite inaccurate, and I cannot set Size: 0 as there are too many bars. Is there a recommended solution?
Here the first bar, test.users.find() has a count of 8 and an avg responsetime of 91.125.
Also the third bar, "GET /static/img/paper_fibers.png HTTP/1.1" has a count of 1 and an avg responsetime of 59.
Changing,
buckets > X-Axis > Size: 100
Now test.users.find() has a count of 9 and an avg responsetime of 84.667.
Also, "GET /static/img/paper_fibers.png HTTP/1.1" now has a count of 2 and an avg responsetime of 44.5
I agree that the results that you mentioned do sound suspect, and would like to investigate it further, but need to be able to reproduce the issue.
I tried to recreate what you described above. I assume it's because the demo data changed since you set this up. (see image to make sure I didn't screw anything up)
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.