Skip to main content

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());
Minimum SDK versionv3.0.x