Search doesn't find programaticly added products

Author Message

Dominik Pich

Tuesday 30 March 2004 1:36:29 am

I wrote a script (as extension module) that reads xml files uploaded via ftp and creates a eZContentObject setting its attributes to the text/ints/images/binaries set it the xml.

All works but for the search... ALTHOUGH
the attributes of the product class are searchable!
registerSearchObject is called (not as a post_publish hook though)!
the updateSearchIndex script has been run!

What am I missing?

Paul Forsyth

Tuesday 30 March 2004 3:41:57 am

Does your user have the right role permissions to view the objects? Search won't display if you don't.

Also, check the templates used for search results. There may be something in there stopping it from being viewed.

paul

Paul Forsyth

Tuesday 30 March 2004 3:42:56 am

finally check your db and the table 'ezsearch_word' to see if your attributes have been catalogued.

Dominik Pich

Wednesday 31 March 2004 2:08:02 am

words are there... results 0 - seen in stats

Paul Forsyth

Wednesday 31 March 2004 2:26:18 am

If the words are in the db then it sounds like a template problem. Probably worth testing whether results are being passed to the template.

Dominik Pich

Monday 05 April 2004 5:41:06 am

First of all: Thank you!
It was no template error, not even an ez error but a mysql permissions error...
dumb me :) I disabled debug output and therefore didnt see it.
Also, I didnt think the db was the problem, it works with other ez pages also on this server.

Sorry for wasting your time although your comment on templates made me investigate in that direction.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.