Share » Forums » Developer » Advanced Search Doesn't Work

Advanced Search Doesn't Work

Advanced Search Doesn't Work

Wednesday 03 March 2004 12:49:36 pm - 2 replies

Modified on Wednesday 03 March 2004 12:50:49 pm by Willie Seabrook

Author Message

Willie Seabrook

Wednesday 03 March 2004 7:23:32 pm

The problem is in the updatesearchindex.php.

On line number 382 you need to change:

$node =& eZContentObjectTreeNode::fetch( 2 );

to:

$node =& eZContentObjectTreeNode::fetch( $topLevelNodeID );

to force it to recursively index all top level nodes - content (top level node_id=2) *and* user (top level node_id=5)

I don't understand this script in detail so I may have done something wrong. However, my search now works 100% correctly. I'm using ezpublish 3.3 by the way so this bug may have been fixed in 3.4, but I couldn't find anything about it in the changelog.

Regards,
Willie

Kåre Køhler Høvik

Wednesday 03 March 2004 11:47:18 pm

updatesearchindex.php was rewritten in 3.3-3 I think to also index User objects and other top nodes. You can use the script from that release to make sure everything is reindex properly.

--
Kåre Høvik

Kåre Høvik

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu