You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jack Krupansky (JIRA)" <ji...@apache.org> on 2013/07/08 03:22:46 UTC

[jira] [Created] (SOLR-5015) shards.info should return the shard ID

Jack Krupansky created SOLR-5015:
------------------------------------

             Summary: shards.info should return the shard ID
                 Key: SOLR-5015
                 URL: https://issues.apache.org/jira/browse/SOLR-5015
             Project: Solr
          Issue Type: Improvement
          Components: SolrCloud
            Reporter: Jack Krupansky


Currently, the shards.info section of a SolrCloud query response uses "the | delimited list of equivalent servers" of the available servers for the shard keys in the response, rather than the shard IDs (names?.)

My first preference would be for the shard IDs to be used for the shards.info keys, and then the list of servers could be a "servers" key value at the next level down in the response. But if compatibility is important, continue to use the server list as the keys for shards.info, and then add "shardID" or "shardName" as a key at the next level down in the response.

For example, instead of:

{code}
  "shards.info":{
    "207.237.114.232:8984/solr/collection1/|207.237.114.232:8986/solr/collection1/":{
      "numFound":2,
      "maxScore":1.0,
      "time":224},
    "207.237.114.232:8983/solr/collection1/|207.237.114.232:8985/solr/collection1/":{
      "numFound":8,
      "maxScore":1.0,
      "time":898}},
{code}

My first choice would be:
{code}
  "shards.info":{
    "shard2": {
      "servers": "207.237.114.232:8984/solr/collection1/|207.237.114.232:8986/solr/collection1/",
      "numFound":2,
      "maxScore":1.0,
      "time":224},
    "shard1": {
      "servers": "207.237.114.232:8983/solr/collection1/|207.237.114.232:8985/solr/collection1/",
      "numFound":8,
      "maxScore":1.0,
      "time":898}},
{code}

And my second choice would be:

{code}
  "shards.info":{
    "207.237.114.232:8984/solr/collection1/|207.237.114.232:8986/solr/collection1/":{
      "shardName": "shard2",
      "numFound":2,
      "maxScore":1.0,
      "time":224},
    "207.237.114.232:8983/solr/collection1/|207.237.114.232:8985/solr/collection1/":{
      "shardName": "shard1",
      "numFound":8,
      "maxScore":1.0,
      "time":898}},
{code}

(We don't have shard "name", but I presume that at some point we will. For now, it would just be the shard ID.)

I suppose the second choice might be better for non-cloud traditional distributed Solr - where there is no shard ID/name.


--
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