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.
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"
}Project API Key.
Collection name.
Updated collection
Show child attributes
Project name.
Collection name.
Show child attributes
Total number of documents.
Status
CREATING, ACTIVE, DELETING Source project name.
Source collection name.
Source collection version.
Was this page helpful?