Class ByteDocValuesField
Field that stores a per-document byte value for scoring, sorting or value retrieval. Here's an example usage:
document.Add(new ByteDocValuesField(name, (byte) 22));
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 NumericDocValuesField instead")]
public class ByteDocValuesField : NumericDocValuesField, IIndexableField, IFormattable
Constructors
ByteDocValuesField(string, byte)
Creates a new DocValues field with the specified 8-bit byte value
Declaration
public ByteDocValuesField(string name, byte value)
Parameters
Type | Name | Description |
---|---|---|
string | name | field name |
byte | value | 8-bit byte value |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | if the field name is null. |
See Also
Methods
SetByteValue(byte)
Expert: change the value of this field. See SetStringValue(string).
Declaration
public override void SetByteValue(byte value)
Parameters
Type | Name | Description |
---|---|---|
byte | value |