mirror of https://github.com/milvus-io/milvus.git
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>pull/19370/head
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