[jira] [Updated] (SOLR-4503) Add REST API methods to get schema information: fields, dynamic fields, and field types

2013-03-04 Thread Steve Rowe (JIRA)

 [ 
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
all.field.types.json
all.fields.json
all.dynamic.fields.json
coordinate.dynamic.field.json
date.field.type.json
price.field.json
copyfields.json

Patch, I think it's ready to go.  I've also attached updated example outputs.

I've split off a new /schema/copyfields/ request, because it wasn't possible to 
attach copyFields with subset pattern dynamic field references off of anything 
in the /schema/fields/ structure.  /schema/copyfields/ also now contains 
maxChars, sourceDynamicBase and destDynamicBase, if applicable.  I had to 
refactor dynamic field handling in IndexSchema.java in order to fix a bug 
identified in SOLR-3798 - this refactoring+fix is included in this patch.

By default, all requests now exclude default properties.  A showDefaults 
query parameter causes them to be included in the response.

By default, all requests are indented JSON.

There are tests for everything, 'ant test' passes under Solr, 'ant precommit' 
passes, and I've added CHANGES.txt entries.

 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.dynamic.fields.json, 
 all.fields.json, all.fields.json, all.field.types.json, all.field.types.json, 
 coordinate.dynamic.field.json, coordinate.dynamic.field.json, 
 copyfields.json, date.field.type.json, date.field.type.json, 
 price.field.json, price.field.json, SOLR-4503.patch, 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



[jira] [Updated] (SOLR-4503) Add REST API methods to get schema information: fields, dynamic fields, and field types

2013-02-27 Thread Steve Rowe (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-4503?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Steve Rowe updated SOLR-4503:
-

Attachment: coordinate.dynamic.field.json
price.field.json
date.field.type.json
all.fields.json
all.field.types.json
all.dynamic.fields.json

bq. Darn... patch is already out of date.

I'll put up a more modern version, with most tests in place, in a little bit.

bq. Do you have some examples of what responses look like?

Yes, I do, attaching JSON responses for all six requests here.  I haven't 
investigated yet, but I believe there is an issue with copy fields in both the 
/schema/fields/ and /schema/dynamicfields/ responses, probably related to 
SOLR-3798, since I copied the functionality from LukeRequestHandler.  But 
otherwise, I think the response formats are stable now.

 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


 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



[jira] [Updated] (SOLR-4503) Add REST API methods to get schema information: fields, dynamic fields, and field types

2013-02-27 Thread Steve Rowe (JIRA)

 [ 
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



[jira] [Updated] (SOLR-4503) Add REST API methods to get schema information: fields, dynamic fields, and field types

2013-02-25 Thread Steve Rowe (JIRA)

 [ 
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

Patch implementing the idea.

No (functioning) tests yet.

I've started the example server using the default solr home and the multicore 
solr home, and requests to all methods are functional from curl.

 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: 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