[ https://issues.apache.org/jira/browse/SOLR-4503?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Rowe updated SOLR-4503: ----------------------------- Attachment: SOLR-4503.patch Here's my current state. I refactored REST-friendly stuff out of TestHarness into BaseHarness, which is now extended by TestHarness and a new RestTestHarness. RestTestBase extends SolrJettyTestBase to provide HTTP-based (no SolrServer) test sugar: assertU, assertQ, assertJQ, etc. I've also added the ability to JettySolrRunner to add extra passed-in servlets, and I use this functionality to add the Restlet servlet that services the six schema resource requests. There is a test suite for each of the six resources, configured over schema15.xml and solrconfig.xml from solr/src/test-files/. 'ant test' and 'ant precommit' pass for me. Left to do: * Add checks for copy fields * Add checks for the includeDynamic=true functionality for the /schema/fields/ resources - this triggers a search for fields in the index that match dynamic field patterns and are not explicitly defined in the schema. If "fl" fields are specified in the request, only those fields are sought in the index. * Add Maven dependencies for Restlet and the Restlet servlet extension > Add REST API methods to get schema information: fields, dynamic fields, and > field types > --------------------------------------------------------------------------------------- > > Key: SOLR-4503 > URL: https://issues.apache.org/jira/browse/SOLR-4503 > Project: Solr > Issue Type: Sub-task > Components: Schema and Analysis > Affects Versions: 4.1 > Reporter: Steve Rowe > Assignee: Steve Rowe > Attachments: all.dynamic.fields.json, all.fields.json, > all.field.types.json, coordinate.dynamic.field.json, date.field.type.json, > price.field.json, SOLR-4503.patch, SOLR-4503.patch > > > Add REST methods that provide properties for fields, dynamic fields, and > field types, using paths: > /solr/(corename)/schema/fields > /solr/(corename)/schema/fields/fieldname > /solr/(corename)/schema/dynamicfields > /solr/(corename)/schema/dynamicfields/pattern > /solr/(corename)/schema/fieldtypes > /solr/(corename)/schema/fieldtypes/typename -- 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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org