Class ByteDocValuesField
Field that stores a per-document System.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
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
[Obsolete("Use NumericDocValuesField instead")]
public class ByteDocValuesField : NumericDocValuesField, IIndexableField, IFormattable
Constructors
| Improve this Doc View SourceByteDocValuesField(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 |
---|---|---|
System.String | name | field name |
System.Byte | value | 8-bit byte value |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | if the field name is null. |
Methods
| Improve this Doc View SourceSetByteValue(Byte)
Declaration
public override void SetByteValue(byte value)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | value |
Overrides
Implements
System.IFormattable