drop_index_properties()
This operation drops the specified index properties.
This method applies only to dedicated serving clusters and on-demand compute.
For this operation in a collection of a serving cluster, please create MilvusClient with the cluster endpoint.
Free & Serverless
https://{cluster-id}.serverless.{region}.vectordb.zillizcloud.com
- Dedicated
https://{cluster-id}.{region}.vectordb.zillizcloud.com:19530
- For this operation in a collection for on-demand compute, create MilvusClient with the project endpoints, and then create a session to attach to an on-demand cluster for searches.
https://{project-id}.{region}.api.zillizcloud.com
Request Syntax
drop_index_properties(
self,
collection_name: str,
index_name: str,
property_keys: List[str],
timeout: Optional[float] = None,
**kwargs,
)
PARAMETERS:
-
collection_name (str) -
The name of the target collection.
-
index_name (str) -
The name of the index file to drop.
-
property_keys (List[str]) -
The names of the properties to drop in a list. Possible properties are as follows:
mmap.enabled
-
timeout (Optional[float]) -
The timeout duration for this operation.
Setting this to None indicates that this operation timeouts when any response arrives or any error occurs.
RETURN TYPE:
NoneType
RETURNS:
None
EXCEPTIONS:
-
MilvusException
This exception will be raised when any error occurs during this operation.
Examples
from pymilvus import MilvusClient
# 1. Create a milvus client
client = MilvusClient(
uri="YOUR_CLUSTER_ENDPOINT",
token="YOUR_CLUSTER_TOKEN"
)
client.drop_index_properties(
collection_name="collection_name",
index_name="my_vector",
property_keys = ["mmap.enabled"]
)