0
我試圖找到所有不包含字段'open_location'的結果。我正在使用下面的代碼。但它給了我打印結果的錯誤。該錯誤是, parsing_exception:無[查詢]對[過濾]parsing_exception:沒有[查詢]註冊爲[已過濾]
我已經看到了我的解決這個問題, Best way to check if a field exist in an Elasticsearch document 但
註冊請幫我...
$index_name=$db_name.'_temp_traking';
$para= [
'index' => $index_name,
'type' => $index_name,
'body' => [
'query' => [
'filtered' => [
'filter' => [
'bool' => [
'must_not' => [
'missing' => [
'field' => 'open_location'
]
]
]
]
]
]
]
];
$response = $client->search($para);
其中的彈性版本您使用的? – paqash
彈性版本5 – Avishake
您是否使它工作? – paqash