From 6aec01e426402937d05ca92442acb54e2cde9b79 Mon Sep 17 00:00:00 2001 From: Cao Manh Dat Date: Fri, 23 Jun 2017 07:02:29 +0700 Subject: [PATCH] SOLR-9989: Enable generic testing for other facet methods --- solr/core/src/java/org/apache/solr/search/facet/FacetRange.java | 2 +- .../src/test/org/apache/solr/search/facet/TestJsonFacets.java | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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 5bd8899bc76..b99b4b874fb 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 { 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"); } } 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 fbffd5c8748..8d6b4df929f 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 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(); }