"must": [
{
"term": {
"content_json.env.sysName.keyword": {
"value": "fin-channel-exchange",
"boost": 1
}
}
},
{
"wildcard": {
"content_json.businessInfo.filterRouteInfo.RelatedMerchantFilterRule.filteredChannels.reason": {
"value": "*只走该MID*"
}
}
}
]
模糊不包含:【TRANS_STEP】OR 【null】
"must_not": [
{
"wildcard": {
"content_json.businessInfo.filterRouteInfo.ExtendPropertyFilterRule.filteredChannels.reason": "*TRANS_STEP*"
}
},
{
"wildcard": {
"content_json.businessInfo.filterRouteInfo.ExtendPropertyFilterRule.filteredChannels.reason": "*null*"
}
}
]
精确不等于
"must_not": [
{
"term": {
"content_json.businessInfo.filterRouteInfo.CustomizationRouteRule.filteredChannels.channelCode": "I_WORLDPAY_P01_CARDPAY201_MADA_SA"
}
}
],
精确等于注意二者是且的关系。
"must": [
{
"term": {
"content_json.businessInfo.filterRouteInfo.SpecialListFilterRule.filteredChannels.channelCode": "O_OCBCID"
}
},
{
"term": {
"content_json.businessInfo.filterRouteInfo.SpecialListFilterRule.filteredChannels.channelMerchantCode": "OCBCID_OVERBOOKING"
}
}
]
精确包含某个字段,二选一。
"must": [
{
"bool": {
"should": [
{
"exists": {
"field": "content_json.businessInfo.filterRouteInfo.SpecialListFilterRule"
}
},
{
"exists": {
"field": "content_json.businessInfo.filterRouteInfo.TargetMerchantFilterRule"
}
}
],
"minimum_should_match": 1
}
}
]
精确包含某个字段,二选一。
"must": [
{
"bool": {
"should": [
{
"term": {
"content_json.businessInfo.filterRouteInfo.CustomizationRouteRule.filteredChannels.channelCode": "I_ALIPAY1"
}
},
{
"term": {
"content_json.businessInfo.filterRouteInfo.CustomizationRouteFilterRule.filteredChannels.channelCode": "I_ALIPAY1"
}
}
],
"minimum_should_match": 1
}
}
]