lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Willnauer <simon.willna...@googlemail.com>
Subject Re: lucene-core-3.3.0 not optimizing
Date Fri, 02 Dec 2011 17:21:05 GMT
On Fri, Dec 2, 2011 at 12:15 PM, Simon Hafner <hafnersimon@gmail.com> wrote:
>
> On 02.12.2011, at 04:54, KARTHIK SHIVAKUMAR wrote:
>
>> Hi
>>
>> Spec
>> O/s win os 7
>> Jdk : 1.6.0_29
>> Lucene  lucene-core-3.3.0
>>
>> Finally after Indexing successfully ,Why this Code does not optimize (
>> sample code )
>>
>>            INDEX_WRITER.optimize(100);
>>            INDEX_WRITER.commit();
>>            INDEX_WRITER.close();
>
> Because you shouldn't use it [1] in general. :-)

well this is not entirely true. If you have a static index ie. you
build it every week or so optimizing it still makes sense. We renamed
it to something less cool sounding since it does more harm than good
in lots of situations and people shouldn't feel encouraged to use it
just because it has a fancy name. Read the javadoc or one or my last
blogs ( http://bit.ly/vl0Jte ) for more background

simon
>
> Simon
>
> [1‘ https://issues.apache.org/jira/browse/LUCENE-3454
> ---------------------------------------------------------------------
> 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


Mime
View raw message