Forums / Extensions / eZ Find / eZ Find update search index solr and solr optimize

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

eZ debug

Timing: Jan 18 2025 02:53:06
Script start
Timing: Jan 18 2025 02:53:06
Module start 'content'
Timing: Jan 18 2025 02:53:07
Module end 'content'
Timing: Jan 18 2025 02:53:07
Script end

Main resources:

Total runtime0.6347 sec
Peak memory usage4,096.0000 KB
Database Queries204

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 587.9844180.7578
Module start 'content' 0.00740.5185 768.7422614.5156
Module end 'content' 0.52590.1087 1,383.2578337.3438
Script end 0.6346  1,720.6016 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.6720210.0002
Check MTime0.00160.2525210.0001
Mysql Total
Database connection0.00140.224210.0014
Mysqli_queries0.555287.48662040.0027
Looping result0.00180.28292020.0000
Template Total0.595693.820.2978
Template load0.00220.350320.0011
Template processing0.593393.488420.2967
Template load and register function0.00010.015310.0001
states
state_id_array0.00080.122410.0008
state_identifier_array0.00080.133620.0004
Override
Cache load0.00190.2944290.0001
Sytem overhead
Fetch class attribute can translate value0.00160.256140.0004
Fetch class attribute name0.00100.160180.0001
XML
Image XML parsing0.00160.251040.0004
class_abstraction
Instantiating content class attribute0.00000.0027100.0000
General
dbfile0.00931.4647390.0002
String conversion0.00000.001430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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