🚀 Try Zilliz Cloud, the fully managed Milvus, for free—experience 10x faster performance! Try Now>>

Milvus
Zilliz
< Docs
  • Go

AlterCollectionFieldProperty()

This method changes the specified property of a collection field.

func (c *Client) AlterCollectionFieldProperty(ctx context.Context, option AlterCollectionFieldPropertiesOption, callOptions ...grpc.CallOption) error

Request Parameters

Parameter

Description

Type

ctx

Context for the current call to work.

context.Context

option

Optional parameters of the methods.

AlterCollectionFieldPropertiesOption

callOpts

Optional parameters for calling the methods.

grpc.CallOption

AlterCollectionFieldPropertiesOption

This is an interface type. The alterCollectionFieldPropertiesOption struct type implements this interface type.

You can use the NewAlterCollectionFieldPropertiesOption() function to get the concrete implementation.

NewAlterCollectionFieldPropertiesOption

The signature of this method is as follows:

func NewAlterCollectionFieldPropertiesOption(collectionName string, fieldName string) *alterCollectionFieldPropertiesOption

Parameter

Description

Type

collectionName

Name of the target collection.

string

fieldName

Name of the target field.

string

Return

Null

Example

err = cli.AlterCollectionFieldProperty(ctx, milvusclient.NewAlterCollectionFieldPropertiesOption("customized_setup_2", "id").WithProperty(common.MmapEnabledKey, "true"))
if err != nil {
    // handle err
}

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?