$query = [ 'bool' => [ 'must' => [ 'match_phrase' => ['content' => $word] //$word词不被分词 ], 'must_not' => [ 'terms' => ['fid'=>[69, 70]], //添加not in 过滤条件 ], ], ];
posted on 2018-06-04 20:26 dongruiha 阅读(2044) 评论(0) 编辑 收藏 举报