|
@@ -510,7 +510,7 @@ func SearchList(operator Operator) (int64, *[]map[string]interface{}) {
|
|
|
start = 0
|
|
|
}
|
|
|
var query = `{"query":{"bool":{"must":[%s],"filter":[%s],"minimum_should_match":1,
|
|
|
- "should":[{"exists":{"field":"bidamount"}},{"bool":{"should":[{"exists":{"field":"budget"}},{"bool":{"must_not":[{"exists":{"field":"budget"}}]}}],"must_not":[{"exists":{"field":"bidamount"}}]}}]}},"from":"%d","size":"%d","sort":[{"publishtime":{"order":%s}}]
|
|
|
+ "should":[{"exists":{"field":"bidamount"}},{"bool":{"should":[{"exists":{"field":"budget"}},{"bool":{"must_not":[{"exists":{"field":"budget"}}]}}],"must_not":[{"exists":{"field":"bidamount"}}]}}]}},"from":"%d","size":"%d","sort":[{"publishtime":{"order":"%s"}}]
|
|
|
}`
|
|
|
shouldStr := `{"bool":{"should":[%s]}}`
|
|
|
mustArr := []string{}
|