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

Alan Woodward commented on SOLR-6021:
-------------------------------------

{code:java}
          CoreContainer coreContainer = zkController.getCoreContainer();
          ConfigSetService configService = coreContainer.getCoreConfigService();
          CoreDescriptor dummy = new CoreDescriptor(coreContainer, 
collectionName, collectionName);
          ConfigSet configSet = configService.getConfig(dummy);
{code}

This seems like a lot of ceremony just to get the ConfigSet for a collection - 
maybe it should be a method on zkController itself?

> Always persist router.field in cluster state so CloudSolrServer can route 
> documents correctly
> ---------------------------------------------------------------------------------------------
>
>                 Key: SOLR-6021
>                 URL: https://issues.apache.org/jira/browse/SOLR-6021
>             Project: Solr
>          Issue Type: Improvement
>          Components: SolrCloud
>            Reporter: Shalin Shekhar Mangar
>         Attachments: SOLR-6021.patch
>
>
> CloudSolrServer has idField as "id" which is used for hashing and 
> distributing documents. There is a setter to change it as well.
> IMO, we should use the correct uniqueKey automatically. I propose that we 
> start storing router.field always in cluster state and set it to the 
> uniqueKey field name by default. Then CloudSolrServer would not need to 
> assume an "id" field by default.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to