You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2011/09/30 19:56:52 UTC

[Solr Wiki] Update of "MergingSolrIndexes" by SteveRowe

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "MergingSolrIndexes" page has been changed by SteveRowe:
http://wiki.apache.org/solr/MergingSolrIndexes?action=diff&rev1=10&rev2=11

   1. Issue this command: {{{java -cp /path/to/lucene-core-VERSION.jar:/path/to/lucene-misc-VERSION.jar org/apache/lucene/misc/IndexMergeTool /path/to/newindex /path/to/index1 /path/to/index2}}} This will create a new index at {{{/path/to/newindex}}} that contains both index1 and index2. Copy this new directory to the location of your application's solr index (move the old one aside first, of course) and start solr.
  
  === Example ===
+ The command below assumes that the files {{{lucene-core-3.4.0.jar}}} and {{{lucene-misc-3.4.0.jar}}} are in the current directory:
  {{{
- java -cp /tmp/lucene-core-2007-05-20_00-04-53.jar:./lucene-2.2.0/contrib/misc/lucene-misc-2.2.0.jarorg/apache/lucene/misc/IndexMergeTool ./newindex ./app1/solr/data/index ./app2/solr/data/index
+ java -cp lucene-core-3.4.0.jar:lucene-misc-3.4.0.jar org/apache/lucene/misc/IndexMergeTool ./newindex ./app1/solr/data/index ./app2/solr/data/index
  }}}