禁用 Plon Archetypes 索引/转换 doc/pdf 文件

发布于 2024-08-21 20:23:14 字数 454 浏览 6 评论 0原文

如果我在 plone 中重建目录,我会得到许多这样的信息:

2010-02-18T11:26:09 INFO Archetypes Error while trying to convert file contents to 'text/plain' in <Field file(file:rw)>.getIndexable() of <ATFile at /site/test1/test.doc>: Unable to find binary "wvHtml" in /sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/usr/lib/jvm/jre/bin

.doc 和 .pdf 文件会发生这种情况。

我不想转换文档或 PDF。我怎样才能完全禁用它?

If I rebuild my catalog in plone I get many of these infos:

2010-02-18T11:26:09 INFO Archetypes Error while trying to convert file contents to 'text/plain' in <Field file(file:rw)>.getIndexable() of <ATFile at /site/test1/test.doc>: Unable to find binary "wvHtml" in /sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/usr/lib/jvm/jre/bin

This happens to .doc and .pdf files.

I don't want to convert docs or PDFs. How can I disable it completely?

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

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

发布评论

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

评论(3

白昼 2024-08-28 20:23:14

您可以在 ZMI/portal_transforms 工具中禁用(删除)转换。如果 Plone 找不到从 Word 到纯文本或 PDF 到纯文本的转换,它不会尝试索引文件内容。
转到 ZMI/portal_transforms 并删除 word_to_html 项目。

You can disable (remove) transforms in ZMI/portal_transforms tool. If Plone does not find transform from Word to plain text or PDF to plain text, it won't try to index the file contents.
Go to ZMI/portal_transforms and remove word_to_html item.

月棠 2024-08-28 20:23:14

它尝试首先将您的 doc/pdf 文件转换为 HTML 文件来索引它们。只需安装wv(软件)即可。该消息将消失,您的所有 DOC 和信息将消失。 PDF 文件将被索引并显示在您的搜索中。

在 Ubuntu/Debian 上: sudo apt-get install wv

您是否有理由不想索引 PDF 或 Word 文档?

It is trying to index your doc/pdf files by converting them to HTML files first. Just install wv(ware). The message will go away and all your DOC & PDF files will be indexed and show up in your searches.

On Ubuntu/Debian: sudo apt-get install wv

Is there a reason you don't want to index PDFs or Word documents?

枫以 2024-08-28 20:23:14

我不想转换文档或 pdf。我怎样才能完全禁用它? [原文如此]

嗯,您目前没有对它们建立索引,所以没有什么可以改变的。

上面的消息是一条 INFO 消息,它不是一个错误。如果您不想在事件日志中看到这些,您可以在构建配置或

文档中的 zope.conf 中更改事件日志级别:

event-log-level
  Set the level of the console output for the event log. Level may be any of
  CRITICAL, ERROR, WARN, INFO, DEBUG, or ALL. Defaults to INFO.

I don't wanna convert docs or pdfs. How can i disable it completly? [sic]

Well, you're currently not indexing them, so there's nothing to change.

The above message is an INFO message, it's not an error. If you don't want to see these in your event log, you can change the event-log-level in your buildout configuration or your zope.conf

from the docs:

event-log-level
  Set the level of the console output for the event log. Level may be any of
  CRITICAL, ERROR, WARN, INFO, DEBUG, or ALL. Defaults to INFO.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文