Thanks!
I tracked down where the default is used in
SolrDispatchFilter.handleAdminRequest():
QueryResponseWriter respWriter =
SolrCore.DEFAULT_RESPONSE_WRITERS.get(solrReq.getParams().get(CommonParams.WT));
if (respWriter == null) respWriter =
SolrCore.DEFAULT_RESPONSE_WRITERS.get("standard");
Is that correct? And I see that "standard" maps to XML.
If we wanted to allow overriding that, would that go into solr.xml or
web.xml? If it's solr.xml, can you point me to where this class gets
parsed/handled?
Shai
On Tue, Apr 28, 2015 at 7:32 AM, Chris Hostetter <[email protected]>
wrote:
>
> : I tried to set the default response writer for admin operations to JSON
> by
> : putting the following in solrconfig.xml:
>
> there's two types of admin requests -- "core" based and global
>
> : <queryResponseWriter name="json" class="solr.JSONResponseWriter"
> : *default="true"*>
>
> ..that sets the default response writer for the core(s) using that config.
>
> : curl -i -X GET http://localhost:8983/solr/admin/collections?action=LIST
>
> ...thta's a "global" request, processed by the CollectionApiHandler w/o
> the context of any specific core or collection (note: no collection/core
> path) so it doesn't know about the defaults (or custom response writer
> plugins) specified in the solrconfig.xml of any particular core.
>
> Only the basic (ie: hard coded) defaults have affect on those types of
> requests.
>
>
>
> -Hoss
> http://www.lucidworks.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>