Node search allows you to restrict searches to taxonomy terms, but you cannot locate nodes that are tagged with a certain term just by searching on it as a keyword.

The attached patch allows this. It's a very simple enhancement which simply adds the terms to the indexed content. For example, a node about "event module" in the "news and announcements" forum will now turn up when searching for "event announcement" (when porter-stemmer is used).

It's really a usability improvement for search.module and is virtually free when doing the indexing (the terms are loaded anyway).

CommentFileSizeAuthor
taxonomy_search.patch863 bytesSteven
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

moshe weitzman’s picture

Status: Needs review » Reviewed & tested by the community

of course

Steven’s picture

Status: Reviewed & tested by the community » Fixed

Slight bug: renamed taxonomy_update_index() to taxonomy_node_update_index(). It is not an implementation of hook_update_index().

Tested, verified and committed to HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)