[英]How to fire this not in type of query in elastic search with php?
示例- Select * from table1 where id not in ('a','b','c')
。
我正在使用這個:
$searchParams = array();
$searchParams['index'] = 'articles';
$searchParams['type'] = 'staging';
$searchParams['size']= $size;
$searchParams['body']['filter']['bool']['must_not']['term']['_id'] = $filter;
$filter
變量具有以下形式的ID ['a','b','c']
但是它沒有返回正確的結果。有什么建議嗎?
編輯:-我需要在彈性搜索中基於_id列過濾結果
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.