lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tri Nguyen <tringuye...@yahoo.com>
Subject Re: running optimize on master
Date Fri, 11 Feb 2011 01:10:50 GMT
Does optimize merge all segments into 1 segment on the master after the build?

Or after the build, there's only 1 segment.

thanks,

Tri




________________________________
From: Erick Erickson <erickerickson@gmail.com>
To: solr-user@lucene.apache.org
Sent: Thu, February 10, 2011 5:08:44 PM
Subject: Re: running optimize on master

Optimizing isn't necessary in your scenario, as you don't delete
documents and rebuild the whole thing each time anyway.

As for faster searches, this has been largely been made obsolete
by recent changes in how indexes are built in the first place. Especially
as you can build your index in an hour, it's likely not big enough to
benefit from optimizing even under the old scenario....

So, unless you have some evidence that your queries are performing
poorly, I would just leave the optimize step off.

Best
Erick


On Thu, Feb 10, 2011 at 7:09 PM, Tri Nguyen <tringuyen99@yahoo.com> wrote:
> Hi,
>
> I've read running optimize is similar to running defrag on a hard disk.  
>Deleted
> docs are removed and segments are reorganized for faster searching.
>
> I have a couple questions.
>
> Is optimize necessary if  I never delete documents?  I build the index every
> hour but we don't delete in between builds.
>
> Secondly, what kind of reorganizing of segments is done to make searches 
>faster?
>
> Thanks,
>
> Tri

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message