lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sar...@apache.org
Subject lucene-solr:branch_6_0: SOLR-8985: Added back support for 'includeDynamic' flag to /schema/fields endpoint
Date Fri, 20 May 2016 02:42:22 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/branch_6_0 8e10c5e8a -> 83e06a07d


 SOLR-8985: Added back support for 'includeDynamic' flag to /schema/fields endpoint


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/83e06a07
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/83e06a07
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/83e06a07

Branch: refs/heads/branch_6_0
Commit: 83e06a07d0d5a91465bf5f466c96d5317e448f96
Parents: 8e10c5e
Author: Noble Paul <noble@apache.org>
Authored: Fri Apr 15 13:23:51 2016 +0530
Committer: Steve Rowe <sarowe@apache.org>
Committed: Thu May 19 22:41:59 2016 -0400

----------------------------------------------------------------------
 solr/CHANGES.txt                                  |  2 ++
 .../rest/schema/TestFieldCollectionResource.java  | 18 ++++++++++++++++--
 2 files changed, 18 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/83e06a07/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index a79c04e..434ab04 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -45,6 +45,8 @@ Other Changes
 * SOLR-8967: In SolrCloud mode, under the 'Core Selector' dropdown in the UI the Replication
tab won't be displayed
   anymore. The Replication tab is only beneficial to users running Solr in master-slave mode.
(Varun Thacker)
 
+* SOLR-8985: Added back support for 'includeDynamic' flag to /schema/fields endpoint (noble)
+
 ==================  6.0.0 ==================
 
 Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/83e06a07/solr/core/src/test/org/apache/solr/rest/schema/TestFieldCollectionResource.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/rest/schema/TestFieldCollectionResource.java
b/solr/core/src/test/org/apache/solr/rest/schema/TestFieldCollectionResource.java
index dd55415..6fdd298 100644
--- a/solr/core/src/test/org/apache/solr/rest/schema/TestFieldCollectionResource.java
+++ b/solr/core/src/test/org/apache/solr/rest/schema/TestFieldCollectionResource.java
@@ -15,11 +15,9 @@
  * limitations under the License.
  */
 package org.apache.solr.rest.schema;
-import com.carrotsearch.randomizedtesting.annotations.Seed;
 import org.apache.solr.rest.SolrRestletTestBase;
 import org.junit.Test;
 
-import java.io.IOException;
 
 public class TestFieldCollectionResource extends SolrRestletTestBase {
   @Test
@@ -39,4 +37,20 @@ public class TestFieldCollectionResource extends SolrRestletTestBase {
              "/fields/[2]/name=='_version_'");
   }
 
+
+  @Test
+  public void testJsonGetAllFieldsIncludeDynamic() throws Exception {
+    assertJQ("/schema/fields?indent=on&includeDynamic=true",
+             "/fields/[0]/name=='HTMLstandardtok'",
+             "/fields/[1]/name=='HTMLwhitetok'",
+             "/fields/[2]/name=='_version_'",
+             "/fields/[98]/name=='*_d'",
+             "/fields/[97]/name=='*_f'",
+             "/fields/[96]/name=='*_b'",
+             "/fields/[95]/name=='*_t'",
+             "/fields/[94]/name=='*_l'"
+
+    );
+  }
+
 }


Mime
View raw message