组合布尔类型的查询
    {
        "bool" : {
            "must" :     [],
            "should" :   [],
            "must_not" : [],
        }
    }
  • must
      All of these clauses must match. The equivalent of AND.
    
  • must_not
      All of these clauses must not match. The equivalent of NOT.
    
  • should
      At least one of these clauses must match. The equivalent of OR.
    
⤧  Next post elasticsearch filtered query(过滤器查询) ⤧  Previous post elasticsearch multi match query(多字段查询)