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

dropFunctionField()

Drops a function and the output field owned by that function.

Java
public void dropFunctionField(DropFunctionFieldReq request)

Request Syntax

Java
DropFunctionFieldReq.builder()
.collectionName(collectionName)
.databaseName(databaseName)
.functionName(functionName)
.build();

BUILDER METHODS:

  • collectionName(String collectionName)

    The name of the target collection.

  • databaseName(String databaseName)

    The name of the database. Defaults to the current database when omitted.

  • functionName(String functionName)

    The name of the function whose definition and output field should be removed.

RETURNS:

void

This operation does not return a value.

EXCEPTIONS:

  • MilvusClientException

    Raised when request validation, transport, or server execution fails. Inspect the exception message for the exact failure reason.

Example

Java
client.dropFunctionField(DropFunctionFieldReq.builder()
.collectionName("books")
.functionName("bm25")
.build());