What to do after editing eZFind/solR configuration ?

Author Message

H-Works Agency

Monday 18 October 2010 9:11:12 am

Hello,

Can someone validate those steps when modifying ezfind/solr configurations ?

For eZFind :

  1. editing ezfind.ini
  2. php extension/ezfind/bin/php/updatesearchindexsolr.php -s siteaccess --php-exec=/usr/bin/php

For solR :

  1. editing schema.xml (the one loaded for your system either uni or multi-core)
  2. removing index datas by : rm -rf ./extension/ezfind/java/solr/data/*
  3. restarting solr (debian install script) : /etc/init.d/solr restart

What does ezfindexcontent.php is doing as even when its not running content is indexed when publishing from admin siteaccess ?

EZP is Great

Paul Borgermans

Sunday 24 October 2010 3:32:22 pm

"

Hello,

Can someone validate those steps when modifying ezfind/solr configurations ?

For eZFind :

  1. editing ezfind.ini
  2. php extension/ezfind/bin/php/updatesearchindexsolr.php -s siteaccess --php-exec=/usr/bin/php

For solR :

  1. editing schema.xml (the one loaded for your system either uni or multi-core)
  2. removing index datas by : rm -rf ./extension/ezfind/java/solr/data/*
  3. restarting solr (debian install script) : /etc/init.d/solr restart

What does ezfindexcontent.php is doing as even when its not running content is indexed when publishing from admin siteaccess ?

"

Mostly correct. I would suggest to use

 php extension/ezfind/bin/php/updatesearchindexsolr.php -s siteaccess --php-exec=/usr/bin/php  --clean-all

The --clean-all option deletes the index for you

about ezfindindexcontent.php, this is the script to use if you enabled delayed indexing (site.ini)

hth

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Gaetano Giunta

Monday 25 October 2010 4:52:43 am

Further insight:

. content is indexed in realtime when it is edited by default. No need for the ezfindexcontet cronjob. But you can configure eZP to index new in non-realtime mode. It is a parameter in site.ini: DealayedIndexing. When it is enabled, you have to set up the cronjob to periodically index your new contents, or it will never be indexed.

The advantage of non-realtime indexing is that the editing process is slightly faster.

It is also a very good idea to disable realtime indexing when running content import batch scripts.

. after editing schema.xml, it is better if you reindex all of your contents, as some of the changes you have made might need to be taken into account at indexation time, not only at search time. So run again updatesearchindexsolr.php on the eZ side

Principal Consultant International Business
Member of the Community Project Board

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 29 2025 14:43:11
Script start
Timing: Jan 29 2025 14:43:11
Module start 'layout'
Timing: Jan 29 2025 14:43:11
Module start 'content'
Timing: Jan 29 2025 14:43:11
Module end 'content'
Timing: Jan 29 2025 14:43:11
Script end

Main resources:

Total runtime0.0395 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 588.4063151.2422
Module start 'layout' 0.00660.0065 739.648436.7188
Module start 'content' 0.01310.0247 776.367295.9219
Module end 'content' 0.03780.0017 872.289133.9766
Script end 0.0395  906.2656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00276.7086140.0002
Check MTime0.00112.7645140.0001
Mysql Total
Database connection0.00102.558210.0010
Mysqli_queries0.006516.435830.0022
Looping result0.00000.058510.0000
Template Total0.00123.010.0012
Template load0.00092.376610.0009
Template processing0.00020.567110.0002
Override
Cache load0.00071.675510.0007
General
dbfile0.012030.260980.0015
String conversion0.00000.022940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs