In Mysql sql,we can "select id,name,min(price) as min_price from table group by id".This min_price is a temporary field.In Elasticsearch ,How can I do?
eg:
{
"id":1,
"name":"windcandle",
"prices":[
{
"date":"2016-12-29",
"price": "20.00"
},
{
"date":"2016-12-30",
"price": "21.00"
},
{
"date":"2016-12-31",
"price": "20.00"
},
.....
}.
Thanks for you .But this result is minimum of all documents .I want to get the minimum price of each document.
each document has many price.
I try this .
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.