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.
Base class for all taxonomy-based facets impls.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final FacetsConfigDeprecated.FacetsConfigprovided to the constructor.protected final StringDeprecated.Index field name provided to the constructor.protected final int[]Deprecated.Maps an ordinal to its parent, or -1 if there is no parent (root node).protected final TaxonomyReaderDeprecated.TaxonomyReaderprovided to the constructor. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTaxonomyFacets(String indexFieldName, TaxonomyReader taxoReader, FacetsConfig config) Deprecated.Sole constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Returns true if the (costly, and lazily initialized) children int[] was initialized.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.protected int[]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.protected int[]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.booleanDeprecated.Returns true if the (costly, and lazily initialized) sibling int[] was initialized.protected FacetsConfig.DimConfigDeprecated.Verifies and returnsFacetsConfig.DimConfigfor the given dimension name.Methods inherited from class org.apache.lucene.facet.Facets
getAllChildren, getSpecificValue, getTopChildren, getTopDims, validateTopN
-
Field Details
-
indexFieldName
Deprecated.Index field name provided to the constructor. -
taxoReader
Deprecated.TaxonomyReaderprovided to the constructor. -
config
Deprecated.FacetsConfigprovided to the constructor. -
parents
protected final int[] parentsDeprecated.Maps an ordinal to its parent, or -1 if there is no parent (root node).
-
-
Constructor Details
-
TaxonomyFacets
protected TaxonomyFacets(String indexFieldName, TaxonomyReader taxoReader, FacetsConfig config) throws IOException Deprecated.Sole constructor.- Throws:
IOException
-
-
Method Details
-
getChildren
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
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.
-
verifyDim
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
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
-
Facetsimplementations. If your code is relying on this, please migrate necessary functionality down into your own class.