mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 11:29:48 +08:00
Support default index name for each field (#19512)
Signed-off-by: cai.zhang <cai.zhang@zilliz.com> Signed-off-by: cai.zhang <cai.zhang@zilliz.com>
This commit is contained in:
parent
d961b7b513
commit
2f07344d75
@ -1320,7 +1320,7 @@ func (cit *createIndexTask) Execute(ctx context.Context) error {
|
||||
}
|
||||
}
|
||||
if cit.IndexName == "" {
|
||||
cit.IndexName = Params.CommonCfg.DefaultIndexName
|
||||
cit.IndexName = Params.CommonCfg.DefaultIndexName + "_" + strconv.FormatInt(cit.fieldSchema.GetFieldID(), 10)
|
||||
}
|
||||
var err error
|
||||
req := &indexpb.CreateIndexRequest{
|
||||
|
Loading…
Reference in New Issue
Block a user