mirror of https://github.com/milvus-io/milvus.git
enhance: Set default index name as field name (#29218)
Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>pull/29233/head
parent
4731c1b0d5
commit
2f7252b44e
|
@ -19,7 +19,6 @@ package proxy
|
|||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"github.com/cockroachdb/errors"
|
||||
"go.uber.org/zap"
|
||||
|
@ -399,7 +398,7 @@ func (cit *createIndexTask) Execute(ctx context.Context) error {
|
|||
)
|
||||
|
||||
if cit.req.GetIndexName() == "" {
|
||||
cit.req.IndexName = Params.CommonCfg.DefaultIndexName.GetValue() + "_" + strconv.FormatInt(cit.fieldSchema.GetFieldID(), 10)
|
||||
cit.req.IndexName = cit.fieldSchema.GetName()
|
||||
}
|
||||
var err error
|
||||
req := &indexpb.CreateIndexRequest{
|
||||
|
|
Loading…
Reference in New Issue