lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luke Francl <>
Subject Re: Index File
Date Mon, 15 Nov 2004 16:03:00 GMT
On Mon, 2004-11-15 at 09:52, Luke Shannon wrote:
> Once this was modified to create a new IndexerSearch for every search
> request, all my problems went away.

Be careful with this. You could conceivably run out of file handles.
This problem got a lot better in Lucene 1.3 with the compound file
format, it could still happen if you have a lot of heap and aren't
garbage collecting very often. So close the old one when you're done
with it.

Also, creating a new IndexSearcher only when the index has been modified
will give you a performance boost because you do not have to open the
index with every search. 

Luke Francl

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

View raw message