You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2020/10/01 07:41:41 UTC
[lucene-solr] branch reference_impl_dev updated: @881 Test to
nightly and fix cast problems.
This is an automated email from the ASF dual-hosted git repository.
markrmiller pushed a commit to branch reference_impl_dev
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/reference_impl_dev by this push:
new 9e02af9 @881 Test to nightly and fix cast problems.
9e02af9 is described below
commit 9e02af91053ba21d7311da4c0fe6927bb504a325
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Thu Oct 1 02:41:21 2020 -0500
@881 Test to nightly and fix cast problems.
---
solr/core/src/java/org/apache/solr/schema/IndexSchema.java | 4 ++--
solr/core/src/test/org/apache/solr/handler/TestReqParamsAPI.java | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/solr/core/src/java/org/apache/solr/schema/IndexSchema.java b/solr/core/src/java/org/apache/solr/schema/IndexSchema.java
index 62d2110..dac70f7 100644
--- a/solr/core/src/java/org/apache/solr/schema/IndexSchema.java
+++ b/solr/core/src/java/org/apache/solr/schema/IndexSchema.java
@@ -659,14 +659,14 @@ public class IndexSchema {
// /schema/defaultSearchField/text()
- TinyTextualElement.TinyTextualElementText node2 = (TinyTextualElement.TinyTextualElementText) defaultSearchFieldExp.evaluate(document, XPathConstants.NODE);
+ Object node2 = defaultSearchFieldExp.evaluate(document, XPathConstants.NODE);
if (node2 != null) {
throw new SolrException(ErrorCode.SERVER_ERROR, "Setting defaultSearchField in schema not supported since Solr 7");
}
// /schema/solrQueryParser/@defaultOperator
- node2 = (TinyTextualElement.TinyTextualElementText) solrQueryParserDefaultOpExp.evaluate(document, XPathConstants.NODE);
+ node2 = solrQueryParserDefaultOpExp.evaluate(document, XPathConstants.NODE);
if (node2 != null) {
throw new SolrException(ErrorCode.SERVER_ERROR, "Setting default operator in schema (solrQueryParser/@defaultOperator) not supported");
}
diff --git a/solr/core/src/test/org/apache/solr/handler/TestReqParamsAPI.java b/solr/core/src/test/org/apache/solr/handler/TestReqParamsAPI.java
index 6ac6fac..ab39061 100644
--- a/solr/core/src/test/org/apache/solr/handler/TestReqParamsAPI.java
+++ b/solr/core/src/test/org/apache/solr/handler/TestReqParamsAPI.java
@@ -22,6 +22,7 @@ import java.util.List;
import java.util.Map;
import java.util.function.Predicate;
+import org.apache.lucene.util.LuceneTestCase;
import org.apache.solr.client.solrj.embedded.JettySolrRunner;
import org.apache.solr.client.solrj.impl.CloudHttp2SolrClient;
import org.apache.solr.client.solrj.request.CollectionAdminRequest;
@@ -40,6 +41,7 @@ import org.junit.Test;
import static java.util.Arrays.asList;
import static org.apache.solr.handler.TestSolrConfigHandlerCloud.compareValues;
+@LuceneTestCase.Nightly // slow
public class TestReqParamsAPI extends SolrCloudTestCase {
private List<RestTestHarness> restTestHarnesses = new ArrayList<>();