mirror of
https://gitee.com/dromara/MilvusPlus.git
synced 2025-12-06 17:08:27 +08:00
优化代码
This commit is contained in:
parent
ea99b5b20e
commit
aa3659e63f
@ -187,10 +187,8 @@ public class MilvusConverter {
|
|||||||
schemaBuilder.addField(milvusEntity.getMilvusFields().toArray(new AddFieldReq[0]));
|
schemaBuilder.addField(milvusEntity.getMilvusFields().toArray(new AddFieldReq[0]));
|
||||||
log.info("-------create schema---------");
|
log.info("-------create schema---------");
|
||||||
schemaBuilder.createSchema();
|
schemaBuilder.createSchema();
|
||||||
if (indexParams != null && !indexParams.isEmpty()) {
|
schemaBuilder.createIndex(indexParams);
|
||||||
schemaBuilder.createIndex(indexParams);
|
log.info("-------create index---------");
|
||||||
log.info("-------create index---------");
|
|
||||||
}
|
|
||||||
// 创建分区
|
// 创建分区
|
||||||
List<String> partitionName = milvusEntity.getPartitionName();
|
List<String> partitionName = milvusEntity.getPartitionName();
|
||||||
if (CollectionUtils.isEmpty(partitionName)) {
|
if (CollectionUtils.isEmpty(partitionName)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user