lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: Optimizing Collections
Date Wed, 30 Jun 2004 01:33:32 GMT
Don,

Use IndexWriter's optimize() method:

IndexWriter writer = new IndexWriter(.....)
writer.optimize();
writer.close();

Otis

--- Don Vaillancourt <donv@webimpact.com> wrote:
> Hello All,
> 
> I've finished with the Lucene collections.  I'm building collections
> based 
> on PDFs and database queries and everything is winderful.
> 
> I remember reading somewhere that you could optimize a Lucene 
> collection.  But I can't remember where and cannot find anything on 
> that.  I've also read it here as well.
> 
> Could someone point me to the right direction on how to optimize a
> collection?
> 
> 
> Thanks
> 
> 
> Don Vaillancourt
> Director of Software Development
> 
> WEB IMPACT INC.
> 416-815-2000 ext. 245
> email: donv@web-impact.com
> web: http://www.web-impact.com
> 
> 
> 
> 
> This email message is intended only for the addressee(s)
> and contains information that may be confidential and/or
> copyright.  If you are not the intended recipient please
> notify the sender by reply email and immediately delete
> this email. Use, disclosure or reproduction of this email
> by anyone other than the intended recipient(s) is strictly
> prohibited. No representation is made that this email or
> any attachments are free of viruses. Virus scanning is
> recommended and is the responsibility of the recipient.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 


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


Mime
View raw message