: I need to submit a query to a subset of documents which id belong to an : array of ids that I want to pass as parameter. : : for istance, something like: : : find_by_solr(query, id:[1,2,3,40,51,56])
i don't know anything baout the acts_as_solr API, but you should be able to do this using a "filter query" which is specified in the HTTP request using the "fq" param... /select?q=your+main+query&fq=id:(1+2+3+40+51+56) ....hopefully that gives you the tips you need to find how to specify this type of query in acts_as_solr. -Hoss