[drupal-devel] [feature] Patch: add ability to limit searches to given taxonomy(ies)

jsaints drupal-devel at drupal.org
Mon Aug 15 20:51:47 UTC 2005


Issue status update for 
http://drupal.org/node/28933
Post a follow up: 
http://drupal.org/project/comments/add/28933

 Project:      Drupal
 Version:      4.6.0
 Component:    search.module
 Category:     feature requests
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  jsaints
 Updated by:   jsaints
 Status:       patch (code needs review)

Forgot to mention that these patches are for Drupal version 4.6.3




jsaints



Previous comments:
------------------------------------------------------------------------

Mon, 15 Aug 2005 20:39:26 +0000 : jsaints

Attachment: http://drupal.org/files/issues/search_by_taxonomy_patches.zip (3.09 KB)

Here is a quick patch to the search.module and node.module That allows
for site search to be limited by taxonomy.


Taxonomy limited searches would be available via a URL like:


1) http://my.site.com/search/node/taxonomy/term/1+5+6/my+search+text
2) http://my.site.com/search/node/taxonomy/term/1,5,6/my+search+text


These two searches would return respectivly:
1) nodes matching "my search text" in taxonomies 1 or 5 or 6
2) nodes matching "my search text" in taxonomies 1 and 5 and 6


This functionality will not interfere with the current search syntax
http://my.site.com/search/node/my+search+text. which will continue to
return all nodes that match the text "my search here".


The patches are for Drupal version 4.6.  If the community likes this
functionality, I would like to commit it to CVS







More information about the drupal-devel mailing list