David Smiley created SOLR-17354:
-----------------------------------

             Summary: A RequestHandler should be able to customize the 
ResponseWriter
                 Key: SOLR-17354
                 URL: https://issues.apache.org/jira/browse/SOLR-17354
             Project: Solr
          Issue Type: Improvement
      Security Level: Public (Default Security Level. Issues are Public)
            Reporter: David Smiley


The ResponseWriter is resolved in a generic way in 
{{org.apache.solr.servlet.HttpSolrCall#getResponseWriter}} by looking up the 
{{wt}} param in {{org.apache.solr.core.SolrCore#DEFAULT_RESPONSE_WRITERS}}, 
more or less.  But we have one and soon two special response writers (e.g. 
prometheus or the schema) that are specific to a handler.  We shouldn't be 
forced to register a weird response writer in that static map; we should allow 
a handler to instantiate the ResponseWriter on its own.  

I imagine SolrQueryResponse could hold the ResponseWriter, which HttpSolrCall 
could fetch.  The default logic could be there, ignoring the detail about the 
SolrCore instance.  It's weird (to me) to see response writers registered on 
the core; it seems much more like a node level concept.  That's for another 
issue to improve.





--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to