赞
踩
- 搜索 state = 0 或者 state不存在的记录
-
- {
- "query": {
- "bool": {
- "filter": {
- "bool": {
- "should": [
- { "term": { "state": 0 } },
- { "bool": { "must_not": { "exists": { "field": "state" } } } }
- ]
- }
- }
- }
- }
- },
- 搜索 (state = 0 或者 state不存在的记录) and payState = 1 :这句有待验证
- {
- query: {
- bool: {
- filter: [{
- "bool": {
- "should": [
- { "term": { "state": 0 } },
- { "bool": { "must_not": { "exists": { "field": "state" } } } }
- ]
- }
- },
- { term: { payState: 1 } }
- ]
-
- }
- }
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。