lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christiaan Fluit <>
Subject Re: search exception in servlet!Please help me
Date Wed, 04 Aug 2004 07:14:50 GMT
Erik Hatcher wrote:

> Where did you get 'i'?   Keep in mind that using Hits.doc(n) intends 'n' 
> to be a document *id*, not the iteration through the Hits collection.  
> This is a very common mistake, and I'm guessing one you've made here.

I believe the Javadoc (as well as my own experience) tells otherwise:

"public final Document doc(int n) throws IOException

     Returns the stored fields of the nth document in this set."



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message