I am using elasticsearch for last 3 months. It is really good for searching
the billions of docs.
I have created an 'order' index and the document contains the 'orders'
array. Please find the use case below.
Use Case: Get orders created in terms of Price and Count over a period of
time month wise.
Ex:- I want the result only for last one year. I tried the following query.
It is giving the result, but I am getting for all the years instead of last
one year..
You are looking at the wrong area.
Aggregation merely aggregates results from your query.
You need to build a query which will define what would be result.
You need to use the range query -
I am using elasticsearch for last 3 months. It is really good for
searching the billions of docs.
I have created an 'order' index and the document contains the 'orders'
array. Please find the use case below.
Use Case: Get orders created in terms of Price and Count over a period of
time month wise.
Ex:- I want the result only for last one year. I tried the following
query. It is giving the result, but I am getting for all the years instead
of last one year..
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.