You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Noble Paul (JIRA)" <ji...@apache.org> on 2013/08/13 08:04:50 UTC

[jira] [Resolved] (SOLR-5017) Allow sharding based on the value of a field

     [ https://issues.apache.org/jira/browse/SOLR-5017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Noble Paul resolved SOLR-5017.
------------------------------

    Resolution: Fixed

A parameter called 'routeField' is supported in both routers. If routeField is 'x' all documents inserted must have a value for the field 'x' .

The semantics of querying will remain same \_route_ param can be used to limit down the search to a given shard (s)
                
> 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
>             Fix For: 4.5, 5.0
>
>         Attachments: SOLR-5017.patch
>
>
> 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org