Solr使用in語法查詢

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

相關文章
相關標籤/搜索