From 8f7c8ca7f0bf01b234b8f9d7d2435166a79f56bd Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Wed, 22 May 2024 12:23:43 +0200 Subject: [PATCH] Remove now unused error variant --- meilisearch-types/src/error.rs | 1 - milli/src/error.rs | 2 -- 2 files changed, 3 deletions(-) diff --git a/meilisearch-types/src/error.rs b/meilisearch-types/src/error.rs index 158dfae92..85a2cd767 100644 --- a/meilisearch-types/src/error.rs +++ b/meilisearch-types/src/error.rs @@ -384,7 +384,6 @@ impl ErrorCode for milli::Error { UserError::InvalidGeoField { .. } => Code::InvalidDocumentGeoField, UserError::InvalidVectorDimensions { .. } => Code::InvalidVectorDimensions, UserError::InvalidVectorsMapType { .. } => Code::InvalidVectorsType, - UserError::InvalidVectorsType { .. } => Code::InvalidVectorsType, UserError::TooManyVectors(_, _) => Code::TooManyVectors, UserError::SortError(_) => Code::InvalidSearchSort, UserError::InvalidMinTypoWordLenSetting(_, _) => { diff --git a/milli/src/error.rs b/milli/src/error.rs index e60252ec1..83754afe4 100644 --- a/milli/src/error.rs +++ b/milli/src/error.rs @@ -117,8 +117,6 @@ only composed of alphanumeric characters (a-z A-Z 0-9), hyphens (-) and undersco InvalidGeoField(#[from] GeoError), #[error("Invalid vector dimensions: expected: `{}`, found: `{}`.", .expected, .found)] InvalidVectorDimensions { expected: usize, found: usize }, - #[error("The `_vectors.{subfield}` field in the document with id: `{document_id}` is not an array. Was expecting an array of floats or an array of arrays of floats but instead got `{value}`.")] - InvalidVectorsType { document_id: Value, value: Value, subfield: String }, #[error("The `_vectors` field in the document with id: `{document_id}` is not an object. Was expecting an object with a key for each embedder with manually provided vectors, but instead got `{value}`")] InvalidVectorsMapType { document_id: String, value: Value }, #[error("{0}")]