我有,我想合併三個Solr的3.4.0索引,搜索,我發現有兩種方法可以做到這一點後:合併Solr的3.4.0索引使用Lucene合併工具
- 使用Lucene合併工具。
- 通過核心管理合並
我使用Lucene 3.4.0和運行下面的命令:
java -cp d:/lucene/lucene-core-3.4.0.jar:./contrib/misc/lucene-misc-3.4.0.jarorg/apache/lucene/misc/IndexMergeTool ./newindex ./app1/solr/data/index ./app2/solr/data/index
但不幸的是它給了我以下異常:
Exception in thread "Main Thread" java.lang.NoClassDefFoundError:
org/apache/lucene/misc/IndexMergeTool
任何人可以幫助我和這個?
感謝名單爲您的寶貴迴應,我已經試過了烏拉圭回合的解決方案,但現在的錯誤當屬例外在線程「主線」 java.lang.NoClassDefFoundError:./NewIndex –
爲什麼找NewIndex作爲一個類。在jar和類名之間有一個空格,例如java -cp d:/lucene/lucene-core-3.4.0.jar; ./ contrib/misc/lucene-misc-3.4.0.jar org/apache/lucene/misc/IndexMergeTool ./newindex ./app1/solr/data/index ./app2/solr/data/index – Jayendra
是的,我已經給IndexMergeTool和./newindex –