Index¶
An index belongs to a specific vector field in a collection, it helps accelerating search.
Constructor¶
Constructor |
Description |
---|---|
Create index on a specified column according to the index parameters. |
Attributes¶
API |
Description |
---|---|
Return the index params. |
|
Return corresponding collection name. |
|
Return corresponding field name. |
|
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.
-
property