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 anirudha jadhav:
http://wiki.apache.org/solr/MergingSolrIndexes?action=diff&rev1=12&rev2=13

  
  '''NOTE''': In this example core0 must exist and have a compatible schema 
with core1 and core2. The 'mergeindexes' command will not create a new core 
named 'core0' if it does not already exist.
  
- <!> [[Solr3.3]]
- !CoreAdminHandler also supports merging one or more cores into another core 
(since Solr 3.3) through a "srcCore" parameter.
+ <!> [[Solr3.3]] !CoreAdminHandler also supports merging one or more cores 
into another core (since Solr 3.3) through a "srcCore" parameter.
  
  {{{
  
http://localhost:8983/solr/admin/cores?action=mergeindexes&core=core0&srcCore=core1&srcCore=core2
  }}}
+ The differences between using "srcCore" parameter and "indexDir" parameter 
are that:
  
- The differences between using "srcCore" parameter and "indexDir" parameter 
are that:
   1. Using the "indexDir" parameter one can merge indexes not associated with 
a Solr Core e.g. indexes built directly via Lucene
   1. Using the "indexDir" parameter, one must take care that the index is not 
being written to - this means closing !IndexWriter or if it is a solr core's 
index, issuing a commit command.
   1. The "indexDir" must be the path to an index directory on the disk of the 
solr host - this makes it cumbersome. On the other hand, one can just give the 
core name with "srcCore" parameter
@@ -49, +48 @@

  
  === 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 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
  }}}

Reply via email to