Class Int16DocValuesField
Field that stores a per-document
document.Add(new Int16DocValuesField(name, (short) 22));
If you also need to store the value, you should add a
separate Stored
NOTE: This was ShortDocValuesField in Lucene
Implements
Inherited Members
Namespace: Lucene.Net.Documents
Assembly: Lucene.Net.dll
Syntax
public class Int16DocValuesField : NumericDocValuesField, IIndexableField
Constructors
| Improve this Doc View SourceInt16DocValuesField(String, Int16)
Creates a new Doc
Declaration
public Int16DocValuesField(string name, short value)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | field name |
System. |
value | 16-bit |
Methods
| Improve this Doc View SourceSetInt16Value(Int16)
Declaration
public override void SetInt16Value(short value)
Parameters
Type | Name | Description |
---|---|---|
System. |
value |