DropIndexProperties()
Drops properties from an existing index.
pub async fn drop_index_properties(&self, request: DropIndexPropertiesRequest) -> Result<()>
Request Syntax
let request = DropIndexPropertiesRequest::builder()
.collection_name("books")
.index_name("embedding_idx")
.property_keys(HashSet::from(["mmap.enabled".to_string()]))
.build()?;
REQUEST FIELDS:
database_name: Option<String>Name of the target database; uses the default database when empty.
collection_name: StringName of the collection that owns the index. Required.
index_name: StringName of the index whose properties to drop. Required.
property_keys: HashSet<String>Keys of the properties to remove from the index.
RETURN TYPE:
Result<()>
RETURNS:
Returns Ok(()) on success, or an Error on failure.
Example
let request = DropIndexPropertiesRequest::builder()
.collection_name("books")
.index_name("embedding_idx")
.property_keys(HashSet::from(["mmap.enabled".to_string()]))
.build()?;
client.drop_index_properties(request).await?;