Class MultiDocValues
A wrapper for CompositeReader providing access to DocValues.
NOTE: for multi readers, you'll get better performance by gathering the sub readers using Context to get the atomic leaves and then operate per-AtomicReader, instead of using this class.
NOTE: this is very costly.
Inheritance
Inherited Members
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.dll
Syntax
public static class MultiDocValues
Methods
| Improve this Doc View SourceGetBinaryValues(IndexReader, String)
Returns a BinaryDocValues for a reader's docvalues (potentially merging on-the-fly)
This is a slow way to access binary values. Instead, access them per-segment with GetBinaryDocValues(String)
Declaration
public static BinaryDocValues GetBinaryValues(IndexReader r, string field)
Parameters
| Type | Name | Description |
|---|---|---|
| IndexReader | r | |
| System.String | field |
Returns
| Type | Description |
|---|---|
| BinaryDocValues |
GetDocsWithField(IndexReader, String)
Returns a IBits for a reader's docsWithField (potentially merging on-the-fly)
This is a slow way to access this bitset. Instead, access them per-segment with GetDocsWithField(String)
Declaration
public static IBits GetDocsWithField(IndexReader r, string field)
Parameters
| Type | Name | Description |
|---|---|---|
| IndexReader | r | |
| System.String | field |
Returns
| Type | Description |
|---|---|
| IBits |
GetNormValues(IndexReader, String)
Returns a NumericDocValues for a reader's norms (potentially merging on-the-fly).
This is a slow way to access normalization values. Instead, access them per-segment with GetNormValues(String)
Declaration
public static NumericDocValues GetNormValues(IndexReader r, string field)
Parameters
| Type | Name | Description |
|---|---|---|
| IndexReader | r | |
| System.String | field |
Returns
| Type | Description |
|---|---|
| NumericDocValues |
GetNumericValues(IndexReader, String)
Returns a NumericDocValues for a reader's docvalues (potentially merging on-the-fly)
This is a slow way to access numeric values. Instead, access them per-segment with GetNumericDocValues(String)
Declaration
public static NumericDocValues GetNumericValues(IndexReader r, string field)
Parameters
| Type | Name | Description |
|---|---|---|
| IndexReader | r | |
| System.String | field |
Returns
| Type | Description |
|---|---|
| NumericDocValues |
GetSortedSetValues(IndexReader, String)
Returns a SortedSetDocValues for a reader's docvalues (potentially doing extremely slow things).
This is an extremely slow way to access sorted values. Instead, access them per-segment with GetSortedSetDocValues(String)
Declaration
public static SortedSetDocValues GetSortedSetValues(IndexReader r, string field)
Parameters
| Type | Name | Description |
|---|---|---|
| IndexReader | r | |
| System.String | field |
Returns
| Type | Description |
|---|---|
| SortedSetDocValues |
GetSortedValues(IndexReader, String)
Returns a SortedDocValues for a reader's docvalues (potentially doing extremely slow things).
this is an extremely slow way to access sorted values. Instead, access them per-segment with GetSortedDocValues(String)
Declaration
public static SortedDocValues GetSortedValues(IndexReader r, string field)
Parameters
| Type | Name | Description |
|---|---|---|
| IndexReader | r | |
| System.String | field |
Returns
| Type | Description |
|---|---|
| SortedDocValues |