Is <optimize /> optimized?

View: New views
3 Messages — Rating Filter:   Alert me  

Is <optimize /> optimized?

by William Pierce-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Folks:

If I issue two <optimize /> requests with no intervening changes to the index,  will the second optimize request be smart enough to not do anything?

Thanks,

Bill

Re: Is <optimize /> optimized?

by hossman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


: If I issue two <optimize /> requests with no intervening changes to the
: index, will the second optimize request be smart enough to not do
: anything?

the actual optimize is optimized, but postCommit and postOptimize event
listeners will still be fired.


-Hoss


Re: Is <optimize /> optimized?

by Otis Gospodnetic :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes.  I believe the "is the index already optimized" is in the guts of Lucene.

Otis
--
Sematext is hiring -- http://sematext.com/about/jobs.html?mls
Lucene, Solr, Nutch, Katta, Hadoop, HBase, UIMA, NLP, NER, IR



----- Original Message ----

> From: William Pierce <evalsinca@...>
> To: solr-user@...
> Sent: Fri, October 23, 2009 1:05:52 PM
> Subject: Is <optimize /> optimized?
>
> Folks:
>
> If I issue two requests with no intervening changes to the index,  
> will the second optimize request be smart enough to not do anything?
>
> Thanks,
>
> Bill