milvus-logo
Star
0
Forks
0
快速开始

Index

An index belongs to a specific vector field in a collection, it helps accelerating search.

Constructor

Constructor

Description

Index()

Create index on a specified column according to the index parameters.

Attributes

API

Description

params

Return the index params.

collection_name

Return corresponding collection name.

field_name

Return corresponding field name.

drop

Drop index and its corresponding index files.

APIs

class pymilvus.Index(collection, field_name, index_params, **kwargs)
property params

Returns the index parameters.

Return dict

The index parameters

property collection_name

Returns the corresponding collection name.

Return str

The corresponding collection name

property field_name

Returns the corresponding field name.

Return str

The corresponding field name.

drop(timeout=None, **kwargs)

Drop an index and its corresponding index files.

Parameters

timeout (float) -- An optional duration of time in seconds to allow for the RPC. When timeout is set to None, client waits until server response or error occur

Raises

IndexNotExistException -- If the specified index does not exist.