Mailing List Archive

What does it take to optimize?
My index is larger than it should be. My deletable file has entries. I'm
trying to optimize the index, but it just doesn't seem to be doing
anything. Here's how I'm trying to optimize:

IndexWriter writer = new IndexWriter(pathToIndex,
fragmentAnalyzer,
false);
writer.close();
writer.optimize();



thanks,
rob

http://www.robdecker.com/
http://www.planetside.com/


--
To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>
RE: What does it take to optimize? [ In reply to ]
Hi,
I would call close after I call optimize...

-----Original Message-----
From: Robert A. Decker [mailto:decker@robdecker.com]
Sent: Wednesday, April 03, 2002 1:15 PM
To: Lucene Users List
Subject: What does it take to optimize?


My index is larger than it should be. My deletable file has entries. I'm
trying to optimize the index, but it just doesn't seem to be doing
anything. Here's how I'm trying to optimize:

IndexWriter writer = new IndexWriter(pathToIndex,
fragmentAnalyzer,
false);
writer.close();
writer.optimize();



thanks,
rob

http://www.robdecker.com/
http://www.planetside.com/


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

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