该文件说,看看这个网页:http://wiki.apache.org/solr/HowToContribute#Working_With_Patches如何在Windows上的solr上安装富文档补丁?
但它并没有很大的帮助。
我已经下载了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 。”,我得到的错误
FATAL: Solr returned an error #400 Bad Request
http://wiki.apache.org/solr/ExtractingRequestHandler – 2012-07-18 02:31:48