Category module question for Jaza - search results

Events happening in the community are now at Drupal community events on www.drupal.org.
robertdouglass's picture

I've got nodes categorized under multiple categories. Lets say one of those nodes has the keyword "Huba" and is categorized under A, B and C. In the search results for Huba, I'm getting links to nodes A, B and C, as well as for the node containing Huba. This doesn't seem right to me. Please explain. My mistake? Bug? Feature?

Comments

Bug, kind of

Jaza's picture

I guess this is a bug. Since the category module appends node listings to the body of category nodes (through hook_nodeapi's 'view' op), these node listings get indexed, along with the "real body". This should not be happening, because only the actual pages for those nodes should get indexed, not the links/teasers of those nodes on category pages.

I haven't looked into setting it up so that the search module only indexes part of the node body. I don't even know if this is possible through hook_search(), or through some other API mechanism. Would appreciate any advice that anyone may have on this.

I've filed a bug report for this: http://drupal.org/node/70212

Jeremy Epstein - GreenAsh

Jeremy Epstein - GreenAsh

Relationships & site structuring

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week