Class TaxonomyFacets

  • Direct Known Subclasses:
    FloatTaxonomyFacets, IntTaxonomyFacets

    @Deprecated
    public abstract class TaxonomyFacets
    extends Facets
    Deprecated.
    Visibility of this class will be reduced to pkg-private in a future version. This class is meant to host common code as an internal implementation detail to taxonomy faceting,and is not intended as an extension point for user-created Facets implementations. If your code is relying on this, please migrate necessary functionality down into your own class.
    Base class for all taxonomy-based facets impls.
    • Field Detail

      • indexFieldName

        protected final String indexFieldName
        Deprecated.
        Index field name provided to the constructor.
      • taxoReader

        protected final TaxonomyReader taxoReader
        Deprecated.
        TaxonomyReader provided to the constructor.
      • config

        protected final FacetsConfig config
        Deprecated.
        FacetsConfig provided to the constructor.
      • parents

        protected final int[] parents
        Deprecated.
        Maps an ordinal to its parent, or -1 if there is no parent (root node).
    • Method Detail

      • getChildren

        protected int[] getChildren()
                             throws IOException
        Deprecated.
        Returns int[] mapping each ordinal to its first child; this is a large array and is computed (and then saved) the first time this method is invoked.
        Throws:
        IOException
      • getSiblings

        protected int[] getSiblings()
                             throws IOException
        Deprecated.
        Returns int[] mapping each ordinal to its next sibling; this is a large array and is computed (and then saved) the first time this method is invoked.
        Throws:
        IOException
      • childrenLoaded

        public boolean childrenLoaded()
        Deprecated.
        Returns true if the (costly, and lazily initialized) children int[] was initialized.
        WARNING: This API is experimental and might change in incompatible ways in the next release.
      • siblingsLoaded

        public boolean siblingsLoaded()
        Deprecated.
        Returns true if the (costly, and lazily initialized) sibling int[] was initialized.
        WARNING: This API is experimental and might change in incompatible ways in the next release.
      • getAllDims

        public List<FacetResult> getAllDims​(int topN)
                                     throws IOException
        Deprecated.
        Description copied from class: Facets
        Returns topN labels for any dimension that had hits, sorted by the number of hits that dimension matched; this is used for "sparse" faceting, where many different dimensions were indexed, for example depending on the type of document.
        Specified by:
        getAllDims in class Facets
        Throws:
        IOException