make cluster integration test independent of arch
It now uses the production distancer which already chooses the correct
implementation for the dot product based on the available architecture.
@@ -34,7 +34,7 @@ import (
"github.com/semi-technologies/weaviate/adapters/handlers/rest/clusterapi"
"github.com/semi-technologies/weaviate/adapters/repos/db"
"github.com/semi-technologies/weaviate/adapters/repos/db/vector/hnsw"
- "github.com/semi-technologies/weaviate/adapters/repos/db/vector/hnsw/distancer/asm"
+ "github.com/semi-technologies/weaviate/adapters/repos/db/vector/hnsw/distancer"
"github.com/semi-technologies/weaviate/entities/additional"
"github.com/semi-technologies/weaviate/entities/aggregation"
"github.com/semi-technologies/weaviate/entities/filters"
@@ -574,10 +574,11 @@ func bruteForceObjectsByQuery(objs []*models.Object,
obj *models.Object
}
+ distProv := distancer.NewDotProductProvider()
distances := make([]distanceAndObj, len(objs))
for i := range objs {
- dist := 1 - asm.Dot(normalize(query), normalize(objs[i].Vector))
+ dist, _, _ := distProv.SingleDist(normalize(query), normalize(objs[i].Vector))
distances[i] = distanceAndObj{
distance: dist,
obj: objs[i],
