Drupal - 在搜索中包含分类术语描述
我正在开发一个大型网站,该网站的一个分类词汇表中有大约 600 个分类术语,每个分类术语都填充了描述字段。
搜索机制搜索这些术语描述以及节点本身非常重要。
默认情况下,Drupal 似乎没有这样做 - 有什么方法可以做到这一点 - 例如任何模块?
提前致谢。
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 this by default - is there any way I can do this - any modules for example?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
目前还没有现成的解决方案,因此您需要进行自定义开发。
您最好的选择是,拥有一个大型站点,可能有 100k 个节点,使用 apache solr 来支持您的搜索。默认的 Drupal 搜索并不是为搜索大量数据而设计的,并且很快就会变得很慢。
有一个用于 apache solr 搜索的 Drupal 模块,它完成了很多繁重的工作,并提供了一些您可以使用的钩子。因此,通过一些代码构建,您应该能够审查这样的搜索。
Solr 还做了其他一些不错的事情,比如分面搜索。
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.
我认为可能已经有一些现成的解决方案
http://drupal.org/project/search_config
http://drupal.org/project/Custom_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