lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "hui" <>
Subject RE: lucene 1.4 index file closing
Date Thu, 26 Aug 2004 21:18:59 GMT
After checking down, it is a more back compatible issue.
  public IndexSearcher(IndexReader r) {
    this(r, false);
The default "false" here easily breaks the existing applications without any


-----Original Message-----
From: hui [] 
Sent: Wednesday, August 25, 2004 6:40 PM
Subject: lucene 1.4 index file closing

It seems the Lucene 1.4.1 does not close the index files even the
searcher.close is called. Monitor the tomcat(4.1.30), the file handle number
keeps going up when doing search. The increased number matched with the
index file number. The index is based on the same Lucene version. I tried
both of the one or two indexes. The result is the same. After a while the
tomcat, the server is going to run out of the file handle.
 The code lines are
Hits hits, new Sort(SortField.FIELD_DOC ));
I changed the line to
Hits hits;
And switched back to 1.3 final and it works fine (after searching, the
handles of tomcat went back the same as before searching.)
This was reported as a bug
<> &msgId=1737852
But it shows it solved on July 12 which means it should not exist at 1.4.1.
Or should I get the latest one from cvs?

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

View raw message