Skip to content

Cannot change the default indexType from AutoIndex to HNSW when creating an index in the Milvus collection via the RESTful API #38463

Discussion options

You must be logged in to vote

It seems that you want to create a specific index when creating a collection. It is not recommended to use the quick create collection method here. If you do not specify the schema parameter, an autoindex will be automatically created for you when creating the collection. This cannot be changed later. You can follow the CUSTOM SETUP WITH INDEX instructions in https://milvus.io/api-reference/restful/v2.5.x/v2/Collection%20(v2)/Create.md, example here `export TOKEN="root:Milvus"

curl --request POST
--url "${CLUSTER_ENDPOINT}/v2/vectordb/collections/create"
--header "Authorization: Bearer ${TOKEN}"
--header "Content-Type: application/json"
-d '{
"collectionName": "custom_setup_indexed",

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by barzan-hayati
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants