Kibana复杂查询语句

GET /es_user/_search
{
  "query": {
    "bool": {
      "must" : [{
            "term" : { "address" : "nanjing" }
        },
        {
          "match": {
            "post_date": "2021-04-19T08:12:51.179Z"
          }
        }],
      "filter": {
            "term" : { "gender" : "male" }
        },
      "must_not" : {
            "range" : {
                "age" : { "from" : 10, "to" : 21 }
            }
        },
      "should" : [
            {
                "term" : { "height" : 181 }
            },
            {
                "term" : { "user_name" : "snake1" }
            }
        ]

    } 
  }
}    

 

posted on 2021-04-21 16:02  MaXianZhe  阅读(232)  评论(0编辑  收藏  举报

导航