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] Trivial Update of "MergingSolrIndexes" by NoblePaul
Date Thu, 11 Jun 2009 06:24:43 GMT
Dear Wiki user,

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

The following page has been changed by NoblePaul:
http://wiki.apache.org/solr/MergingSolrIndexes

The comment on the change is:
formatting

------------------------------------------------------------------------------
  == Merging Through Lucene IndexMergeTool ==
  Another way is to use the IndexMergeTool that comes as part of lucene-misc. In order to
do this:
  
-  # Find the lucene jar file that your version of solr is using. You can do this by copying
your solr.war file somewhere and unpacking it (jar xvf solr.war). Your lucene jar file should
be in WEB-INF/lib. It is probably called something like lucene-core-2007-05-20_00-04-53.jar.
Copy it somewhere easy to find.
+  1. Find the lucene jar file that your version of solr is using. You can do this by copying
your solr.war file somewhere and unpacking it (jar xvf solr.war). Your lucene jar file should
be in WEB-INF/lib. It is probably called something like lucene-core-2007-05-20_00-04-53.jar.
Copy it somewhere easy to find.
- 
-  # Download a copy of lucene from http://www.apache.org/dyn/closer.cgi/lucene/java/ and
unpack it. The file you're interested in is  contrib/misc/lucene-misc-VERSION.jar
+  2. Download a copy of lucene from http://www.apache.org/dyn/closer.cgi/lucene/java/ and
unpack it. The file you're interested in is  contrib/misc/lucene-misc-VERSION.jar
- 
-  # Make sure both indexes you want to merge are closed. 
+  3. Make sure both indexes you want to merge are closed. 
- 
-  # 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
+  4. 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. 
  

Mime
View raw message