Class FacetSetsField

All Implemented Interfaces:
IndexableField

public class FacetSetsField extends BinaryDocValuesField
A BinaryDocValuesField which encodes a list of facet sets. The encoding scheme consists of a packed byte[] where the first value denotes the number of dimensions in all the sets, followed by each set's values.
  • Constructor Details

    • FacetSetsField

      private FacetSetsField(String name, BytesRef value)
  • Method Details

    • create

      public static FacetSetsField create(String name, FacetSet... facetSets)
      Create a new FacetSets field.
      Parameters:
      name - field name
      facetSets - the facet sets to index in that field. All must have the same number of dimensions
      Throws:
      IllegalArgumentException - if the field name is null or the given facet sets are invalid
    • toPackedValues

      private static BytesRef toPackedValues(FacetSet... facetSets)