elasticsearch关键词查询不分词
时间:2018-06-04 21:11:42
收藏:0
阅读:607
$query = [
‘bool‘ => [
‘must‘ => [
‘match_phrase‘ => [‘content‘ => $word] //$word词不被分词
],
‘must_not‘ => [
‘terms‘ => [‘fid‘=>[69, 70]], //添加not in 过滤条件
],
],
];
原文:https://www.cnblogs.com/dongruiha/p/9135275.html
评论(0)