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.

eZ debug

Timing: Jan 18 2025 10:28:21
Script start
Timing: Jan 18 2025 10:28:21
Module start 'layout'
Timing: Jan 18 2025 10:28:21
Module start 'content'
Timing: Jan 18 2025 10:28:22
Module end 'content'
Timing: Jan 18 2025 10:28:22
Script end

Main resources:

Total runtime0.7183 sec
Peak memory usage4,096.0000 KB
Database Queries67

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 588.1875152.6563
Module start 'layout' 0.00680.0050 740.843839.5078
Module start 'content' 0.01180.7048 780.3516609.4063
Module end 'content' 0.71660.0016 1,389.757816.1016
Script end 0.7183  1,405.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4824160.0002
Check MTime0.00140.1963160.0001
Mysql Total
Database connection0.00080.117510.0008
Mysqli_queries0.660091.8762670.0099
Looping result0.00060.0884650.0000
Template Total0.670793.420.3354
Template load0.00220.300020.0011
Template processing0.668693.074820.3343
Template load and register function0.00010.017410.0001
states
state_id_array0.00180.248410.0018
state_identifier_array0.00150.215620.0008
Override
Cache load0.00180.2462290.0001
Sytem overhead
Fetch class attribute can translate value0.00060.090530.0002
Fetch class attribute name0.00100.140380.0001
XML
Image XML parsing0.00120.166430.0004
class_abstraction
Instantiating content class attribute0.00000.0021100.0000
General
dbfile0.00090.1252280.0000
String conversion0.00000.001740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs