You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Smiley (JIRA)" <ji...@apache.org> on 2016/03/27 07:18:25 UTC

[jira] [Commented] (SOLR-6472) Don't require an '!' character at the end of a _route_ (shard.keys) value

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

David Smiley commented on SOLR-6472:
------------------------------------

Perhaps if route.field is set, _then_ the lack of a trailing '\!' is incorrect?  If so, then CloudSolrClient could auto-add the '!' in this circumstance.

> Don't require an '!' character at the end of a _route_ (shard.keys) value
> -------------------------------------------------------------------------
>
>                 Key: SOLR-6472
>                 URL: https://issues.apache.org/jira/browse/SOLR-6472
>             Project: Solr
>          Issue Type: Improvement
>          Components: SolrCloud
>            Reporter: Shalin Shekhar Mangar
>            Priority: Minor
>              Labels: SolrCloud, difficulty-easy, impact-low
>             Fix For: 5.0
>
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> A routing key can be specified in the "_route_" parameter which is then hashed and the shard corresponding to the key is selected for querying/indexing. But we require users to specify an exclamation mark at the end to get the right routing otherwise it fails silently or gives the wrong hash. This also applies to the split.key param used in shard splitting.
> This is really annoying because you can forget to add the '!' character at the end and you wouldn't even know why the request was routed incorrectly.
> We should make the '!' character optional and support keys both with and without it.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org