Method AddSortedDocValuesField
AddSortedDocValuesField(Document, String, BytesRef)
Adds a new SortedDocValuesField field.
Declaration
public static SortedDocValuesField AddSortedDocValuesField(this Document document, string name, BytesRef bytes)
Parameters
Type | Name | Description |
---|---|---|
Document | document | This Document. |
System.String | name | field name |
BytesRef | bytes | binary content |
Returns
Type | Description |
---|---|
SortedDocValuesField | The field that was added to this Document. |
Remarks
If you also need to store the value, you should add a separate StoredField instance.