On Wed, Mar 19, 2008 at 3:15 PM,  <[EMAIL PROTECTED]> wrote:
> What I'm finding is that I have to do it twice in order for the files to be 
> "optimized" ... i.e.: the
> first post takes 3-4 minutes but leaves the file count as is at 44 ... the 
> second post takes 2-3
> seconds but shrinks the file count from 44 to 8.

Let me guess, are you on windows?

This is actually expected behavior.  The first optimize actually does
optimize the whole index.  When the optimize finishes, it can't delete
the old files because they are still in use by the current
IndexSearcher.  If you were on UNIX, the files would be deleted sooner
(or at least like like they were).

In short, Solr + Lucene are doing the right thing... just optimize
once, and don't worry about it.

-Yonik

Reply via email to