Class Int16DocValuesField
Field that stores a per-document System.Int16 value for scoring, sorting or value retrieval. Here's an example usage:
document.Add(new Int16DocValuesField(name, (short) 22));
If you also need to store the value, you should add a separate StoredField instance.
NOTE: This was ShortDocValuesField in Lucene
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 Int16DocValuesField : NumericDocValuesField, IIndexableField, IFormattable
Constructors
| Improve this Doc View SourceInt16DocValuesField(String, Int16)
Creates a new DocValues field with the specified 16-bit System.Int16 value
Declaration
public Int16DocValuesField(string name, short value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | field name |
System.Int16 | value | 16-bit System.Int16 value |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | if the field |
Methods
| Improve this Doc View SourceSetInt16Value(Int16)
Declaration
public override void SetInt16Value(short value)
Parameters
Type | Name | Description |
---|---|---|
System.Int16 | value |
Overrides
Implements
System.IFormattable