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

  
  !CoreAdminHandler now supports merging one or more indexes into another index 
(since Solr 1.4).
  {{{
- 
http://localhost:8983/solr/admin?action=mergeindexes&core=core0&indexDir=/opt/solr/core1/data/index&indexDir=/opt/solr/core2/data/index
+ 
http://localhost:8983/solr/admin/cores?action=mergeindexes&core=core0&indexDir=/opt/solr/core1/data/index&indexDir=/opt/solr/core2/data/index
  }}}
- The above command will merge the indexes of core1 and core2 into core0. 
Before executing this command, one must make sure to call commit on core1 and 
core2 (in order to close !IndexWriter) and no writes should happen on core1 and 
core2 until the merge command completes. Failure to do so may corrupt the core0 
index.
+ The above command will merge the indexes of core1 and core2 into core0. The 
path for this command is the 'adminPath' defined in solr.xml (default is 
/admin/cores).
  
- Once the merge is completed, a commit should be called on core0 to make the 
changes visible to searchers.
+ Before executing this command, one must make sure to call commit on core1 and 
core2 (in order to close !IndexWriter) and no writes should happen on core1 and 
core2 until the merge command completes. Failure to do so may corrupt the core0 
index. Once the merge is completed, a commit should be called on core0 to make 
the changes visible to searchers.
  
  == Merging Through Lucene IndexMergeTool ==
  Another way is to use the !IndexMergeTool that comes as part of lucene-misc. 
In order to do this:

Reply via email to