Package org.apache.lucene.facet.taxonomy
Class TaxonomyFacets
- java.lang.Object
-
- org.apache.lucene.facet.Facets
-
- org.apache.lucene.facet.taxonomy.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-createdFacetsimplementations. 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 Summary
Fields Modifier and Type Field Description protected FacetsConfigconfigDeprecated.FacetsConfigprovided to the constructor.protected StringindexFieldNameDeprecated.Index field name provided to the constructor.protected TaxonomyReadertaxoReaderDeprecated.TaxonomyReaderprovided to the constructor.
-
Constructor Summary
Constructors Modifier Constructor Description protectedTaxonomyFacets(String indexFieldName, TaxonomyReader taxoReader, FacetsConfig config)Deprecated.Sole constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanchildrenLoaded()Deprecated.Returns true if the (costly, and lazily initialized) children int[] was initialized.List<FacetResult>getAllDims(int topN)Deprecated.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.booleansiblingsLoaded()Deprecated.Returns true if the (costly, and lazily initialized) sibling int[] was initialized.protected FacetsConfig.DimConfigverifyDim(String dim)Deprecated.Verifies and returnsFacetsConfig.DimConfigfor the given dimension name.-
Methods inherited from class org.apache.lucene.facet.Facets
getAllChildren, getSpecificValue, getTopChildren, getTopDims, validateTopN
-
-
-
-
Field Detail
-
indexFieldName
protected final String indexFieldName
Deprecated.Index field name provided to the constructor.
-
taxoReader
protected final TaxonomyReader taxoReader
Deprecated.TaxonomyReaderprovided to the constructor.
-
config
protected final FacetsConfig config
Deprecated.FacetsConfigprovided to the constructor.
-
-
Constructor Detail
-
TaxonomyFacets
protected TaxonomyFacets(String indexFieldName, TaxonomyReader taxoReader, FacetsConfig config) throws IOException
Deprecated.Sole constructor.- Throws:
IOException
-
-
Method Detail
-
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.
-
verifyDim
protected FacetsConfig.DimConfig verifyDim(String dim)
Deprecated.Verifies and returnsFacetsConfig.DimConfigfor the given dimension name.- Returns:
FacetsConfig.DimConfigfor the given dim, orFacetsConfig.DEFAULT_DIM_CONFIGif it was never manually configured.- Throws:
IllegalArgumentException- if the provided dimension was manually configured, but itsFacetsConfig.DimConfig.indexFieldNamedoes not matchindexFieldName.
-
getAllDims
public List<FacetResult> getAllDims(int topN) throws IOException
Deprecated.Description copied from class:FacetsReturns 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:
getAllDimsin classFacets- Throws:
IOException
-
-