elastic 查询

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"
          }
        }
      ]
    }
  }
}
原文地址:https://www.cnblogs.com/cbugs/p/11504862.html