Tomcat 如何在Windows上的solr上安装富文档修补程序?

Tomcat 如何在Windows上的solr上安装富文档修补程序?,tomcat,solr,lucene,Tomcat,Solr,Lucene,文档中说,要查看此页面: 但这并不是很有帮助 我已经下载了rich.patch(http://wiki.apache.org/solr/UpdateRichDocuments#Updating_a_Solr_Index_with_Rich_Documents_such_as_PDF_and_MS_Office)我已经把cd刻录到我的solr主目录中。我尝试运行以下命令: patch -p0 -i rich.patch 它只是问我要修补哪个文件。例如,它会说: can't find file t

文档中说,要查看此页面:

但这并不是很有帮助

我已经下载了rich.patch(http://wiki.apache.org/solr/UpdateRichDocuments#Updating_a_Solr_Index_with_Rich_Documents_such_as_PDF_and_MS_Office)我已经把cd刻录到我的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”发布word文档时,我得到了错误

FATAL: Solr returned an error #400 Bad Request

这个rich.patch已经在Solr1.4版本中修复,您应该能够在没有任何补丁的情况下使用Solr即时解析和索引丰富的文档

正如毛里西奥提到的,退房

另外,请查看:-



但是如何为文件编制索引?我只是做“java-jar post.jar mydoc.doc”吗?因为我一直收到“致命:Solr返回了一个错误#400错误请求”。您可以使用curl命令上载文件。例如,检查@