Drupal - 在搜索中包含分类术语描述

发布于 2024-09-16 10:49:38 字数 160 浏览 11 评论 0原文

我正在开发一个大型网站,该网站的一个分类词汇表中有大约 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

萌酱 2024-09-23 10:49:38

目前还没有现成的解决方案,因此您需要进行自定义开发。

您最好的选择是,拥有一个大型站点,可能有 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.

祁梦 2024-09-23 10:49:38

I think there may already be a couple of ready made solutions

http://drupal.org/project/search_config

http://drupal.org/project/Custom_Search

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文