lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <>
Subject Re: running optimize on master
Date Fri, 11 Feb 2011 01:08:44 GMT
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.


On Thu, Feb 10, 2011 at 7:09 PM, Tri Nguyen <> 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

View raw message