Class IntAssociationFacetField

All Implemented Interfaces:
IndexableField

public class IntAssociationFacetField extends AssociationFacetField
Add an instance of this to your Document to add a facet label associated with an int. Use TaxonomyFacetIntAssociations to aggregate int values per facet label at search time.
WARNING: This API is experimental and might change in incompatible ways in the next release.
  • Constructor Details

    • IntAssociationFacetField

      public IntAssociationFacetField(int assoc, String dim, String... path)
      Creates this from dim and path and an int association
  • Method Details

    • intToBytesRef

      public static BytesRef intToBytesRef(int v)
      Encodes an int as a 4-byte BytesRef, big-endian.
    • bytesRefToInt

      public static int bytesRefToInt(BytesRef b)
      Decodes a previously encoded int.
    • toString

      public String toString()
      Overrides:
      toString in class AssociationFacetField