[drupal-devel] [bug] node_search doesn't node_view, causing bad snippets.

Morbus Iff drupal-devel at drupal.org
Tue Jul 19 14:16:54 UTC 2005


Issue status update for 
http://drupal.org/node/26458
Post a follow up: 
http://drupal.org/project/comments/add/26458

 Project:      Drupal
 Version:      cvs
 Component:    node.module
 Category:     bug reports
 Priority:     normal
-Assigned to:  Anonymous
+Assigned to:  Morbus Iff
 Reported by:  Morbus Iff
 Updated by:   Morbus Iff
-Status:       active
+Status:       patch
 Attachment:   http://drupal.org/files/issues/_p_26458_nodesearch.patch (996 bytes)

Updated for HEAD.




Morbus Iff



Previous comments:
------------------------------------------------------------------------

Wed, 06 Jul 2005 15:08:32 +0000 : Morbus Iff

Attachment: http://drupal.org/files/issues/_p_nodesearch.patch (1010 bytes)

During search indexing, the node.module invokes node_view and node view
api before indexing it for content (see node_update_index). This,
however, doesn't happen on node_search, which assumes that the body
exists to get a snippet from. This causes an empty snippet on flexinode
nodes, or anything else that requires a node view api. This patch simply
adds the same block from node_update_index to node_search.







More information about the drupal-devel mailing list