gpt4 book ai didi

tomcat - 如何在 Windows 的 solr 上安装 Rich Document 补丁?

转载 作者:行者123 更新时间:2023-11-28 23:48:17 25 4
gpt4 key购买 nike

文档说要查看此页面:http://wiki.apache.org/solr/HowToContribute#Working_With_Patches

但这并不是很有帮助。

我已经下载了 rich.patch (http://wiki.apache.org/solr/UpdateRichDocuments#Updating_a_Solr_Index_with_Rich_Documents_such_as_PDF_and_MS_Office) 并将其放入我的 solr 主目录。我尝试运行以下命令:

patch -p0 -i rich.patch

它只是询问我要修补哪个文件。例如,它会这样说:

can't find file to patch at input line 2681
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:

Index: example/solr/conf/solrconfig.xml

当它提示我时,对于我想要修补的文件,我只是输入了我的 solrconfig.xml 文件的路径,“C:\xampp\solr\conf\solrconfig.xml”

当我这样做时,它成功更新了我的 java/org 文件夹以包含 ExcelParse.java、PowerPointParser.java 等。但是当我尝试使用“java -jar post.jar .”,我得到了错误

FATAL: Solr returned an error #400 Bad Request

最佳答案

rich.patch 已在 Solr 1.4 版本中得到修复,您应该能够使用开箱即用的 Solr 解析和索引 Rich 文档,无需任何补丁。

如 Mauricio 所述,查看 ExtractingRequestHandler

另请查看:-

posting-rich-documents-to-apache-solr-using-solrj-and-solr-cell-apache-tika
indexing-rich-files-into-solr-quickly-and-easily

关于tomcat - 如何在 Windows 的 solr 上安装 Rich Document 补丁?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11529767/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com