create_struct_field_schema()

This operation creates a struct field schema.

Request syntax

MilvusClient.create_struct_field_schema(**kwargs) -> StructFieldSchema

This is a class method. You should call this method like this: MilvusClient.create_struct_field_schema().

PARAMETERS:

  • nullable (bool) -

    Whether null values are allowed for the struct field. The value defaults to False.

  • description (str) -

    The description of the struct field. The value defaults to an empty string.

RETURN TYPE:

StructFieldSchema

RETURNS:

The created struct field schema.

EXCEPTIONS:

  • MilvusException

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

Example

from pymilvus import MilvusClient

struct_schema = MilvusClient.create_struct_field_schema()

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?