[V2]--Create index Error:CreateIndexRequest collectionName:Collection_PKpEF4kxil, fieldName:fieldFloatVector failed, error code: 2, reason: efConstruction out of range: [1, 2147483647]
Closed this issue · 0 comments
yongpengli-z commented
java-sdk:V2
IndexParam indexParam = IndexParam.builder()
.fieldName(CommonData.fieldFloatVector)
.indexType(IndexParam.IndexType.HNSW)
.metricType(IndexParam.MetricType.L2)
.build();
milvusClientV2.createIndex(CreateIndexReq.builder()
.collectionName(newCollectionName2)
.indexParams(Collections.singletonList(indexParam))
.build());