mirror of https://github.com/milvus-io/milvus.git
[skip e2e]Add comments to conf adapter file (#14762)
Signed-off-by: jingkl <jingjing.jia@zilliz.com>pull/14787/head
parent
2dad746a7e
commit
44c53b10da
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue