Fix golint warnings in indexparamcheck (#9861)

Signed-off-by: Xiangyu Wang <xiangyu.wang@zilliz.com>
pull/9848/head
Xiangyu Wang 2021-10-14 11:52:40 +08:00 committed by GitHub
parent 41bd393fe6
commit 274dd03a10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 6 deletions

View File

@ -18,12 +18,25 @@ import (
)
const (
L2 = "L2"
IP = "IP"
HAMMING = "HAMMING"
JACCARD = "JACCARD"
TANIMOTO = "TANIMOTO"
SUBSTRUCTURE = "SUBSTRUCTURE"
// L2 represents Euclidean distance
L2 = "L2"
// IP represents inner product distance
IP = "IP"
// HAMMING represents hamming distance
HAMMING = "HAMMING"
// JACCARD represents jaccard distance
JACCARD = "JACCARD"
// TANIMOTO represents tanimoto distance
TANIMOTO = "TANIMOTO"
// SUBSTRUCTURE represents substructure distance
SUBSTRUCTURE = "SUBSTRUCTURE"
// SUPERSTRUCTURE represents superstructure distance
SUPERSTRUCTURE = "SUPERSTRUCTURE"
MinNBits = 1