mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
rename min word len for typo error
This commit is contained in:
parent
286dd7b2e4
commit
4c4b336ecb
2 changed files with 5 additions and 5 deletions
|
@ -72,7 +72,7 @@ pub enum UserError {
|
|||
SerdeJson(serde_json::Error),
|
||||
SortError(SortError),
|
||||
UnknownInternalDocumentId { document_id: DocumentId },
|
||||
InvalidMinTypoWordSetting(u8, u8),
|
||||
InvalidMinTypoWordLenSetting(u8, u8),
|
||||
}
|
||||
|
||||
impl From<io::Error> for Error {
|
||||
|
@ -292,7 +292,7 @@ ranking rules settings to use the sort parameter at search time.",
|
|||
Self::UnknownInternalDocumentId { document_id } => {
|
||||
write!(f, "An unknown internal document id have been used: `{}`.", document_id)
|
||||
}
|
||||
Self::InvalidMinTypoWordSetting(one, two) => write!(f, "`minWordSizeForTypos` setting is invalid. `oneTypo` and `twoTypos` fields should be between `0` and `255`, and `twoTypos` should be greater or equals to `oneTypo` but found `oneTypo: {}` and twoTypos: {}`.", one, two),
|
||||
Self::InvalidMinTypoWordLenSetting(one, two) => write!(f, "`minWordSizeForTypos` setting is invalid. `oneTypo` and `twoTypos` fields should be between `0` and `255`, and `twoTypos` should be greater or equals to `oneTypo` but found `oneTypo: {}` and twoTypos: {}`.", one, two),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue