SOLR-9989: Enable generic testing for other facet methods

This commit is contained in:
Cao Manh Dat 2017-06-23 07:02:29 +07:00
parent 8d92e08c9c
commit 6aec01e426
2 changed files with 1 additions and 2 deletions

View File

@ -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");
}
}

View File

@ -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();
}