i'm just discovering elasticsearch and i'm trying to make my first queries. for example in my case, each article has several prices, I would like to sort these articles by minimum price. and therefore I would not take the other ones into consideration. it is only the minimum prices that will have to sort my articles.
here are my articles :
{
"name": "john",
"prices": [
{
"price": "22"
},
{
"price": "28"
},
{
"price": "8"
}
]
},
{
"name": "peter",
"prices": [
{
"price": "7"
},
{
"price": "5"
},
{
"price": "2"
}
]
},
{
"name": "billy",
"prices": [
{
"price": "15"
},
{
"price": "17"
}
]
}