You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by tf...@apache.org on 2019/06/05 23:02:52 UTC

[lucene-solr] branch master updated: SOLR-13521: Fix input parameter handling for DynamicField and FieldTypes (Schema API)

This is an automated email from the ASF dual-hosted git repository.

tflobbe pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/master by this push:
     new f3148fa  SOLR-13521: Fix input parameter handling for DynamicField and FieldTypes (Schema API)
f3148fa is described below

commit f3148fa9e08ecedfa97eb7f04b19e2fb5fa870ff
Author: Tomas Fernandez Lobbe <tf...@apache.org>
AuthorDate: Wed Jun 5 16:01:43 2019 -0700

    SOLR-13521: Fix input parameter handling for DynamicField and FieldTypes (Schema API)
---
 solr/CHANGES.txt                                                      | 3 +++
 .../org/apache/solr/client/solrj/request/schema/SchemaRequest.java    | 4 ++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index b4de0dd..64ac470 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -132,6 +132,9 @@ Bug Fixes
 
 * SOLR-12249: Better error message when grouping on a tokenized (non SortableText) field in SolrCloud (Erick Erickson)
 
+* SOLR-13521: Fix input parameter handling in SchemaRequest.DynamicField and SchemaRequest.FieldTypes (Schema API)
+  (Tomás Fernández Löbbe)
+
 Other Changes
 ----------------------
 
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/request/schema/SchemaRequest.java b/solr/solrj/src/java/org/apache/solr/client/solrj/request/schema/SchemaRequest.java
index 2e94de8..d3572ba 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/request/schema/SchemaRequest.java
+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/request/schema/SchemaRequest.java
@@ -243,7 +243,7 @@ public class SchemaRequest extends AbstractSchemaRequest<SchemaResponse> {
     }
 
     public DynamicField(String dynamicFieldName, SolrParams q) {
-      super(METHOD.GET, "/schema/dynamicfields/" + dynamicFieldName);
+      super(METHOD.GET, "/schema/dynamicfields/" + dynamicFieldName, q);
     }
 
     @Override
@@ -262,7 +262,7 @@ public class SchemaRequest extends AbstractSchemaRequest<SchemaResponse> {
     }
 
     public FieldTypes(SolrParams q) {
-      super(METHOD.GET, "/schema/fieldtypes");
+      super(METHOD.GET, "/schema/fieldtypes", q);
     }
 
     @Override