Hi,
I'm using an elasticsearch db to store data for benchmarks.
I need to calculate and retrieve the average, max, min, etc. of a Group of
values.
I have something like:
Index = "myindex"
Type = "mytype"
Each object has 3 fields:
"load_time", "execution_time", "log_time".
I then run the benchmark and db is populated with hundreds of records. Now,
I would retrieve the average, the max and the min value for each field.
What query should I run?
I tried with statistical facet but I Always get a "unreognized token
exception"...
can you provide some sample data, your mapping, the query and the concrete
error message, so others can reproduce/better spot your problem?
Statistical facet sounds good here, so the problem must be somewhere else...
--Alex
On Wed, Feb 5, 2014 at 8:05 PM, Carmine Giangregorio carminexx@gmail.comwrote:
Hi,
I'm using an elasticsearch db to store data for benchmarks.
I need to calculate and retrieve the average, max, min, etc. of a Group of
values.
I have something like:
Index = "myindex"
Type = "mytype"
Each object has 3 fields:
"load_time", "execution_time", "log_time".
I then run the benchmark and db is populated with hundreds of records.
Now, I would retrieve the average, the max and the min value for each field.
What query should I run?
I tried with statistical facet but I Always get a "unreognized token
exception"...
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.