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

Yonik Seeley commented on SOLR-3755:
------------------------------------

I've run into a few impedance mismatch issues implementing the JSON above.
Internally we seem to use ZkNodeProps which accepts Map<String,String>... but a 
JSON Map is better represented as a Map<String,Object>.

I think I'll try going in the following direction:
- Make ZkNodeProps that accepts Map<String,Object> as properties, and can thus 
represent integers and more complex types.  This will be just like a Map, but 
add some convenience methods
- Make Slice subclass ZkNodeProps
- Make a new Replica class (instead of just representing it as a generic 
ZkNodeProps)

In general, to construct these classes from JSON, it seems like we should just 
pass the Map<String,Object> generated from the JSON parser and then the 
constructor can pull out key elements and construct sub-elements.

Thoughts?
                
> shard splitting
> ---------------
>
>                 Key: SOLR-3755
>                 URL: https://issues.apache.org/jira/browse/SOLR-3755
>             Project: Solr
>          Issue Type: New Feature
>          Components: SolrCloud
>            Reporter: Yonik Seeley
>         Attachments: SOLR-3755.patch, SOLR-3755.patch
>
>
> We can currently easily add replicas to handle increases in query volume, but 
> we should also add a way to add additional shards dynamically by splitting 
> existing shards.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Reply via email to