{
"bool": {
"filter": [{
"bool": {
"must": [{
"bool": {
"must": [{
"term": {
"字段A": {
"value": "字段A值",
"boost": 1.0
}
}
}, {
"range": {
"日期字段B": {
"from": "1627315200000",
"to": "1629907199000",
"include_lower": true,
"include_upper": true,
"boost": 1.0
}
}
}, {
"bool": {
"should": [{
"term": {
"空值查询字段C": {
"value": "",
"boost": 1.0
}
}
}, {
"bool": {
"must_not": [{
"exists": {
"field": "空值查询字段C",
"boost": 1.0
}
}],
"adjust_pure_negative": true,
"boost": 1.0
}
}],
"adjust_pure_negative": true,
"boost": 1.0
}
}, {
"bool": {
"should": [{
"match_phrase": {
"字段D": {
"query": "0",
"slop": 0,
"zero_terms_query": "NONE",
"boost": 1.0
}
}
}, {
"term": {
"字段D": {
"value": "0",
"boost": 1.0
}
}
}, {
"bool": {
"must_not": [{
"exists": {
"field": "字段D",
"boost": 1.0
}
}],
"adjust_pure_negative": true,
"boost": 1.0
}
}, {
"bool": {
"must": [{
"match_phrase": {
"字段D": {
"query": "1",
"slop": 0,
"zero_terms_query": "NONE",
"boost": 1.0
}
}
}, {
"bool": {
"must_not": [{
"match_phrase": {
"字段E": {
"query": "150478433671776668",
"slop": 0,
"zero_terms_query": "NONE",
"boost": 1.0
}
}
}],
"adjust_pure_negative": true,
"boost": 1.0
}
}, {
"bool": {
"must_not": [{
"match_phrase": {
"字段F": {
"query": "150478433671776668",
"slop": 0,
"zero_terms_query": "NONE",
"boost": 1.0
}
}
}],
"adjust_pure_negative": true,
"boost": 1.0
}
}, {
"bool": {
"must_not": [{
"match_phrase": {
"字段H": {
"query": "150478433671776668",
"slop": 0,
"zero_terms_query": "NONE",
"boost": 1.0
}
}
}],
"adjust_pure_negative": true,
"boost": 1.0
}
}],
"adjust_pure_negative": true,
"boost": 1.0
}
}],
"adjust_pure_negative": true,
"boost": 1.0
}
}],
"adjust_pure_negative": true,
"boost": 1.0
}
}],
"adjust_pure_negative": true,
"boost": 1.0
}
}],
"adjust_pure_negative": true,
"boost": 1.0
}
}
es通过kibana DSL查询条件脚本编写参考
最新推荐文章于 2023-04-09 20:59:39 发布