Hi people,
I want to make a query for car with price between 50000 and 100000.
from that json:
[{
"_id": "aaa",
"_source": {
"objs": [{
"name": "car",
"price": 60000
},
{
"name": "milk",
"price": 2
}
]
}
}, {
"_id": "bbb",
"_source": {
"objs": [{
"name": "car",
"price": 20000
},
{
"name": "truck",
"price": 75000
}
]
}
}]
If i use match : "car" with range of price gte 50000 and lte 100000 it will return the both _ids but the correct will be only _id: "aaa".
Making some search i found that: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-nested-query.html
is that is correct to my use? have others way without change the mapping to make that query?
Can anyone have some examples of how can i do that?
Appreciate any help
