I want to pass comma separated values in filter query (fq) of solr response, currently when i want to pass multiple categories i use OR operator. like this fq=categoryId:3 OR categoryId:55 OR categoryId:34
is there any solution to pass values like fq=categoryId:3,55,34
fq=categoryId:(3 55 34)
should work if your default operator is OR. Else, try fq=categoryId:(3 OR 55 OR 34)
. This is called Field Grouping in the Lucene query syntax. (Solr supports the full Lucene syntax as documented here.)