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

Christine Poerschke commented on SOLR-15476:
--------------------------------------------

* customisation illustrations:

{code}
 
# return only shard addresses (in a list)

  "shards.info":["http://localhost:7574/solr/gettingstarted_shard1_replica_n1";,
    "http://localhost:7574/solr/gettingstarted_shard2_replica_n4";],

# return a list (instead of a map) and redact shard addresses

  "shards.info":[{
      "numFound":0,
      "numFoundExact":true,
      "maxScore":0.0,
      "time":16,
      "shardAddress":"***redacted***"},
    {
      "numFound":0,
      "numFoundExact":true,
      "maxScore":0.0,
      "time":15,
      "shardAddress":"***redacted***"}],

# return a list instead of a map

  "shards.info":[{
      "numFound":0,
      "numFoundExact":true,
      "maxScore":0.0,
      
"shardAddress":"http://localhost:7574/solr/gettingstarted_shard2_replica_n4";,
      "time":6,
      
"shards":"http://localhost:7574/solr/gettingstarted_shard2_replica_n4/|http://localhost:8983/solr/gettingstarted_shard2_replica_n6/"},
    {
      "numFound":0,
      "numFoundExact":true,
      "maxScore":0.0,
      
"shardAddress":"http://localhost:8983/solr/gettingstarted_shard1_replica_n2";,
      "time":5,
      
"shards":"http://localhost:8983/solr/gettingstarted_shard1_replica_n2/|http://localhost:7574/solr/gettingstarted_shard1_replica_n1/"}],

# uncustomised i.e. map container

  "shards.info":{
    
"http://localhost:8983/solr/gettingstarted_shard2_replica_n6/|http://localhost:7574/solr/gettingstarted_shard2_replica_n4/":{
      "numFound":0,
      "numFoundExact":true,
      "maxScore":0.0,
      
"shardAddress":"http://localhost:8983/solr/gettingstarted_shard2_replica_n6";,
      "time":3},
    
"http://localhost:7574/solr/gettingstarted_shard1_replica_n1/|http://localhost:8983/solr/gettingstarted_shard1_replica_n2/":{
      "numFound":0,
      "numFoundExact":true,
      "maxScore":0.0,
      
"shardAddress":"http://localhost:7574/solr/gettingstarted_shard1_replica_n1";,
      "time":3}},
 
{code}

> Add ResponseBuilder.(newShardsInfo|addShardInfo) methods to facilitate 
> 'shards.info' content customisation.
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-15476
>                 URL: https://issues.apache.org/jira/browse/SOLR-15476
>             Project: Solr
>          Issue Type: Task
>            Reporter: Christine Poerschke
>            Assignee: Christine Poerschke
>            Priority: Minor
>
> SOLR-13511 previously added a {{SearchHandler.newResponseBuilder}} method to 
> facilitate custom plugins' maintenance of per-request state in a custom 
> {{ResponseBuilder}}.
> The factoring out of two {{ResponseBuilder}} methods would support 
> {{shards.info}} customisations such as returning of a list instead of a map 
> container and/or removal or redaction of some {{shards.info}} elements.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to