[skip e2e]Add comments to conf adapter file (#15015)

Signed-off-by: jingkl <jingjing.jia@zilliz.com>
pull/15024/merge
jingkl 2022-01-07 19:07:32 +08:00 committed by GitHub
parent 6d526fbb3d
commit e108a64135
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -431,6 +431,7 @@ type RHNSWSQConfAdapter struct {
BaseConfAdapter
}
// CheckTrain checks if a rhnsw sq index can be built with specific parameters.
func (adapter *RHNSWSQConfAdapter) CheckTrain(params map[string]string) bool {
if !CheckIntByRange(params, EFConstruction, HNSWMinEfConstruction, HNSWMaxEfConstruction) {
return false