跳到主要内容
版本:v2.6.x

replace()

Creates an explicit replacement operation for a field during an upsert.

Request Syntax

Python
FieldOp.replace() -> FieldPartialUpdateOp

RETURN TYPE:

FieldPartialUpdateOp

RETURNS:

Operation message that selects replacement behavior. Replacement is also the default when no field operation is supplied.

Examples

Creates the explicit replacement operation value.

Python
from pymilvus import FieldOp

op = FieldOp.replace()
print(op)