Class MultiFacets
Maps specified dims to provided Facets impls; else, uses
the default Facets impl.
Assembly: Lucene.Net.Facet.dll
Syntax
public class MultiFacets : Facets
Constructors
MultiFacets(IDictionary<string, Facets>, Facets)
Create this, with the specified default Facets
for fields not included in dimToFacets
.
Declaration
public MultiFacets(IDictionary<string, Facets> dimToFacets, Facets defaultFacets = null)
Parameters
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
GetSpecificValue(string, params string[])
Return the count or value
for a specific path. Returns -1 if
this path doesn't exist, else the count.
Declaration
public override float GetSpecificValue(string dim, params string[] path)
Parameters
Returns
Overrides
GetTopChildren(int, string, params string[])
Returns the topN child labels under the specified
path. Returns null if the specified path doesn't
exist or if this dimension was never seen.
Declaration
public override FacetResult GetTopChildren(int topN, string dim, params string[] path)
Parameters
Returns
Overrides