我正在寻找多个查询的多个字段组合。 必须与组合加上需要的多个release和release_type查询。
GET /_search
{
"query": {
"bool": {
"must": [
{ "match": { "fpc_type": "AZCE 4D 24X+7LGE" }},
{ "match": { "re_type": "S-300x4" }},
{ "match": { "platform": "PX480" }},
{ "match": { "rpd_bit": "64" }}
]
}
},
"term": [
{
"release_name": "16",
"release_type": "test_type2"
},
{
"release_name": "15.1",
"release_type": "test_type1"
}
]
}
不确定我是在正确的道路上。 主要组合
{ "match": { "fpc_type": "AZCE 4D 24X+7LGE" }},
{ "match": { "re_type": "S-300x4" }},
{ "match": { "platform": "PX480" }},
{ "match": { "rpd_bit": "64" }}
需要查询
Main combination + {
"release_name": "15.1",
"release_type": "test_type1"
}
Main combination + {
"release_name": "16",
"release_type": "test_type2"
}
没有得到如何构建查询。