我有这种格式的bool条件的嵌套查询
GET _search
{
"explain": true,
"from": 1,
"size": 10,
"query": {
"filtered": {
"query": {
"function_score": {
"boost": 1,
"score_mode": "sum",
"boost_mode": "sum",
"functions": [],
"query": {
"bool": {
"must": [
{
"bool": {
"should": [
{
cond1.0
},
{
cond1.1
},
{
cond1.2
}
] , "minimum_number_should_match": 1, "boost": 5.0
}
}
] ,
"should": [
{
"bool": {
"should": [
{
cond2.0
},
{
cond 2.1
},
{
cond 2.2
}
] , "minimum_number_should_match": 1, "boost":3.0
}
}
],
"minimum_number_should_match": 1
}
}
}
}
}
},
"fields": [
"*"
]
}
因此,如果改为4.0,则5.0的增强理想情况下应该仅仅影响1.0,1.1,1.2的布尔条件,但它似乎也会对2.0,2.1,2.2的分数产生影响。我不明白应该怎么做。不应该是相互排斥的