cURL
curl --request PATCH \ --url https://{projectHost}/collections/{collectionName} \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "indexConfigs": { "example-field1": { "type": "text", "analyzers": [ "english" ] }, "example-field2": { "type": "vector", "dimensions": 128, "similarity": "cosine" }, "example-field3": { "type": "keyword" } } } '
{ "projectName": "example-project-name", "collectionName": "example-collection-name", "indexConfigs": { "example-field1": { "type": "text", "analyzers": [ "english" ] }, "example-field2": { "type": "vector", "dimensions": 128, "similarity": "cosine" }, "example-field3": { "type": "keyword" } }, "numDocs": 1000, "collectionStatus": "ACTIVE" }
Configure a collection.
Project API Key.
Collection name.
Show child attributes
Updated collection
Was this page helpful?