Solr可以用AND、||  布尔操作符 表示查询的并且,

用OR、&&  布尔操作符 表示或者

用NOT、!、-(排除操作符不能单独与项使用构成查询)表示非

如果要用在查询的时候使用类似sql的in(1,2,3,4)

可以这样post_id:(1,2,3,4)或者post_id:1 OR post_id:2 OR post_id:3 OR post_id:4

相关文章:

  • 2022-01-31
  • 2022-01-17
  • 2021-12-03
  • 2021-07-24
  • 2022-12-23
猜你喜欢
  • 2021-09-14
  • 2021-08-09
  • 2022-02-18
  • 2021-06-19
  • 2022-12-23
相关资源
相似解决方案