eZ Find update search index solr and solr optimize

Author Message

Jean-Luc Nguyen

Tuesday 21 July 2009 2:45:52 am

Hello,

I would like a confirmation:

- The updatesearchindexsolr.php script "reindexes the meta data to the search engine".
- The ezsolroptimize.php script "sends an optimize message to the solr search server".

Looking in the updatesearchindexsolr.php code, I can see that after the reindexation, the script also call the optimize method.

$searchEngine->optimize( true );

So the question is, is it necessary to execute ezsolroptimize.php after a updatesearchindexsolr.php execution, or can I put in comments the $searchEngine->optimize( true ); in updatesearchindexsolr.php and call both scripts?

Thanks a lot!

http://www.acidre.com

Max Keil

Tuesday 21 July 2009 2:57:28 pm

Hi Jean-Luc,

I confirm! In fact these both are the same methods. So it's not necessary to execute ezsolroptimize.php after updating the index. But you can run it, if your Solr getting lazy after weeks of work and lots of new content inside.

Mit freundlichen Grüßen
Best regards

Max Keil

____________________________________________________________
eZ Publish Gold Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

Jean-Luc Nguyen

Wednesday 22 July 2009 12:46:35 am

Thanks for your answer!

http://www.acidre.com

Gaetano Giunta

Wednesday 22 July 2009 12:49:10 am

...maybe it's time for a fetaure request ( allow updatesearchindexsolr to run without calling optimize() )?

Principal Consultant International Business
Member of the Community Project Board

Jean-Luc Nguyen

Wednesday 22 July 2009 2:29:18 am

Hello,

Actually the optimize call is at the end of the reindexing process and also after each 1000 reindexed objects (and clearcache calls, to prevent from memory limit?). It seems like it is too much optimize calls.

Somebody at eZ Systems told me that a new version (2.1) of ezfind would be out soon, and would correct the huge number of optimize calls on scripts.

I also think that 1000 is a random number, it depends on the contents database website.

So yes, it would be a nice script change.

http://www.acidre.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.