Class TaxonomyFacetLabels

java.lang.Object
org.apache.lucene.facet.taxonomy.TaxonomyFacetLabels

public class TaxonomyFacetLabels extends Object
Utility class to easily retrieve previously indexed facet labels, allowing you to skip also adding stored fields for these values, reducing your index size.
  • Field Details

    • taxoReader

      private final TaxonomyReader taxoReader
      TaxonomyReader provided to the constructor
    • indexFieldName

      private final String indexFieldName
      field storing the taxonomy ordinals
  • Constructor Details

    • TaxonomyFacetLabels

      public TaxonomyFacetLabels(TaxonomyReader taxoReader, String indexFieldName)
      Sole constructor. Do not close the provided TaxonomyReader while still using this instance!
  • Method Details