Hits.doc() method and IOException
1 posts in topic
Flat View  Flat View

Posted By:   Laurence_Chiu
Posted On:   Wednesday, May 22, 2002 02:14 PM


It seems that Hits.doc() gives me an IOException error when I use it after I close the IndexSearcher object. However, if I close the IndexSearcher object after I'm done using the Hits object, everything seems to run fine.

I think it just has to do with the implementation of Lucene, however, I haven't seen this kind of behavior documented anywhere.

Is there a reason for this behavior?



Re: Hits.doc() method and IOException

Posted By:   Otis_Gospodnetic  
Posted On:   Tuesday, May 28, 2002 11:44 AM

That is simply how Lucene works. Don't close the IndexSearcher and you will be fine.
About | Sitemap | Contact