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

Noble Paul commented on SOLR-5017:
----------------------------------

bq.What can be accomplished by this that cannot be accomplished with the 
current syntax?

* If I have a already working system where ids cannot be changed, I have no 
option with the current scheme of things . 
* What if I to have a clean 'id' value which is devoid of extra information?  
Should I do id.substring(id.indexOf("!") everytime I use it elsewhere ?

bq.One place where it'll be easy to get wrong....


AFAIK everyone relies on the DocRouter to identify the right shard . If your 
code is using that API then your code should continue to work right


                
> Allow sharding based on the value of a field
> --------------------------------------------
>
>                 Key: SOLR-5017
>                 URL: https://issues.apache.org/jira/browse/SOLR-5017
>             Project: Solr
>          Issue Type: Sub-task
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>
> We should be able to create a collection where sharding is done based on the 
> value of a given field
> collections can be created with shardField=fieldName, which will be persisted 
> in DocCollection in ZK
> implicit DocRouter would look at this field instead of _shard_ field
> CompositeIdDocRouter can also use this field instead of looking at the id 
> field. 

--
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