Class SortedDocValuesField
Field that stores a per-document BytesRef value, indexed for sorting. Here's an example usage:
document.Add(new SortedDocValuesField(name, new BytesRef("hello")));
If you also need to store the value, you should add a separate StoredField instance.
Inherited Members
Namespace: Lucene.Net.Documents
Assembly: Lucene.Net.dll
Syntax
public class SortedDocValuesField : Field, IIndexableField, IFormattable
Constructors
SortedDocValuesField(string, BytesRef)
Create a new sorted DocValues field.
Declaration
public SortedDocValuesField(string name, BytesRef bytes)
Parameters
Type | Name | Description |
---|---|---|
string | name | field name |
BytesRef | bytes | binary content |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | if the field |
Fields
TYPE
Type for sorted bytes DocValues
Declaration
public static readonly FieldType TYPE
Field Value
Type | Description |
---|---|
FieldType |