Solr range query for specefic id like /solr/select?q=x:[1,2,5,11,64589]
These are your options:
?q=x:(1 OR 2 OR 5 OR ...)
?q=x:1 OR x:2 OR x:5 OR ...
?q=x:(1 2 5 ...)
with defaultOperator="OR" (haven't tried this one but it should work)- Write your own RequestHandler
- Write your own QueryParser
In Solr 4.10 and Heliosearch 0.07, you can use the more efficient terms query:
q={!terms f=id}1,2,5,11,64589