[ https://issues.apache.org/jira/browse/SOLR-15476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17363030#comment-17363030 ]
Christine Poerschke commented on SOLR-15476: -------------------------------------------- * solrconfig.xml snippet: {code} <requestHandler name="/customSelect" class="com.mycompany.myteam.solr.CustomSearchHandler"/> {code} * code snippet: {code} package com.mycompany.myteam.solr; public class CustomSearchHandler extends org.apache.solr.handler.component.SearchHandler { @Override protected ResponseBuilder newResponseBuilder(SolrQueryRequest req, SolrQueryResponse rsp, List<SearchComponent> components) { return new ResponseBuilder(req, rsp, components) { @Override protected Object newShardsInfo() { return new ArrayList<>(); } @Override protected void addShardInfo(Object shardsInfo, String shardInfoName, NamedList<Object> shardInfoValue) { final Object shardAddress = shardInfoValue.remove("shardAddress"); if (shardAddress != null) { ((ArrayList<Object>)shardsInfo).add(shardAddress); } } }; } } {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