An index belongs to a specific vector field in a collection, it helps accelerating search.
Constructor |
Description |
---|---|
Create index on a specified column according to the index parameters. |
API |
Description |
---|---|
Return the index params. |
|
Return corresponding collection name. |
|
Return corresponding field name. |
|
Drop index and its corresponding index files. |
pymilvus.
Index
(collection, field_name, index_params, **kwargs)¶params
¶Returns the index parameters.
The index parameters
collection_name
¶Returns the corresponding collection name.
The corresponding collection name
field_name
¶Returns the corresponding field name.
The corresponding field name.
drop
(timeout=None, **kwargs)¶Drop an index and its corresponding index files.
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
IndexNotExistException -- If the specified index does not exist.