2012-07-17 128 views
0

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

http://wiki.apache.org/solr/ExtractingRequestHandler – 2012-07-18 02:31:48

回答

0

的RIC h.patch已經使用Solr 1.4版本修復,您應該能夠在沒有任何補丁的情況下使用Solr解析和索引Rich文檔。

正如毛提到退房ExtractingRequestHandler

還檢查了: -

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

+0

我如何索引文件雖然?我只是做「java -jar post.jar mydoc.doc」嗎?因爲我不斷收到「致命錯誤:Solr返回錯誤#400錯誤請求」。 – kyothine 2012-07-18 13:13:59

+0

你可以使用curl命令來上傳文件。檢查例如@ http://wiki.apache.org/solr/ExtractingRequestHandler#Sending_documents_to_Solr – Jayendra 2012-07-18 13:21:35