Class RangeFacetSetMatcher

java.lang.Object
org.apache.lucene.facet.facetset.FacetSetMatcher
org.apache.lucene.facet.facetset.RangeFacetSetMatcher

public class RangeFacetSetMatcher extends FacetSetMatcher
A FacetSetMatcher which considers a set as a match if all dimensions fall within the given corresponding range.
WARNING: This API is experimental and might change in incompatible ways in the next release.
  • Constructor Details

    • RangeFacetSetMatcher

      public RangeFacetSetMatcher(String label, DimRange... dimRanges)
      Constructs an instance to match facet sets with dimensions that fall within the given ranges.
  • Method Details

    • matches

      public boolean matches(long[] dimValues)
      Description copied from class: FacetSetMatcher
      Returns true if the facet set encoded in the given long[] is matched by this matcher.
      Specified by:
      matches in class FacetSetMatcher
      Parameters:
      dimValues - the encoded dimension values of a single facet set in this field