下面語(yǔ)句的含義不是表示,name字段和age字段有一個(gè)不為空
它的真是含義是:should這個(gè)條件的反面,should的反面就是 name不為空 and age不為空
{
"query": {
"bool": {
"must_not": [
{
"bool": {
"should": [
{
"term": {
"name": {
"value": "",
"boost": 1.0
}
}
},
{
"term": {
"age": {
"value": "",
"boost": 1.0
}
}
}
],
"adjust_pure_negative": true,
"boost": 1.0
}
}
],
"adjust_pure_negative": true,
"boost": 1.0
}
}
}