How are you measuring speed? See the FAQ about query speed... http://wiki.apache.org/jakarta-lucene/LuceneFAQ
Also be aware that the first few queries have very significant overhead. You've really got to provide more detail to get meaningful help. How big is your index? How do you measure response? Where are your code examples? Best Erick On Mon, Dec 1, 2008 at 8:52 AM, Ian Vink <[EMAIL PROTECTED]> wrote: > Each document has a field "DocID" with a unique int in the index. > I want to search the documents with DocID of 1 or 2 or 5 or 8 etc (hundreds > long list) > > When I specify a query like: [ contents:Hello DocID:1 DocID:2 ] > etc it is slow. > > Is there a more efficient way to limit my search to books in the set > [1,2,3,5,8] ? > > Ian >