Mailing List
Forum Home
Maven - Project building tool
Axis - Java SOAP implementation
Lucene - Full-featured text search engine APIs
Cocoon - MVC web framework based on XML/XSL
Fop - Create PDF, PCL, PS, SVG, XML driven by XSL formatting objects.
Log4J - A log library
POI - Java Excel, Word and other Microsoft Office files manipulating library
Oracle database error code ...
log4j warning: No appenders could be found
java security AccessControlException: access denied (java io FilePermission clie
java lang InstantiationException: org apache tools ant Main
Apache Axis Tutorial
Subject: Struts <logic iterate >
log4j properties How to parse outpu to multiple files
configuring log4j with BEA Weblogic 8 1
How to use XSL FOP Java together
JSP precompile
Proposal: Adding jar manifest classpath in jar and war plugins
Servlet File Download dialog problem (IE6,Adobe 6 0)
java security AccessControlException: access denied (java io FilePermission
Unsupported major minor version 48 0 problem while running the an
   telope task
Subject: axis wsdl2java Ant Task usage
net sf hibernate MappingException: Error reading resource: test/User hbm xml
Building EAR ANT Script for websphere 5 0
Classpath problem
jsp data into Excel
Jboss 3 2 3+ vs Tomcat Axis Question
RE: How to include jars and add them into the MANIFEST MF/Class Path
Printing problem
Subject: InstantiationException
Couldn 't find trusted certificate
Please : How can one install ant 1 6 0 under Eclipse 2 1 ?
Excel: Too many different cell formats
Subject: AXIS: tomcat timeout ?
1 3 final: now giving me java io FileNotFoundException (Too many
open files)
XDoclet, Struts and Maven: Where to start? SOLUTION
Subject: Running junit tests fails
can we do partial optimization?

can we do partial optimization?

2007-12-03       - By Nizamul

Reply:     1     2     3  

I am very new to Lucene.I am facing one problem.
I have one very large index which is constantly getting update(add and delete)
at a regular interval.after which I am optimizing the whole index (otherwise
searches will be slow) but optimization takes time.So I was thinking to merge
only the segments of lesser size(I guess it will be a good compromise between
search time and optimization time) i.e. suppose I have 10 segment
1 of 10,000,000 doc
4 of 100,000 doc
4 of 10,000 doc
and 1 of 5 doc.

I want to merger 9 segment of lesser size  in to  one(I believe this would not
take much time and searching will improve a lot).But I don't know how to do
partial merging.Whether Lucene allow it or not?? or if I can extend indexWriter
and add a method optimize of my own where I can specify which cfs file to chose
for optimization?

Thanks and Regards,