You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org> on 2011/06/16 13:27:47 UTC

[jira] [Updated] (SOLR-1331) Support merging multiple cores

     [ https://issues.apache.org/jira/browse/SOLR-1331?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shalin Shekhar Mangar updated SOLR-1331:
----------------------------------------

    Attachment: SOLR-1331.patch

Adds a srcCore (multi-valued) parameter through which one or more source core names can be given.

We use the IW.addIndexes(IndexReader...) method to merge the source core's indexes to the target core's index. Even if an IW is open on the source indexes, using a reader protects against corruption.

Note - although the indexDir param also ends up calling the IW.addIndexes(IndexReader...) method, we cannot protect against open IWs on the directory so the caveat of calling commit before using mergeindexes with indexDir param still applies.

A commit needs to be called after a merge action to see the changes.

> Support merging multiple cores
> ------------------------------
>
>                 Key: SOLR-1331
>                 URL: https://issues.apache.org/jira/browse/SOLR-1331
>             Project: Solr
>          Issue Type: New Feature
>          Components: multicore
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Shalin Shekhar Mangar
>             Fix For: 3.3
>
>         Attachments: SOLR-1331.patch
>
>
> There should be a provision to merge one core with another. It should be possible to create a core, add documents to it and then just merge it into the main core which is serving requests. This way, the user will not need to know the filesystem as it is needed for SOLR-1051

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org