Solr能够用AND、|| 布尔操做符 表示查询的而且,sql
用OR、&& 布尔操做符 表示或者post
用NOT、!、-(排除操做符不能单独与项使用构成查询)表示非spa
若是要用在查询的时候使用相似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:4co