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
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 |
Fields
| Improve this Doc View SourceTYPE
Type for sorted bytes DocValues
Declaration
public static readonly FieldType TYPE
Field Value
Type | Description |
---|---|
FieldType |