該文件說,看看這個網頁: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