bug_x

导航

 

1、match 查询

GET  /_index/_search
{
  "query": {
     "match": {
        "id":"1"
      }
  }
}

1、match 多条件查询

GET /_index/_search
{

  "_source": [
    "_id",
    "is_active",
    "is_verified",
    "belong_website",
    "online",
    "nature",
    "account_type"
  ],

 "query": {

"bool": {
      "must": [
        {
          "match": {
            "p1": "f"
          }
        },
        {
          "match": {
            "p2": "f2"
          }
        }
      ]
    }
  }
}

 

posted on 2019-09-11 10:39  bug_x  阅读(164)  评论(0编辑  收藏  举报