Update search engine after import?

Author Message

Dominik Pich

Wednesday 24 March 2004 7:14:21 am

I import xml and create a new product class from it.
Its title: Am Zuckerhut
Its author: Frederik Dietz

If I then search for Zuckerhut or Dietz, the product isn't found although displaying fine.

Kåre Køhler Høvik

Wednesday 24 March 2004 7:40:02 am

Run

./update/common/scripts/updatesearchindex.php

to update your search index.

Kåre Høvik

Dominik Pich

Wednesday 24 March 2004 8:04:14 am

Thanks

Dominik Pich

Friday 26 March 2004 1:28:08 am

How to call it...
I can't just include it in my import script.

Kåre Køhler Høvik

Friday 26 March 2004 1:59:44 am

Run the script from the ez publish root. You can add the script after the import job if you're running the import as a cron job, or just run it manually.

Note, the script may take several hours to run, depending on your database size.

--
Kåre Høviik

Kåre Høvik

Volker Lenz

Monday 29 March 2004 4:07:25 am

On my Suse 8 box, the complete procedure is as follows:

1. open a shell
2. go to your ezp root dir
3. issue the following command: php -C -f update/common/scripts/updatesearchindex.php

If this does not index as you expect, support the site access parameter <your_site_access> as follows:

3. php -C -f update/common/scripts/updatesearchindex.php -s <your_site_access>

Dominik Pich

Monday 29 March 2004 6:55:59 am

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 11:02:19
Script start
Timing: Jan 18 2025 11:02:19
Module start 'layout'
Timing: Jan 18 2025 11:02:19
Module start 'content'
Warning: PHP: E_WARNING Jan 18 2025 11:02:20
DOMDocument::loadXML(): Opening and ending tag mismatch: literal line 2 and paragraph in Entity, line: 149 in /home/ze/public_html/share.se7enx.com/kernel/classes/datatypes/ezxmltext/ezxmloutputhandler.php on line 174
Warning: PHP: E_WARNING Jan 18 2025 11:02:20
DOMDocument::loadXML(): Opening and ending tag mismatch: paragraph line 2 and section in Entity, line: 149 in /home/ze/public_html/share.se7enx.com/kernel/classes/datatypes/ezxmltext/ezxmloutputhandler.php on line 174
Timing: Jan 18 2025 11:02:20
Module end 'content'
Timing: Jan 18 2025 11:02:20
Script end

Main resources:

Total runtime1.0134 sec
Peak memory usage4,096.0000 KB
Database Queries71

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 587.9219152.6250
Module start 'layout' 0.00540.0033 740.546939.4609
Module start 'content' 0.00861.0033 780.0078621.7188
Module end 'content' 1.01190.0015 1,401.726617.6719
Script end 1.0134  1,419.3984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3361160.0002
Check MTime0.00130.1300160.0001
Mysql Total
Database connection0.00080.075610.0008
Mysqli_queries0.945293.2689710.0133
Looping result0.00080.0795690.0000
Template Total0.977296.420.4886
Template load0.00240.235320.0012
Template processing0.974896.193320.4874
Template load and register function0.00040.034910.0004
states
state_id_array0.00090.084610.0009
state_identifier_array0.00180.176420.0009
Override
Cache load0.00200.1941320.0001
Sytem overhead
Fetch class attribute can translate value0.00060.060230.0002
Fetch class attribute name0.00150.150590.0002
XML
Image XML parsing0.00140.140830.0005
class_abstraction
Instantiating content class attribute0.00000.0022100.0000
General
dbfile0.00110.1052210.0001
String conversion0.00000.000940.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
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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: 26
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs