must should 的使用
GET /http_index/type/_search
{
  "query": {
    "bool": {
      "should": [
        {
          "bool": {
            "must": [
              {
                 "term" : {
                  "field1" : {
                    "value" : 110,
                    "boost" : 1.0
                  }
                }
              },
                {
                  
                  "terms": {"field2": [
                  100037,
                  100055,
                  100060
                  ]
                }
                }
            ]
          }
        },
        {
          "bool": {
            "must": [
                {"terms": {"field3": ["1001001"]}}
            ]
          }
        }
      ]
    }
  }
}

 

{
    "query": {
        "bool": {
            "must": {
                //or条件组装
                "bool" : { 
                    "should": [
                        { "match": { "about": "music" }},
                        { "match": { "about": "climb" }} ] 
                }
            },
            "must": {
                "match": { "first_nale": "John" }
            },
            "must_not": {
                "match": {"last_name": "Smith" }
            }
        }
}