Class Int32DocValuesField
Field that stores a per-document System.Int32 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 Lucene
Implements
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("Deprecated, use NumericDocValuesField instead")]
public class Int32DocValuesField : NumericDocValuesField, IIndexableField
Constructors
| Improve this Doc View SourceInt32DocValuesField(String, Int32)
Creates a new DocValues field with the specified 32-bit System.Int32 value
Declaration
public Int32DocValuesField(string name, int value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | field name |
System.Int32 | value | 32-bit System.Int32 value |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | if the field |
Methods
| Improve this Doc View SourceSetInt32Value(Int32)
Declaration
public override void SetInt32Value(int value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value |