updateNumericDocValue

fun updateNumericDocValue(term: Term, field: String, value: Long): Long

Updates a document's NumericDocValues for field to the given value * . You can only update fields that already exist in the index, not add new fields through this method. You can only update fields that were indexed with doc values only.

Return

The #sequence_number for this operation

Parameters

term

the term to identify the document(s) to be updated

field

field name of the NumericDocValues field

value

new value for the field

Throws

if the index is corrupt

IOException

if there is a low-level IO error