diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 44f7d110b..eb03842ca 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cli" -version = "0.20.1" +version = "0.20.2" edition = "2018" description = "A CLI to interact with a milli index" diff --git a/helpers/Cargo.toml b/helpers/Cargo.toml index da26a8baa..5b33d2a4f 100644 --- a/helpers/Cargo.toml +++ b/helpers/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "helpers" -version = "0.20.1" +version = "0.20.2" authors = ["Clément Renault "] edition = "2018" diff --git a/http-ui/Cargo.toml b/http-ui/Cargo.toml index 43980009a..04e1c708a 100644 --- a/http-ui/Cargo.toml +++ b/http-ui/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "http-ui" description = "The HTTP user interface of the milli search engine" -version = "0.20.1" +version = "0.20.2" authors = ["Clément Renault "] edition = "2018" diff --git a/infos/Cargo.toml b/infos/Cargo.toml index c96ff094c..645bc4cdd 100644 --- a/infos/Cargo.toml +++ b/infos/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "infos" -version = "0.20.1" +version = "0.20.2" authors = ["Clément Renault "] edition = "2018" diff --git a/milli/Cargo.toml b/milli/Cargo.toml index fc45b5355..5aa04e569 100644 --- a/milli/Cargo.toml +++ b/milli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "milli" -version = "0.20.1" +version = "0.20.2" authors = ["Kerollmops "] edition = "2018" diff --git a/milli/src/criterion.rs b/milli/src/criterion.rs index 0586fcc0f..aca2f95b5 100644 --- a/milli/src/criterion.rs +++ b/milli/src/criterion.rs @@ -17,7 +17,7 @@ pub enum CriterionError { impl fmt::Display for CriterionError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match self { - Self::InvalidName { name } => write!(f, "invalid ranking rule {}", name), + Self::InvalidName { name } => write!(f, "`{}` ranking rule is invalid. Valid ranking rules are Words, Typo, Sort, Proximity, Attribute, Exactness and custom ranking rules.", name), Self::ReservedName { name } => { write!( f, diff --git a/milli/src/error.rs b/milli/src/error.rs index 59744a32e..9e8ad515d 100644 --- a/milli/src/error.rs +++ b/milli/src/error.rs @@ -219,7 +219,7 @@ impl StdError for InternalError {} impl fmt::Display for UserError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match self { - Self::AttributeLimitReached => f.write_str("Maximum number of attributes reached."), + Self::AttributeLimitReached => f.write_str("A document cannot contain more than 65,535 fields."), Self::CriterionError(error) => write!(f, "{}", error), Self::DocumentLimitReached => f.write_str("Maximum number of documents reached."), Self::InvalidFacetsDistribution { invalid_facets_name } => { @@ -277,7 +277,7 @@ ranking rules settings to use the sort parameter at search time.", let json = serde_json::to_string(document).unwrap(); write!(f, "Document doesn't have a `{}` attribute: `{}`.", primary_key, json) } - Self::MissingPrimaryKey => f.write_str("Missing primary key."), + Self::MissingPrimaryKey => f.write_str("The primary key inference process failed because the engine did not find any fields containing `id` substring in their name. If your document identifier does not contain any `id` substring, you can set the primary key of the index."), Self::MaxDatabaseSizeReached => f.write_str("Maximum database size has been reached."), Self::NoSpaceLeftOnDevice => f.write_str("There is no more space left on the device. Consider increasing the size of the disk/partition."), Self::InvalidStoreFile => f.write_str("The database file is in an invalid state."),