Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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).
Comment | File | Size | Author |
---|---|---|---|
taxonomy_search.patch | 863 bytes | Steven | |
Comments
Comment #1
moshe weitzman CreditAttribution: moshe weitzman commentedof course
Comment #2
Steven CreditAttribution: Steven commentedSlight 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.
Comment #3
(not verified) CreditAttribution: commented