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.
Implements
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)
Namespace: Lucene.Net.Documents
Assembly: Lucene.Net.dll
Syntax
public class SortedDocValuesField : Field, IIndexableField
Constructors
| Improve this Doc View SourceSortedDocValuesField(String, BytesRef)
Create a new sorted DocValues field.
Declaration
public SortedDocValuesField(string name, BytesRef bytes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | field name |
| BytesRef | bytes | binary content |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | if the field |
Fields
| Improve this Doc View SourceTYPE
Type for sorted bytes DocValues
Declaration
public static readonly FieldType TYPE
Field Value
| Type | Description |
|---|---|
| FieldType |