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.

AttachmentSize
taxonomy.module_44.patch1.14 KB

#1

chx - September 23, 2007 - 16:25
Version:6.x-dev» 7.x-dev
Category:bug report» feature request
Status:active» patch (code needs review)

#2

birdmanx35 - February 2, 2008 - 19:49

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

Pancho - February 4, 2008 - 01:53

Rerolled against HEAD with some minor changes.

AttachmentSize
taxonomy_search.patch1.2 KB

#4

fgm - February 4, 2008 - 07:12

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

Pancho - February 4, 2008 - 13:14

I guess, "taxonomy terms" would be correct. This is a moving target though.

#6

BlakeLucchesi - April 10, 2008 - 19:59

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

catch - April 11, 2008 - 15:04

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

robertDouglass - April 15, 2008 - 08:34
Component:search.module» taxonomy.module
Status:patch (code needs review)» patch (code needs work)

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.

AttachmentSize
taxonomy_search.patch1.23 KB

#9

robertDouglass - April 15, 2008 - 08:35
Title:Search does not search taxonomy terms» Implement taxonomy term search

New title.

 
 

Drupal is a registered trademark of Dries Buytaert.