Update milli/src/index.rs

Co-authored-by: Louis Dureuil <louis@meilisearch.com>
This commit is contained in:
Tamo 2024-09-19 15:41:44 +02:00 committed by GitHub
parent b6b73fe41c
commit 2564ec1496
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1619,7 +1619,7 @@ impl Index {
crate::vector::arroy_db_range_for_embedder(embedder_id).map_while(move |k| {
let reader = ArroyWrapper::new(self.vector_arroy, k, quantized);
// Here we don't care about the dimensions, but we want to know if we can read
// in the database or if its medata are missing.
// in the database or if its metadata are missing because there is no document with that many vectors.
match reader.dimensions(rtxn) {
Ok(_) => Some(Ok(reader)),
Err(arroy::Error::MissingMetadata(_)) => None,