[
https://issues.apache.org/jira/browse/SOLR-4623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Steve Rowe updated SOLR-4623:
-----------------------------
Attachment: SchemaXmlResponseWriter.output.xml
XMLResponseWriter.output.xml
JSONResponseWriter.output.json
SOLR-4623.patch
Patch.
The full schema is available via the "/schema" path, e.g.
[http://localhost:8983/solr/collection1/schema]. "?wt=json" and "?wt=xml"
produce the expected output formats. SchemaXmlResponseWriter is added to
provide output in schema.xml format, available via "?wt=schema.xml". Samples
attached.
Also moves schema REST API methods from package org.apache.solr.rest to
org.apache.solr.rest.schema, and renames base functionality REST API classes to
remove the current schema focus, to prepare for other non-schema REST APIs.
Also changes output path for copyFields and dynamicFields from "copyfields" and
"dynamicfields" (all lowercase) to "copyFields" and "dynamicFields",
respectively, to mirror all other REST API outputs, which use camel-case.
I think this is ready to go.
> Add REST API methods to get all remaining schema information, and also to
> return the full live schema in json, xml, and schema.xml formats
> ------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: SOLR-4623
> URL: https://issues.apache.org/jira/browse/SOLR-4623
> Project: Solr
> Issue Type: Sub-task
> Components: Schema and Analysis
> Affects Versions: 4.2
> Reporter: Steve Rowe
> Assignee: Steve Rowe
> Priority: Minor
> Fix For: 4.3
>
> Attachments: JSONResponseWriter.output.json,
> SchemaXmlResponseWriter.output.xml, SOLR-4623.patch,
> XMLResponseWriter.output.xml
>
>
> Each remaining schema component (after field types, fields, dynamic fields,
> copy fields were added by SOLR-4503) should be available from the schema REST
> API: name, version, default query operator, similarity, default search field,
> and unique key.
> It should be possible to get the entire live schema back with a single
> request, and schema.xml format should be one of the supported response
> formats.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]