Drupal - include taxonomy term descriptions in search
I am working on a large site which has around 600 taxonomy terms in one of its taxonomy vocabularies, each with the description field populated.
It's important that the search mechanism searches these term descriptions as well as the nodes themselves.
Drupal does not appear to be doing th开发者_JS百科is by default - is there any way I can do this - any modules for example?
Thanks in advance.
There isn't a ready made solution for this, so you will need to do custom development.
Your best bet is, with a big site and maybe 100k nodes to use apache solr to power your search. The default Drupal search is not made for searching a lot of data and will quickly become slow.
There is a Drupal module for apache solr search, and it does a lot of the heavy lifting and provides some hooks you can use. So with some code to build on that you should be able to vet such a search.
Solr does other nice things like faceted search.
I think there may already be a couple of ready made solutions
http://drupal.org/project/search_config
http://drupal.org/project/Custom_Search
精彩评论