禁用 Plon Archetypes 索引/转换 doc/pdf 文件
如果我在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以在 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.
它尝试首先将您的 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?
嗯,您目前没有对它们建立索引,所以没有什么可以改变的。
上面的消息是一条 INFO 消息,它不是一个错误。如果您不想在事件日志中看到这些,您可以在构建配置或
文档中的 zope.conf 中更改事件日志级别:
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: