elasticsearch 单个文档的_explain

curl -XGET es_host:9200/ware_index/ware_type/id/_explain?pretty -d '
{
  "query" : {
    "bool" : {
      "must" : [ {
        "term" : {
          "text" : "油"
        }
      } ],
      "should" : {
        "term" : {
          "text" : "5L"
        }
      }
    }
  }
}'

你可能感兴趣的:(elasticsearch 单个文档的_explain)