lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gunnar Wagenknecht (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (SOLR-1661) Remove adminCore from CoreContainer
Date Sun, 14 Feb 2010 09:13:32 GMT

    [ https://issues.apache.org/jira/browse/SOLR-1661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833537#action_12833537
] 

Gunnar Wagenknecht edited comment on SOLR-1661 at 2/14/10 9:12 AM:
-------------------------------------------------------------------

What's the recommended migration strategy? I currently use the following code for programatically
creating new cores.

{code}
final CoreContainer coreContainer = ...
final SolrCore adminCore = coreContainer.getAdminCore();
try {
  final EmbeddedSolrServer adminServer = new EmbeddedSolrServer(coreContainer, adminCore.getName());
  CoreAdminRequest.createCore("mycore", "mycore", adminServer);
} finally {
  adminCore.close();
}
{code}

Wasn't CoreContainer API? Does this mean that the next release will be Solr 2.0?

      was (Author: gunnar):
    What's the recommended migration strategy? I currently use the following code for programatically
creating new cores.

{code}
final CoreContainer coreContainer = ...
final SolrCore adminCore = coreContainer.getAdminCore();
try {
  final EmbeddedSolrServer adminServer = new EmbeddedSolrServer(coreContainer, adminCore.getName());
  CoreAdminRequest.createCore(ILucondaConstants.REPOSITORY_ID, ILucondaConstants.REPOSITORY_ID,
adminServer);
  created = true;
} finally {
  adminCore.close();
}
{code}

Wasn't CoreContainer API? Does this mean that the next release will be Solr 2.0?
  
> Remove adminCore from CoreContainer
> -----------------------------------
>
>                 Key: SOLR-1661
>                 URL: https://issues.apache.org/jira/browse/SOLR-1661
>             Project: Solr
>          Issue Type: Task
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>            Priority: Minor
>             Fix For: 1.5
>
>         Attachments: SOLR-1661.patch, SOLR-1661.patch
>
>
> we have deprecated the admin core concept as a part of SOLR-1121. It can be removed completely
now.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message