{
"track_total_hits": true,
"from": 0,
"size": 20,
"query": {
"bool": {
"must": [
{
"term": {
"item_id": {
"value": "item_value_1",
"boost": 1
}
}
}
],
"should": [
{
"term": {
"item_id": {
"value": "item_value_2",
"boost": 1
}
}
},
{
"term": {
"item_id": {
"value": "item_value_3",
"boost": 2
}
}
}
]
}
}
}
Why this query shows only “item_value_1” document? “minimum_should_match” also doesn’t show item_value_2 or item_value_3.