php - How can i check if the field exist in elasticsearch 1.3 -


i want check if field exist in elasticsearch 1.3, field job_portal_id, please find query below

also i'm using elasticsearch's php package that

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"     ]   ]   .... 

when run query error exception in query

searchphaseexecutionexception[failed execute phase [query], shards failed; shardfailures  


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -