Solr使用in语法查询

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

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

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

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

可以这样post_id:(1 2 3 4)(每个id之间加空格)或者post_id:(1 OR 2 OR 3 OR 4)或者post_id:1 OR post_id:2 OR post_id:3 OR post_id:4

原文地址:https://www.cnblogs.com/cuihongyu3503319/p/9759178.html