$query = [ 'bool' => [ 'must' => [ 'match_phrase' => ['content' => $word] //$word词不被分词 ], 'must_not' => [ 'terms' => ['fid'=>[69, 70]], //添加not in 过滤条件 ], ], ];
elasticsearch关键词查询不分词
猜你喜欢
转载自www.cnblogs.com/dongruiha/p/9135275.html
今日推荐
周排行