$query = [
    'bool' => [
        'must' => [
            'match_phrase' => ['content' => $word] //$word词不被分词
        ],
        'must_not' => [
            'terms' => ['fid'=>[69, 70]], //添加not in 过滤条件
        ],
    ],
];

 

相关文章:

  • 2021-08-11
  • 2022-12-23
  • 2021-12-22
  • 2022-12-23
  • 2021-06-13
  • 2021-11-06
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
  • 2022-12-23
相关资源
相似解决方案