Class SortedSetDocValuesFacetCounts
Compute facets counts from previously indexed SortedSetDocValuesFacetField, without require a separate taxonomy index. Faceting is a bit slower (~25%), and there is added cost on every Lucene.Net.Index.IndexReader open to create a new SortedSetDocValuesReaderState. Furthermore, this does not support hierarchical facets; only flat (dimension + label) facets, but it uses quite a bit less RAM to do so.
NOTE: this class should be instantiated and then used from a single thread, because it holds a thread-private instance of Lucene.Net.Index.SortedSetDocValues.
NOTE:: tie-break is by unicode sort order @lucene.experimental
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Facet.SortedSet
Assembly: Lucene.Net.Facet.dll
Syntax
public class SortedSetDocValuesFacetCounts : Facets
Constructors
| Improve this Doc View SourceSortedSetDocValuesFacetCounts(SortedSetDocValuesReaderState, FacetsCollector)
Sparse faceting: returns any dimension that had any hits, topCount labels per dimension.
Declaration
public SortedSetDocValuesFacetCounts(SortedSetDocValuesReaderState state, FacetsCollector hits)
Parameters
Type | Name | Description |
---|---|---|
SortedSetDocValuesReaderState | state | |
FacetsCollector | hits |
Methods
| Improve this Doc View SourceGetAllDims(Int32)
Declaration
public override IList<FacetResult> GetAllDims(int topN)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | topN |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<FacetResult> |
Overrides
| Improve this Doc View SourceGetSpecificValue(String, String[])
Declaration
public override float GetSpecificValue(string dim, params string[] path)
Parameters
Type | Name | Description |
---|---|---|
System.String | dim | |
System.String[] | path |
Returns
Type | Description |
---|---|
System.Single |
Overrides
| Improve this Doc View SourceGetTopChildren(Int32, String, String[])
Declaration
public override FacetResult GetTopChildren(int topN, string dim, params string[] path)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | topN | |
System.String | dim | |
System.String[] | path |
Returns
Type | Description |
---|---|
FacetResult |