A&(like %B%|like %C%|(D|like E))&F
? 如何实现
GET test/_search
{
"track_total_hits": true,
"query": {
"bool": {
"must": [
{
"match": {
"status": "1"
}
},
{
"bool": {
"should": [
{
"wildcard": {
"para": {
"value": "*=cei,*"
}
}
},
{
"wildcard": {
"para": {
"value": "*GK,*"
}
}
}
]
}
},
{
"bool": {
"should": [
{
"terms": {
"code": [
"Us234",
"Dm565",
]
}
},
{
"wildcard": {
"k_ALARMTITLE": {
"value": "*中途退出*"
}
}
}
]
}
},
{
"range": {
"time": {
"gte": "2023-11-05 15:19:21",
"lte": "2023-11-07 15:19:21"
}
}
}
],
"filter": [
{
"terms": {
"name": [
"配件2"
]
}
},
{
"terms": {
"level": [
1,
2
]
}
},
{
"terms": {
"node": [
"北京"
]
}
}
],
"must_not": [
{
"terms": {
"code": [
"234"
]
}
},
{
"exists": {
"field": "father"
}
}
]
}
},
"aggs": {
"group_by_tag": {
"terms": {
"field": "level"
}
}
}
}
因篇幅问题不能全部显示,请点此查看更多更全内容
Copyright © 2019- ovod.cn 版权所有 湘ICP备2023023988号-4
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务