updateBinaryDocValue

fun updateBinaryDocValue(term: Term, field: String, value: BytesRef): Long

Updates a document's BinaryDocValues 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 only with doc values.

NOTE: this method currently replaces the existing value of all affected documents with the new value.

Return

The #sequence_number for this operation

Parameters

term

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

field

field name of the BinaryDocValues field

value

new value for the field

Throws

if the index is corrupt

IOException

if there is a low-level IO error