[ https://issues.apache.org/jira/browse/SOLR-5017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13704608#comment-13704608 ]
Noble Paul commented on SOLR-5017: ---------------------------------- Speaking of the the best option my 2 cents 2 routers 1) A HashDocRouter 2) An ImplicitDocRouter (or is it ExplicitRouter) Both honors the shardField or (routeField) param . one uses the value verbatim whereas the other uses the hash of the field value HashDocRouter honors the special id format with "!" . \_route_ param can be used and will be honored by all routers always in add/update/query/getbyid et al. HashDocRouter uses the hash of the value whereas ImplicitDocROuter uses the value verbatim > 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