Class Int32DocValuesField
Field that stores a per-document int value for scoring, sorting or value retrieval. Here's an example usage:
document.Add(new Int32DocValuesField(name, 22));
If you also need to store the value, you should add a separate StoredField instance.
NOTE: This was IntDocValuesField in LuceneInherited Members
Namespace: Lucene.Net.Documents
Assembly: Lucene.Net.dll
Syntax
[Obsolete("Deprecated, use NumericDocValuesField instead")]
public class Int32DocValuesField : NumericDocValuesField, IIndexableField, IFormattable
Constructors
Int32DocValuesField(string, int)
Creates a new DocValues field with the specified 32-bit int value
Declaration
public Int32DocValuesField(string name, int value)
Parameters
Type | Name | Description |
---|---|---|
string | name | field name |
int | value | 32-bit int value |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | if the field |
See Also
Methods
SetInt32Value(int)
Expert: change the value of this field. See SetStringValue(string).
Declaration
public override void SetInt32Value(int value)
Parameters
Type | Name | Description |
---|---|---|
int | value |