Forums / Developer / Update search engine after import?
Dominik Pich
Wednesday 24 March 2004 7:14:21 am
I import xml and create a new product class from it. Its title: Am ZuckerhutIts 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
Wednesday 24 March 2004 8:04:14 am
Thanks
Friday 26 March 2004 1:28:08 am
How to call it...I can't just include it in my import script.
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
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 dir3. 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>
Monday 29 March 2004 6:55:59 am