RE: Should the IndexSearcher be closed after very search completed

2007-07-09 Thread anson
Hi Ard, Thanks for your reply, well, I think I have done right. >Closing the IndexSearcher is best only after a deleteDocuments with a >reader or changes with a writer. > >For performance reasons, it is better to not close the IndexSearcher if not > needed > >Regarsd Ard > >> >> >> sorry, th

RE: Should the IndexSearcher be closed after very search completed

2007-07-09 Thread Ard Schrijvers
Closing the IndexSearcher is best only after a deleteDocuments with a reader or changes with a writer. For performance reasons, it is better to not close the IndexSearcher if not needed Regarsd Ard > > > sorry, the subject should be "Should the IndexSearcher be > closed after > every sear

Re: Should the IndexSearcher be closed after very search completed

2007-07-09 Thread anson
sorry, the subject should be "Should the IndexSearcher be closed after every search completed" ~ >Hi, > >Should the IndexSearcher instance be closed after very search completed. > >I wrote a sample, but I have not closed the singleton instatnce of >IndexSearcher unless IndexReader#isCurrent()