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

Michael Garski commented on SOLR-2592:
--------------------------------------

Shreejay, in your example the value that would be hashed to determine shard 
membership would be the "guidid", and those that hashed to the same value would 
be on the same shard. The foo_field is a different field from the unique id and 
its value would be the same as that is hashed. For example, in a system that 
will keep all documents that belong to a specific user id on the same shard, 
the unique, composite id would be <userId>_<otherIdData> and the clause field 
would contain the user id to allow for a delete by query using the user id as a 
clause in the query to forward the delete to only the shards that contain that 
data.

Did all of the tests pass on your build? There are tests in my patch that will 
verify it works properly.
                
> Custom Hashing
> --------------
>
>                 Key: SOLR-2592
>                 URL: https://issues.apache.org/jira/browse/SOLR-2592
>             Project: Solr
>          Issue Type: New Feature
>          Components: SolrCloud
>    Affects Versions: 4.0-ALPHA
>            Reporter: Noble Paul
>             Fix For: 4.1
>
>         Attachments: dbq_fix.patch, pluggable_sharding.patch, 
> pluggable_sharding_V2.patch, SOLR-2592.patch, SOLR-2592_progress.patch, 
> SOLR-2592_query_try1.patch, SOLR-2592_r1373086.patch, 
> SOLR-2592_r1384367.patch, SOLR-2592_rev_2.patch, 
> SOLR_2592_solr_4_0_0_BETA_ShardPartitioner.patch
>
>
> If the data in a cloud can be partitioned on some criteria (say range, hash, 
> attribute value etc) It will be easy to narrow down the search to a smaller 
> subset of shards and in effect can achieve more efficient search.  

--
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to