跳到主要内容
版本:v3.0.x

drop_function_field()

This operation drops a function and its output field from a collection. The output field and its index are removed together with the function.

This does not apply to external collections.

Request syntax​

Python
client.drop_function_field(
collection_name: str,
function_name: str,
timeout: Optional[float] = None
)

PARAMETERS:

  • collection_name (str) -

    [REQUIRED]

    The name of the collection.

  • function_name (str) -

    [REQUIRED]

    The name of the function to drop.

  • timeout (float | None) -

    The timeout duration for this operation. Setting this to None indicates that this operation timeouts when any response arrives or any error occurs.

RETURN TYPE:

NoneType

RETURNS:

None

EXCEPTIONS:

  • MilvusException

    This exception will be raised when any error occurs during this operation.

Example​

Python
from pymilvus import MilvusClient

client = MilvusClient(
uri="http://localhost:19530",
token="root:Milvus"
)

client.drop_function_field(
collection_name="my_collection",
function_name="bm25",
)