mirror of https://github.com/milvus-io/milvus.git
fix:reset default auto index for varchar (#39908)
pr: #39819 Signed-off-by: luzhang <luzhang@zilliz.com> Co-authored-by: luzhang <luzhang@zilliz.com>pull/39442/head
parent
52434ccc78
commit
de8abe7970
|
@ -666,7 +666,8 @@ func Test_parseIndexParams(t *testing.T) {
|
|||
assert.NoError(t, err)
|
||||
sortKeyValuePairs(cit.newIndexParams)
|
||||
assert.Equal(t, cit.newIndexParams, []*commonpb.KeyValuePair{
|
||||
{Key: common.IndexTypeKey, Value: indexparamcheck.IndexINVERTED},
|
||||
{Key: common.IndexTypeKey, Value: indexparamcheck.IndexHybrid},
|
||||
{Key: common.BitmapCardinalityLimitKey, Value: strconv.Itoa(paramtable.DefaultBitmapCardinalityLimit)},
|
||||
})
|
||||
})
|
||||
|
||||
|
@ -998,7 +999,8 @@ func Test_parseIndexParams(t *testing.T) {
|
|||
assert.NoError(t, err)
|
||||
sortKeyValuePairs(cit.newIndexParams)
|
||||
assert.Equal(t, cit.newIndexParams, []*commonpb.KeyValuePair{
|
||||
{Key: common.IndexTypeKey, Value: indexparamcheck.IndexINVERTED},
|
||||
{Key: common.IndexTypeKey, Value: indexparamcheck.IndexHybrid},
|
||||
{Key: common.BitmapCardinalityLimitKey, Value: strconv.Itoa(paramtable.DefaultBitmapCardinalityLimit)},
|
||||
})
|
||||
})
|
||||
|
||||
|
|
|
@ -172,7 +172,7 @@ func (p *AutoIndexConfig) init(base *BaseTable) {
|
|||
p.ScalarAutoIndexParams = ParamItem{
|
||||
Key: "scalarAutoIndex.params.build",
|
||||
Version: "2.4.0",
|
||||
DefaultValue: `{"int": "HYBRID","varchar": "INVERTED","bool": "BITMAP", "float": "INVERTED"}`,
|
||||
DefaultValue: `{"int": "HYBRID","varchar": "HYBRID","bool": "BITMAP", "float": "INVERTED"}`,
|
||||
}
|
||||
p.ScalarAutoIndexParams.Init(base.mgr)
|
||||
|
||||
|
|
Loading…
Reference in New Issue