mirror of https://github.com/apache/lucene.git
SOLR-9989: Enable generic testing for other facet methods
This commit is contained in:
parent
8d92e08c9c
commit
6aec01e426
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue