You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by saisantoshi <sa...@gmail.com> on 2013/01/23 22:49:20 UTC

IndexWriter.optimize() is removed in 4.0?

There is no optimize() method in 4.0. I looked at the 3.6 docs and it did
mention the following below. Does the following below mean that we no longer
need this method and should not be used anymore. Is there any supplement
method that we need to use as it is deprecated as of version 3.6.0

/*
Deprecated. 
This method has been deprecated, as it is horribly inefficient and very
rarely justified. Lucene's multi-segment search performance has improved
over time, and the default TieredMergePolicy now targets segments with
deletions.
*/

Thanks,
Sai.



--
View this message in context: http://lucene.472066.n3.nabble.com/IndexWriter-optimize-is-removed-in-4-0-tp4035769.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.

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


Re: IndexWriter.optimize() is removed in 4.0?

Posted by Denis Bazhenov <do...@gmail.com>.
All the given reasons applies to some systems but not to all of them. But distributed systems (with index being built on dedicated machine) with index warm up on index reopen can successfully mitigate both IO and cold-cache overhead.

On Jan 24, 2013, at 8:58 AM, Steve Rowe <sa...@gmail.com> wrote:

> Hi Sai,
> 
> Check out Simon Willnauer's blog post about this: <http://www.searchworkings.org/blog/-/blogs/simon-says%3A-optimize-is-bad-for-you>
> 
> Steve
> 
> On Jan 23, 2013, at 4:49 PM, saisantoshi <sa...@gmail.com> wrote:
> 
>> There is no optimize() method in 4.0. I looked at the 3.6 docs and it did
>> mention the following below. Does the following below mean that we no longer
>> need this method and should not be used anymore. Is there any supplement
>> method that we need to use as it is deprecated as of version 3.6.0
>> 
>> /*
>> Deprecated. 
>> This method has been deprecated, as it is horribly inefficient and very
>> rarely justified. Lucene's multi-segment search performance has improved
>> over time, and the default TieredMergePolicy now targets segments with
>> deletions.
>> */
>> 
>> Thanks,
>> Sai.
>> 
>> 
>> 
>> --
>> View this message in context: http://lucene.472066.n3.nabble.com/IndexWriter-optimize-is-removed-in-4-0-tp4035769.html
>> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 

---
Denis Bazhenov <do...@gmail.com>






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


Re: IndexWriter.optimize() is removed in 4.0?

Posted by Steve Rowe <sa...@gmail.com>.
Hi Sai,

Check out Simon Willnauer's blog post about this: <http://www.searchworkings.org/blog/-/blogs/simon-says%3A-optimize-is-bad-for-you>

Steve

On Jan 23, 2013, at 4:49 PM, saisantoshi <sa...@gmail.com> wrote:

> There is no optimize() method in 4.0. I looked at the 3.6 docs and it did
> mention the following below. Does the following below mean that we no longer
> need this method and should not be used anymore. Is there any supplement
> method that we need to use as it is deprecated as of version 3.6.0
> 
> /*
> Deprecated. 
> This method has been deprecated, as it is horribly inefficient and very
> rarely justified. Lucene's multi-segment search performance has improved
> over time, and the default TieredMergePolicy now targets segments with
> deletions.
> */
> 
> Thanks,
> Sai.
> 
> 
> 
> --
> View this message in context: http://lucene.472066.n3.nabble.com/IndexWriter-optimize-is-removed-in-4-0-tp4035769.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 


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