AlterCollectionFieldProperties()
Alters the properties of a field in a collection.
pub async fn alter_collection_field_properties(&self, request: AlterCollectionFieldPropertiesRequest) -> Result<()>
Request Syntax
let request = AlterCollectionFieldPropertiesRequest::builder()
.collection_name("books")
.field_name("vector")
.property("mmap.enabled", "true")
.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 field. Required.
field_name: StringName of the field to alter. Required.
properties: HashMap<String, String>Properties to set or update on the field. At least one property is required. Use
property()to add one.
RETURN TYPE:
Result<()>
RETURNS:
Returns an empty result indicating success. Returns Error on failure.
Example
let request = AlterCollectionFieldPropertiesRequest::builder()
.collection_name("books")
.field_name("vector")
.property("mmap.enabled", "true")
.build()?;
client.alter_collection_field_properties(request).await?;