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:
cai.zhang 2022-09-29 17:14:54 +08:00 committed by GitHub
parent d961b7b513
commit 2f07344d75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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{