• 字段类型要是nested的
    {
      "query":{
          "nested" : {
              "path" : "obj1",
              "score_mode" : "avg",
              "query" : {
                  "bool" : {
                      "must" : [
                          {
                              "match" : {"obj1.name" : "blue"}
                          },
                          {
                              "range" : {"obj1.count" : {"gt" : 5}}
                          }
                      ]
                  }
              }
          }
      }
    }
    
⤧  Previous post elasticsearch fuzzy query(模糊查询)