在 Drupal 中,有没有办法索引通过 Webform 提交的文件(pdf、doc)?

发布于 2024-12-26 04:00:37 字数 137 浏览 4 评论 0原文

我正在尝试找出一种解决方案,如何能够索引/搜索通过网络表单上传的 PDF、doc 甚至 txt 文件。我找到了一个可以索引文件的模块(搜索 API 附件),但它似乎只索引附加到节点的文件。 :(

我们的客户希望能够搜索从网络表单提交的简历内容。

I'm trying to figure out a solution on how to be able to index/search PDF, doc, and maybe txt files that were uploaded via a webform. I've found a module (Search API attachments) that will index files but it appears that it only indexes files that are attached to nodes. :(

Our client wants to be able to search the contents of resumés that are submitted from a webform.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

蒗幽 2025-01-02 04:00:37

如果您的客户期望有数百个节点,那么设置 Apache Solr 可能是值得的。然后你可以使用 Tika 来索引各种文件: http://tika.apache.org/

如果是这样不是一个选项,您可以编写一个使用 Webform API 的自定义模块,将附件保存为节点...然后使用您的搜索 API 附件模块。

If your clients are expecting hundreds of nodes, it might be worthwhile to set up an Apache Solr. Then you can use Tika to index all kinds of files: http://tika.apache.org/

If that's not an option, you can write a custom module that uses the Webform API that saves the attached file as a node... and then use your Search API attachments module.

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