lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christiaan Fluit <christiaan.fl...@aduna.biz>
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."


Regards,

Chris
--


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message