2009/10/22 Chris Hostetter <hossman_luc...@fucit.org>

>
> : 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.
>
ok, that's good to know.. I'll figure out how to force the API to get that,
at the moment accept RANGE and OR as filter query..but I'm not sure how it
process them..
I'll check the methods .. (and maybe the OR is converted to + like you
said...)

thanks

andrea


>
>
> -Hoss
>
>

Reply via email to