如何检查elasticsearch 1.3

时间:2016-02-08 20:33:01

标签: php elasticsearch

我想检查该字段是否存在于elasticsearch 1.3中,该字段为job_portal_id,请在下面找到我的查询

我也在使用Elasticsearch的php package

array:2 [
   "query" => array:1 [
"filtered" => array:2 [
  "query" => []
  "filter" => array:2 [
    "constant_score" => array:1 [
      "exists" => array:1 [
        "field" => "job_portal_id"
      ]
    ]
    "term" => array:1 [
      "location.country_code" => "ae"
    ]
  ]
  ....

当我运行此查询时,我在查询中获得错误异常

SearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures 

0 个答案:

没有答案