You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by no...@apache.org on 2016/11/28 17:07:43 UTC
lucene-solr:apiv2: SOLR-8029: more spec refinements for schema read
Repository: lucene-solr
Updated Branches:
refs/heads/apiv2 5ef717bd9 -> 47fd4929e
SOLR-8029: more spec refinements for schema read
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/47fd4929
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/47fd4929
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/47fd4929
Branch: refs/heads/apiv2
Commit: 47fd4929e60359e3df86966451ce9372dae74fd8
Parents: 5ef717b
Author: Noble Paul <no...@apache.org>
Authored: Mon Nov 28 22:37:26 2016 +0530
Committer: Noble Paul <no...@apache.org>
Committed: Mon Nov 28 22:37:26 2016 +0530
----------------------------------------------------------------------
.../java/org/apache/solr/handler/SchemaHandler.java | 4 +++-
.../apispec/core.SchemaEdit.addFieldType.json | 3 ---
...re.SchemaRead.fields.dynamicFields_fieldTypes.json | 14 ++++++++++++++
.../src/resources/apispec/core.SchemaRead.fields.json | 6 +-----
4 files changed, 18 insertions(+), 9 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/47fd4929/solr/core/src/java/org/apache/solr/handler/SchemaHandler.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/handler/SchemaHandler.java b/solr/core/src/java/org/apache/solr/handler/SchemaHandler.java
index a19eaec..f6e92fe 100644
--- a/solr/core/src/java/org/apache/solr/handler/SchemaHandler.java
+++ b/solr/core/src/java/org/apache/solr/handler/SchemaHandler.java
@@ -260,7 +260,9 @@ public class SchemaHandler extends RequestHandlerBase implements SolrCoreAware,
return ApiBag.wrapRequestHandlers(this, "core.SchemaRead",
"core.SchemaRead.fields",
"core.SchemaRead.copyFields",
- "core.SchemaEdit");
+ "core.SchemaEdit",
+ "core.SchemaRead.fields.dynamicFields_fieldTypes"
+ );
}
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/47fd4929/solr/core/src/resources/apispec/core.SchemaEdit.addFieldType.json
----------------------------------------------------------------------
diff --git a/solr/core/src/resources/apispec/core.SchemaEdit.addFieldType.json b/solr/core/src/resources/apispec/core.SchemaEdit.addFieldType.json
index e40e23e..0ed22ac 100644
--- a/solr/core/src/resources/apispec/core.SchemaEdit.addFieldType.json
+++ b/solr/core/src/resources/apispec/core.SchemaEdit.addFieldType.json
@@ -52,9 +52,6 @@
"analyzer": {
"type": "object",
"properties": {
- "type": {
- "type": "string"
- },
"class": {
"type": "string"
},
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/47fd4929/solr/core/src/resources/apispec/core.SchemaRead.fields.dynamicFields_fieldTypes.json
----------------------------------------------------------------------
diff --git a/solr/core/src/resources/apispec/core.SchemaRead.fields.dynamicFields_fieldTypes.json b/solr/core/src/resources/apispec/core.SchemaRead.fields.dynamicFields_fieldTypes.json
new file mode 100644
index 0000000..2d06290
--- /dev/null
+++ b/solr/core/src/resources/apispec/core.SchemaRead.fields.dynamicFields_fieldTypes.json
@@ -0,0 +1,14 @@
+{
+ "documentation": "https://cwiki.apache.org/confluence/display/solr/Schema+API",
+ "methods": [
+ "GET"
+ ],
+ "url": {
+ "paths": [
+ "/schema/dynamicfields",
+ "/schema/dynamicfields/{name}",
+ "/schema/fieldtypes/",
+ "/schema/fieldtypes/{name}"
+ ]
+ }
+}
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/47fd4929/solr/core/src/resources/apispec/core.SchemaRead.fields.json
----------------------------------------------------------------------
diff --git a/solr/core/src/resources/apispec/core.SchemaRead.fields.json b/solr/core/src/resources/apispec/core.SchemaRead.fields.json
index 514615a..006f2e6 100644
--- a/solr/core/src/resources/apispec/core.SchemaRead.fields.json
+++ b/solr/core/src/resources/apispec/core.SchemaRead.fields.json
@@ -6,11 +6,7 @@
"url": {
"paths": [
"/schema/fields",
- "/schema/fields/{name}",
- "/schema/dynamicfields",
- "/schema/dynamicfields/{name}",
- "/schema/fieldtypes/",
- "/schema/fieldtypes/{name}"
+ "/schema/fields/{name}"
],
"params": {
"includeDynamic": {