You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by briand <br...@gmail.com> on 2007/11/07 23:27:50 UTC

restricting search to a set of documents

I need to perform a search against a limited set of documents.  I have the
set of document ids, but was wondering what is the best way to formulate the
query to SOLR? 
-- 
View this message in context: http://www.nabble.com/restricting-search-to-a-set-of-documents-tf4767801.html#a13637479
Sent from the Solr - User mailing list archive at Nabble.com.


Re: restricting search to a set of documents

Posted by Mike Klaas <mi...@gmail.com>.
On 7-Nov-07, at 2:27 PM, briand wrote:

>
> I need to perform a search against a limited set of documents.  I  
> have the
> set of document ids, but was wondering what is the best way to  
> formulate the
> query to SOLR?

add fq=docId:(id1 id2 id3 id4 id5...)

cheers,
-Mike