1.must相当于and
2.must not 相当于 not in
3.should相
POST kibana_sample_data_flights-1227/_search { "query": { "bool": { "must": [ { "term": { "DestCountry.keyword": { "value": "AU" } } } ], "must_not": [ { "term": { "OriginCityName.keyword": { "value": "Cape Town" } } } ], "should": [ { "term": { "FlightDelay": { "value": false } } }, { "term": { "DestWeather.keyword": { "value": "Sunny" } } } ] } } }
当于or
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)