taxonomy_node_update_index() does not exist in Drupal 7.
node_search_execute() attempts to call it.
That line is not doing anything should be removed. Presumably the taxonomy terms have already been added in the node_view() step above?

  // Fetch terms for snippet.
    $node->rendered .= ' ' . module_invoke('taxonomy', 'node_update_index', $node);

Here's a patch...

CommentFileSizeAuthor
lesscruft.patch658 bytesjhodgdon
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jhodgdon’s picture

Status: Active » Needs review
Dries’s picture

Not sure if it can be removed, but there is another reference to it from ./modules/node/node.api.php:
* - comment_node_update_index() and taxonomy_node_update_index() are called

jhodgdon’s picture

I fixed that on another patch. (searching)...
http://drupal.org/node/708974#comment-2582702

Dries’s picture

I committed the patch in #708974: provide an overview of ex-hook_nodeapi operations so that takes care of #2.

Dries’s picture

Status: Needs review » Fixed

After poking around the code, I can confirm that this was cruft. Field API takes care of this now in entity_load(). Committed to CVS HEAD. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.