Class SortedBytesDocValuesField
Field that stores a per-document BytesRef value, indexed for sorting. Here's an example usage:
document.Add(new SortedBytesDocValuesField(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
[Obsolete("Use SortedDocValuesField instead.")]
public class SortedBytesDocValuesField : SortedDocValuesField, IIndexableField, IFormattable
Constructors
SortedBytesDocValuesField(string, BytesRef)
Create a new fixed or variable-length sorted DocValues field.
Declaration
public SortedBytesDocValuesField(string name, BytesRef bytes)
Parameters
Type | Name | Description |
---|---|---|
string | name | field name |
BytesRef | bytes | binary content |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | if the field |
See Also
SortedBytesDocValuesField(string, BytesRef, bool)
Create a new fixed or variable length sorted DocValues field.
Declaration
public SortedBytesDocValuesField(string name, BytesRef bytes, bool isFixedLength)
Parameters
Type | Name | Description |
---|---|---|
string | name | field name |
BytesRef | bytes | binary content |
bool | isFixedLength | (ignored) |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | if the field |
See Also
Fields
TYPE_FIXED_LEN
Type for sorted bytes DocValues: all with the same length
Declaration
public static readonly FieldType TYPE_FIXED_LEN
Field Value
Type | Description |
---|---|
FieldType |
See Also
TYPE_VAR_LEN
Type for sorted bytes DocValues: can have variable lengths
Declaration
public static readonly FieldType TYPE_VAR_LEN
Field Value
Type | Description |
---|---|
FieldType |