lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sha...@apache.org
Subject [26/47] lucene-solr:feature/autoscaling: SOLR-9989: Enable generic testing for other facet methods
Date Sun, 25 Jun 2017 02:06:48 GMT
SOLR-9989: Enable generic testing for other facet methods


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

Branch: refs/heads/feature/autoscaling
Commit: 6aec01e426402937d05ca92442acb54e2cde9b79
Parents: 8d92e08
Author: Cao Manh Dat <datcm@apache.org>
Authored: Fri Jun 23 07:02:29 2017 +0700
Committer: Cao Manh Dat <datcm@apache.org>
Committed: Fri Jun 23 07:02:29 2017 +0700

----------------------------------------------------------------------
 solr/core/src/java/org/apache/solr/search/facet/FacetRange.java    | 2 +-
 .../core/src/test/org/apache/solr/search/facet/TestJsonFacets.java | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/6aec01e4/solr/core/src/java/org/apache/solr/search/facet/FacetRange.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/search/facet/FacetRange.java b/solr/core/src/java/org/apache/solr/search/facet/FacetRange.java
index 5bd8899..b99b4b8 100644
--- a/solr/core/src/java/org/apache/solr/search/facet/FacetRange.java
+++ b/solr/core/src/java/org/apache/solr/search/facet/FacetRange.java
@@ -572,7 +572,7 @@ class FacetRangeProcessor extends FacetProcessor<FacetRange> {
       super(f);
       this.now = now;
       if (! (field.getType() instanceof TrieDateField) && !(field.getType().isPointField())
) {
-        throw new IllegalArgumentException("SchemaField must use field type extending TrieDateField
or DateRangeField");
+        throw new IllegalArgumentException("SchemaField must use field type extending TrieDateField,
DateRangeField or PointField");
       }
     }
 

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/6aec01e4/solr/core/src/test/org/apache/solr/search/facet/TestJsonFacets.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/search/facet/TestJsonFacets.java b/solr/core/src/test/org/apache/solr/search/facet/TestJsonFacets.java
index fbffd5c..8d6b4df 100644
--- a/solr/core/src/test/org/apache/solr/search/facet/TestJsonFacets.java
+++ b/solr/core/src/test/org/apache/solr/search/facet/TestJsonFacets.java
@@ -89,7 +89,6 @@ public class TestJsonFacets extends SolrTestCaseHS {
   public static Iterable<Object[]> parameters() {
     // wrap each enum val in an Object[] and return as Iterable
     return () -> Arrays.stream(FacetField.FacetMethod.values())
-        .filter(m -> m == FacetField.FacetMethod.ENUM)
         .map(it -> new Object[]{it}).iterator();
   }
 


Mime
View raw message