- Combing leaf query clauses
bool
is frequently used:curl 'localhost:9200/orders/_search?pretty=true' \ -H 'content-type:application/json' \ -d '{ "query" : { "bool" : { "must" : { "term" : { "id" : "1" } }, "should": { "query_string" : { "query" : "trackingId:*" } } } } }'