Class Int16DocValuesField
Field that stores a per-document short 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
Namespace: Lucene.Net.Documents
Assembly: Lucene.Net.dll
Syntax
[Obsolete("Use NumericDocValuesField instead.")]
public class Int16DocValuesField : NumericDocValuesField, IIndexableField, IFormattable
Constructors
Int16DocValuesField(string, short)
Declaration
public Int16DocValuesField(string name, short value)
Parameters
Type | Name | Description |
---|---|---|
string | name | field name |
short | value | 16-bit short value |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | if the field |
See Also
Methods
SetInt16Value(short)
Expert: change the value of this field. See SetStringValue(string).
Declaration
public override void SetInt16Value(short value)
Parameters
Type | Name | Description |
---|---|---|
short | value |