Closed (fixed)
Project:
Category
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Jun 2006 at 23:43 UTC
Updated:
20 Jun 2009 at 00:50 UTC
Node listings on category pages get appended to the category node's body, through hook_nodeapi('view'). As such, these are getting indexed by the search module, as they are considered "part of" the node's body.
Not sure if there's an easy way to override the indexing behaviour of the search module per-node-type - but if there is, therein lies the fix for this bug.
Comments
Comment #1
Dabitch commentedThis is not good on large sites with categories, all you find is category pages instead of the nodes which contain what you're looking for.
Comment #2
JirkaRybka commentedI checked in 6.x-2.0-beta3 code, and I'm pretty sure this got fixed already: There's a check for NODE_BUILD_NORMAL mode, so for NODE_BUILD_SEARCH_INDEX the listing is not added. In 5.x code, there's the case 'update index' (I don't know how exactly this was on 5.x, I admit, but I guess it's fine there, too). I checked my 5.x site, and I certainly don't have categories in search results.
Based on above posts' dates (as HEAD is not much of a version info), this was 4.7.x issue - so, now unsupported version. I really don't know whether this issue is a forgotten duplicate of something very old, or just obsolete by itself (possibly being fixed by just porting the module to newer Drupal branches?), but however I'm hesitant to close Jaza's own issues, I think this is really a Fixed one since 4.7.x->5.x transition.
Feel free to re-open, if needed!