lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "MergingSolrIndexes" by SteveRowe
Date Fri, 30 Sep 2011 17:56:52 GMT
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
  }}}
  

Mime
View raw message