Implement taxonomy term search
fgm - September 3, 2007 - 21:58
| Project: | Drupal |
| Version: | 7.x-dev |
| Component: | taxonomy.module |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | patch (code needs work) |
Description
Since vocabularies and their terms are such an important part of Drupal, not being able to search them looks like a bug. OTOH, since it has been missing all that time, maybe it's a feature ?
The suggested patch adds this feature.
| Attachment | Size |
|---|---|
| taxonomy.module_44.patch | 1.14 KB |

#1
#2
This still applies to HEAD, although there is some offset:
$ patch -p0 < taxonomy.module_44.patch
(Stripping trailing CRs from patch.)
patching file modules/taxonomy/taxonomy.module
Hunk #1 succeeded at 1311 (offset 157 lines).
#3
Rerolled against HEAD with some minor changes.
#4
Considering the talks about terminology regarding taxonomy, maybe we need to change "Tags" to something more consistent with uses elsewhere in Drupal, like "taxonomy", "terms", "vocabularies" ?
#5
I guess, "taxonomy terms" would be correct. This is a moving target though.
#6
This works as a quick fix to allow the savvy user to search through categories that are on a website but at least to me, I'd imagine people wanting to be able to have their taxonomy term pages show up alongside normal search results.
Thus, instead of saying: Do you wish to search for a category that we may have on our website? We present them with category matches when they search using the generic search form. If we really care about the user experience, this is something that we must address and implement (as well as support to link to views and panel pages).
Just my 2cents.
-Blake
#7
Yeah. It makes sense for user searches to be separate, but taxonomy terms are (often) used as high level pages.
Say you have a taxonomy term for 'news', aliased as 'news' - it currently won't appear anywhere in a search for that word.
It'd be useful to have a straight search for terms on admin/content/taxonomy though.
#8
Rerolled and renamed tags to taxonomy since we recently got rid of Categories as a taxonomy synonym.
I'm not keen on the patch as it is, though. It doesn't go far enough to be really useful. I'd want the vocabulary names and the term synonyms to be in there, too, but you won't get that quite as easily just relying on the taxonomy module's API. Plus, if we put this in the taxonomy module as is, it forces people to have a taxonomy search tab. I'd rather have it in its own module so I can turn it off if not needed. The alternative to this is modifying the search module in a way that lets one opt out of search implementations.
#9
New title.