Method UpdateNumericDocValue
UpdateNumericDocValue(Term, String, Nullable<Int64>)
Updates a document's NumericDocValues for field
to the
given value
. This method can be used to 'unset' a document's
value by passing null
as the new value
. Also, you can only update
fields that already exist in the index, not add new fields through this
method.
NOTE: if this method hits an
Declaration
public virtual void UpdateNumericDocValue(Term term, string field, long? value)
Parameters
Type | Name | Description |
---|---|---|
Term | term | the term to identify the document(s) to be updated |
System.String | field | field name of the NumericDocValues field |
System.Nullable<System.Int64> | value | new value for the field |
Exceptions
Type | Condition |
---|---|
CorruptIndexException | if the index is corrupt |