[
https://issues.apache.org/jira/browse/SOLR-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12471426
]
Ryan McKinley commented on SOLR-142:
------------------------------------
Posted an update to this patch. It may be getting away from my original goal
to get a RawRequestHandler committed soon... but oh well.
This adds RequestHandlers for a bunch of admin thing that could (should) be
spit back in the standard response writer format.
some urls to check:
http://localhost:8983/solr/admin/file
http://localhost:8983/solr/admin/file?file=protwords.txt
http://localhost:8983/solr/admin/file?file=schema.xml
http://localhost:8983/solr/admin/file?file=schema.xml&txt=true
http://localhost:8983/solr/admin/threads
http://localhost:8983/solr/admin/registry
http://localhost:8983/solr/admin/registry?wt=json&indent=true
http://localhost:8983/solr/admin/stats
http://localhost:8983/solr/admin/ping
http://localhost:8983/solr/admin/properties
http://localhost:8983/solr/admin/properties?name=java.home
http://localhost:8983/solr/admin/logging
http://localhost:8983/solr/admin/logging?set=FINE
To get these to display nicely, we would need an xls file and link to:
http://localhost:8983/solr/admin/stats?stylesheet=admin.xls
I like this direction because it moves solr away from the need for a JDK,
removes a bunch of code from jsp scriptlets, and makes the admin info easily
available to clients through JSON/xml etc.
> RawResponseWriter - replace /admin/get-file.jsp
> -----------------------------------------------
>
> Key: SOLR-142
> URL: https://issues.apache.org/jira/browse/SOLR-142
> Project: Solr
> Issue Type: Improvement
> Components: web gui
> Reporter: Ryan McKinley
> Priority: Trivial
> Attachments: SOLR-142-RawResponseWriter.patch,
> SOLR-142-RawResponseWriter.patch
>
>
> A RawResponseWriter writes a ContentStream directly to the response.
> This is useful to spit back a file directly from solr. This implementation
> looks for a response property named "content" and sends it to the client. If
> it can't find one, it delegates the response to another ResponseWriter.
> As an example, I added a GetAdminFileRequestHandler to replace
> /admin/get-file.jsp
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.