From 8debf6fe81e761d3d15d3f1c996d1ecfd910893e Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Wed, 14 Jun 2023 14:22:36 +0200 Subject: [PATCH] Use a basic euclidean distance function --- milli/src/index.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/milli/src/index.rs b/milli/src/index.rs index 4cdfb010c..5dc9a7ad7 100644 --- a/milli/src/index.rs +++ b/milli/src/index.rs @@ -13,7 +13,7 @@ use roaring::RoaringBitmap; use rstar::RTree; use time::OffsetDateTime; -use crate::dot_product::DotProduct; +use crate::dot_product::Euclidean; use crate::error::{InternalError, UserError}; use crate::facet::FacetType; use crate::fields_ids_map::FieldsIdsMap; @@ -29,7 +29,7 @@ use crate::{ }; /// The HNSW data-structure that we serialize, fill and search in. -pub type Hnsw = hnsw::Hnsw, Pcg32, 12, 24>; +pub type Hnsw = hnsw::Hnsw, Pcg32, 12, 24>; pub const DEFAULT_MIN_WORD_LEN_ONE_TYPO: u8 = 5; pub const DEFAULT_MIN_WORD_LEN_TWO_TYPOS: u8 = 9;