Class TaxonomyFacets
Base class for all taxonomy-based facets impls.
Inheritance
TaxonomyFacets
Assembly: Lucene.Net.Facet.dll
Syntax
public abstract class TaxonomyFacets : Facets
Constructors
TaxonomyFacets(string, TaxonomyReader, FacetsConfig)
Declaration
protected TaxonomyFacets(string indexFieldName, TaxonomyReader taxoReader, FacetsConfig config)
Parameters
Fields
m_children
Maps parent ordinal to its child, or -1 if the parent
is childless.
Declaration
protected readonly int[] m_children
Field Value
m_config
Declaration
protected readonly FacetsConfig m_config
Field Value
m_indexFieldName
Index field name provided to the constructor.
Declaration
protected readonly string m_indexFieldName
Field Value
m_siblings
Maps an ordinal to its sibling, or -1 if there is no
sibling.
Declaration
protected readonly int[] m_siblings
Field Value
m_taxoReader
Declaration
protected readonly TaxonomyReader m_taxoReader
Field Value
Methods
GetAllDims(int)
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.
Declaration
public override IList<FacetResult> GetAllDims(int topN)
Parameters
Type |
Name |
Description |
int |
topN |
|
Returns
Overrides
VerifyDim(string)
Declaration
protected virtual FacetsConfig.DimConfig VerifyDim(string dim)
Parameters
Type |
Name |
Description |
string |
dim |
|
Returns