Forums / Developer / Update search engine after import?

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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 Exponential 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