Class SortedSetDocValuesReaderState
Wraps a Lucene.Net.Index.IndexReader and resolves ords using existing Lucene.Net.Index.SortedSetDocValues APIs without a separate taxonomy index. This only supports flat facets (dimension + label), and it makes faceting a bit slower, adds some cost at reopen time, but avoids managing the separate taxonomy index. It also requires less RAM than the taxonomy index, as it manages the flat (2-level) hierarchy more efficiently. In addition, the tie-break during faceting is now meaningful (in label sorted order).
NOTE: creating an instance of this class is somewhat costly, as it computes per-segment ordinal maps, so you should create it once and re-use that one instance for a given Lucene.Net.Index.IndexReader.
Inherited Members
Namespace: Lucene.Net.Facet.SortedSet
Assembly: Lucene.Net.Facet.dll
Syntax
public abstract class SortedSetDocValuesReaderState
Constructors
| Improve this Doc View SourceSortedSetDocValuesReaderState()
Sole constructor.
Declaration
protected SortedSetDocValuesReaderState()
Properties
| Improve this Doc View SourceCount
Number of unique labels.
Declaration
public abstract int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Field
Indexed field we are reading.
Declaration
public abstract string Field { get; }
Property Value
Type | Description |
---|---|
System.String |
OrigReader
Returns top-level index reader.
Declaration
public abstract IndexReader OrigReader { get; }
Property Value
Type | Description |
---|---|
Lucene.Net.Index.IndexReader |
PrefixToOrdRange
Returns mapping from prefix to SortedSetDocValuesReaderState.OrdRange.
Declaration
public abstract IDictionary<string, SortedSetDocValuesReaderState.OrdRange> PrefixToOrdRange { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, SortedSetDocValuesReaderState.OrdRange> |
Methods
| Improve this Doc View SourceGetDocValues()
Return top-level doc values.
Declaration
public abstract SortedSetDocValues GetDocValues()
Returns
Type | Description |
---|---|
Lucene.Net.Index.SortedSetDocValues |
GetOrdRange(String)
Returns the SortedSetDocValuesReaderState.OrdRange for this dimension.
Declaration
public abstract SortedSetDocValuesReaderState.OrdRange GetOrdRange(string dim)
Parameters
Type | Name | Description |
---|---|---|
System.String | dim |
Returns
Type | Description |
---|---|
SortedSetDocValuesReaderState.OrdRange |