[
https://issues.apache.org/jira/browse/SOLR-2592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13525997#comment-13525997
]
Shreejay commented on SOLR-2592:
--------------------------------
Thanks for the quick reply. For some reason it does not seem to be working on
my local machine. In the above example is foo_field the composite field? or the
field on which the hash is done? But like u mentioned the "clause" field only
matters during deletes. I am trying to add documents and they are not going to
same shards.
I have created a composite unique key (unique_id = guidid + "_" + anotherID)
guidid is a string guid. My schema file has these two lines.
<field name="unique_id" type="string" indexed="true" stored="true"
required="true" />
<uniqueKey>unique_id</uniqueKey>
In my Solrconfig file under <config> i have added the below lines.
<shardKeyParserFactory
class="org.apache.solr.common.cloud.CompositeIdShardKeyParser">
<str name="clause">guidid</str>
<bool name="clauseRequired">false</bool>
</shardKeyParserFactory>
Am I missing configuring anything else?
I have applied the SOLR-2592_r1384367.patch on branch_4x and the build was
successful.
> 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]