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

Signed-off-by: jingkl <jingjing.jia@zilliz.com>
pull/14787/head
jingkl 2022-01-04 16:23:39 +08:00 committed by GitHub
parent 2dad746a7e
commit 44c53b10da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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