diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/FallbackParams.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/FallbackParams.cs
index c2cc4db404..9dede6b5cc 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/FallbackParams.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/FallbackParams.cs
@@ -363,6 +363,20 @@ public FallbackParams()
[JsonPropertyName("maxFacetHits")]
public int? MaxFacetHits { get; set; }
+ ///
+ /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
+ ///
+ /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
+ [JsonPropertyName("keepDiacriticsOnCharacters")]
+ public string KeepDiacriticsOnCharacters { get; set; }
+
+ ///
+ /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
+ ///
+ /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
+ [JsonPropertyName("customRanking")]
+ public List CustomRanking { get; set; }
+
///
/// Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. Attribute names are case-sensitive. - `*` retrieves all attributes, except attributes included in the `customRanking` and `unretrievableAttributes` settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the `*`: `[\"*\", \"-ATTRIBUTE\"]`. - The `objectID` attribute is always included.
///
@@ -656,6 +670,8 @@ public override string ToString()
sb.Append(" CustomNormalization: ").Append(CustomNormalization).Append("\n");
sb.Append(" AttributeForDistinct: ").Append(AttributeForDistinct).Append("\n");
sb.Append(" MaxFacetHits: ").Append(MaxFacetHits).Append("\n");
+ sb.Append(" KeepDiacriticsOnCharacters: ").Append(KeepDiacriticsOnCharacters).Append("\n");
+ sb.Append(" CustomRanking: ").Append(CustomRanking).Append("\n");
sb.Append(" AttributesToRetrieve: ").Append(AttributesToRetrieve).Append("\n");
sb.Append(" Ranking: ").Append(Ranking).Append("\n");
sb.Append(" RelevancyStrictness: ").Append(RelevancyStrictness).Append("\n");
@@ -767,6 +783,8 @@ public override bool Equals(object obj)
(CustomNormalization == input.CustomNormalization || CustomNormalization != null && input.CustomNormalization != null && CustomNormalization.SequenceEqual(input.CustomNormalization)) &&
(AttributeForDistinct == input.AttributeForDistinct || (AttributeForDistinct != null && AttributeForDistinct.Equals(input.AttributeForDistinct))) &&
(MaxFacetHits == input.MaxFacetHits || MaxFacetHits.Equals(input.MaxFacetHits)) &&
+ (KeepDiacriticsOnCharacters == input.KeepDiacriticsOnCharacters || (KeepDiacriticsOnCharacters != null && KeepDiacriticsOnCharacters.Equals(input.KeepDiacriticsOnCharacters))) &&
+ (CustomRanking == input.CustomRanking || CustomRanking != null && input.CustomRanking != null && CustomRanking.SequenceEqual(input.CustomRanking)) &&
(AttributesToRetrieve == input.AttributesToRetrieve || AttributesToRetrieve != null && input.AttributesToRetrieve != null && AttributesToRetrieve.SequenceEqual(input.AttributesToRetrieve)) &&
(Ranking == input.Ranking || Ranking != null && input.Ranking != null && Ranking.SequenceEqual(input.Ranking)) &&
(RelevancyStrictness == input.RelevancyStrictness || RelevancyStrictness.Equals(input.RelevancyStrictness)) &&
@@ -962,6 +980,14 @@ public override int GetHashCode()
hashCode = (hashCode * 59) + AttributeForDistinct.GetHashCode();
}
hashCode = (hashCode * 59) + MaxFacetHits.GetHashCode();
+ if (KeepDiacriticsOnCharacters != null)
+ {
+ hashCode = (hashCode * 59) + KeepDiacriticsOnCharacters.GetHashCode();
+ }
+ if (CustomRanking != null)
+ {
+ hashCode = (hashCode * 59) + CustomRanking.GetHashCode();
+ }
if (AttributesToRetrieve != null)
{
hashCode = (hashCode * 59) + AttributesToRetrieve.GetHashCode();
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/RecommendSearchParams.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/RecommendSearchParams.cs
index 0aec27d752..15e90d3b7e 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/RecommendSearchParams.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/RecommendSearchParams.cs
@@ -363,6 +363,20 @@ public RecommendSearchParams()
[JsonPropertyName("maxFacetHits")]
public int? MaxFacetHits { get; set; }
+ ///
+ /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
+ ///
+ /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
+ [JsonPropertyName("keepDiacriticsOnCharacters")]
+ public string KeepDiacriticsOnCharacters { get; set; }
+
+ ///
+ /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
+ ///
+ /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
+ [JsonPropertyName("customRanking")]
+ public List CustomRanking { get; set; }
+
///
/// Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. Attribute names are case-sensitive. - `*` retrieves all attributes, except attributes included in the `customRanking` and `unretrievableAttributes` settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the `*`: `[\"*\", \"-ATTRIBUTE\"]`. - The `objectID` attribute is always included.
///
@@ -656,6 +670,8 @@ public override string ToString()
sb.Append(" CustomNormalization: ").Append(CustomNormalization).Append("\n");
sb.Append(" AttributeForDistinct: ").Append(AttributeForDistinct).Append("\n");
sb.Append(" MaxFacetHits: ").Append(MaxFacetHits).Append("\n");
+ sb.Append(" KeepDiacriticsOnCharacters: ").Append(KeepDiacriticsOnCharacters).Append("\n");
+ sb.Append(" CustomRanking: ").Append(CustomRanking).Append("\n");
sb.Append(" AttributesToRetrieve: ").Append(AttributesToRetrieve).Append("\n");
sb.Append(" Ranking: ").Append(Ranking).Append("\n");
sb.Append(" RelevancyStrictness: ").Append(RelevancyStrictness).Append("\n");
@@ -767,6 +783,8 @@ public override bool Equals(object obj)
(CustomNormalization == input.CustomNormalization || CustomNormalization != null && input.CustomNormalization != null && CustomNormalization.SequenceEqual(input.CustomNormalization)) &&
(AttributeForDistinct == input.AttributeForDistinct || (AttributeForDistinct != null && AttributeForDistinct.Equals(input.AttributeForDistinct))) &&
(MaxFacetHits == input.MaxFacetHits || MaxFacetHits.Equals(input.MaxFacetHits)) &&
+ (KeepDiacriticsOnCharacters == input.KeepDiacriticsOnCharacters || (KeepDiacriticsOnCharacters != null && KeepDiacriticsOnCharacters.Equals(input.KeepDiacriticsOnCharacters))) &&
+ (CustomRanking == input.CustomRanking || CustomRanking != null && input.CustomRanking != null && CustomRanking.SequenceEqual(input.CustomRanking)) &&
(AttributesToRetrieve == input.AttributesToRetrieve || AttributesToRetrieve != null && input.AttributesToRetrieve != null && AttributesToRetrieve.SequenceEqual(input.AttributesToRetrieve)) &&
(Ranking == input.Ranking || Ranking != null && input.Ranking != null && Ranking.SequenceEqual(input.Ranking)) &&
(RelevancyStrictness == input.RelevancyStrictness || RelevancyStrictness.Equals(input.RelevancyStrictness)) &&
@@ -962,6 +980,14 @@ public override int GetHashCode()
hashCode = (hashCode * 59) + AttributeForDistinct.GetHashCode();
}
hashCode = (hashCode * 59) + MaxFacetHits.GetHashCode();
+ if (KeepDiacriticsOnCharacters != null)
+ {
+ hashCode = (hashCode * 59) + KeepDiacriticsOnCharacters.GetHashCode();
+ }
+ if (CustomRanking != null)
+ {
+ hashCode = (hashCode * 59) + CustomRanking.GetHashCode();
+ }
if (AttributesToRetrieve != null)
{
hashCode = (hashCode * 59) + AttributesToRetrieve.GetHashCode();
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/BrowseParamsObject.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/BrowseParamsObject.cs
index a4a0ce9b2f..70522f0de9 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/BrowseParamsObject.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/BrowseParamsObject.cs
@@ -278,13 +278,6 @@ public BrowseParamsObject()
[JsonPropertyName("ranking")]
public List Ranking { get; set; }
- ///
- /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
- ///
- /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
- [JsonPropertyName("customRanking")]
- public List CustomRanking { get; set; }
-
///
/// Relevancy threshold below which less relevant results aren't included in the results. You can only set `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas). Use this setting to strike a balance between the relevance and number of returned results.
///
@@ -387,13 +380,6 @@ public BrowseParamsObject()
[JsonPropertyName("removeStopWords")]
public RemoveStopWords RemoveStopWords { get; set; }
- ///
- /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
- ///
- /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
- [JsonPropertyName("keepDiacriticsOnCharacters")]
- public string KeepDiacriticsOnCharacters { get; set; }
-
///
/// Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` settings. This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) languages. To support this, you must place the CJK language **first**. **You should always specify a query language.** If you don't specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/), or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/).
///
@@ -578,7 +564,6 @@ public override string ToString()
sb.Append(" EnableABTest: ").Append(EnableABTest).Append("\n");
sb.Append(" AttributesToRetrieve: ").Append(AttributesToRetrieve).Append("\n");
sb.Append(" Ranking: ").Append(Ranking).Append("\n");
- sb.Append(" CustomRanking: ").Append(CustomRanking).Append("\n");
sb.Append(" RelevancyStrictness: ").Append(RelevancyStrictness).Append("\n");
sb.Append(" AttributesToHighlight: ").Append(AttributesToHighlight).Append("\n");
sb.Append(" AttributesToSnippet: ").Append(AttributesToSnippet).Append("\n");
@@ -594,7 +579,6 @@ public override string ToString()
sb.Append(" DisableTypoToleranceOnAttributes: ").Append(DisableTypoToleranceOnAttributes).Append("\n");
sb.Append(" IgnorePlurals: ").Append(IgnorePlurals).Append("\n");
sb.Append(" RemoveStopWords: ").Append(RemoveStopWords).Append("\n");
- sb.Append(" KeepDiacriticsOnCharacters: ").Append(KeepDiacriticsOnCharacters).Append("\n");
sb.Append(" QueryLanguages: ").Append(QueryLanguages).Append("\n");
sb.Append(" DecompoundQuery: ").Append(DecompoundQuery).Append("\n");
sb.Append(" EnableRules: ").Append(EnableRules).Append("\n");
@@ -680,7 +664,6 @@ public override bool Equals(object obj)
(EnableABTest == input.EnableABTest || EnableABTest.Equals(input.EnableABTest)) &&
(AttributesToRetrieve == input.AttributesToRetrieve || AttributesToRetrieve != null && input.AttributesToRetrieve != null && AttributesToRetrieve.SequenceEqual(input.AttributesToRetrieve)) &&
(Ranking == input.Ranking || Ranking != null && input.Ranking != null && Ranking.SequenceEqual(input.Ranking)) &&
- (CustomRanking == input.CustomRanking || CustomRanking != null && input.CustomRanking != null && CustomRanking.SequenceEqual(input.CustomRanking)) &&
(RelevancyStrictness == input.RelevancyStrictness || RelevancyStrictness.Equals(input.RelevancyStrictness)) &&
(AttributesToHighlight == input.AttributesToHighlight || AttributesToHighlight != null && input.AttributesToHighlight != null && AttributesToHighlight.SequenceEqual(input.AttributesToHighlight)) &&
(AttributesToSnippet == input.AttributesToSnippet || AttributesToSnippet != null && input.AttributesToSnippet != null && AttributesToSnippet.SequenceEqual(input.AttributesToSnippet)) &&
@@ -696,7 +679,6 @@ public override bool Equals(object obj)
(DisableTypoToleranceOnAttributes == input.DisableTypoToleranceOnAttributes || DisableTypoToleranceOnAttributes != null && input.DisableTypoToleranceOnAttributes != null && DisableTypoToleranceOnAttributes.SequenceEqual(input.DisableTypoToleranceOnAttributes)) &&
(IgnorePlurals == input.IgnorePlurals || (IgnorePlurals != null && IgnorePlurals.Equals(input.IgnorePlurals))) &&
(RemoveStopWords == input.RemoveStopWords || (RemoveStopWords != null && RemoveStopWords.Equals(input.RemoveStopWords))) &&
- (KeepDiacriticsOnCharacters == input.KeepDiacriticsOnCharacters || (KeepDiacriticsOnCharacters != null && KeepDiacriticsOnCharacters.Equals(input.KeepDiacriticsOnCharacters))) &&
(QueryLanguages == input.QueryLanguages || QueryLanguages != null && input.QueryLanguages != null && QueryLanguages.SequenceEqual(input.QueryLanguages)) &&
(DecompoundQuery == input.DecompoundQuery || DecompoundQuery.Equals(input.DecompoundQuery)) &&
(EnableRules == input.EnableRules || EnableRules.Equals(input.EnableRules)) &&
@@ -827,10 +809,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + Ranking.GetHashCode();
}
- if (CustomRanking != null)
- {
- hashCode = (hashCode * 59) + CustomRanking.GetHashCode();
- }
hashCode = (hashCode * 59) + RelevancyStrictness.GetHashCode();
if (AttributesToHighlight != null)
{
@@ -873,10 +851,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + RemoveStopWords.GetHashCode();
}
- if (KeepDiacriticsOnCharacters != null)
- {
- hashCode = (hashCode * 59) + KeepDiacriticsOnCharacters.GetHashCode();
- }
if (QueryLanguages != null)
{
hashCode = (hashCode * 59) + QueryLanguages.GetHashCode();
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/ConsequenceParams.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/ConsequenceParams.cs
index 149a6acc53..494416cc83 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/ConsequenceParams.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/ConsequenceParams.cs
@@ -271,13 +271,6 @@ public ConsequenceParams()
[JsonPropertyName("ranking")]
public List Ranking { get; set; }
- ///
- /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
- ///
- /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
- [JsonPropertyName("customRanking")]
- public List CustomRanking { get; set; }
-
///
/// Relevancy threshold below which less relevant results aren't included in the results. You can only set `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas). Use this setting to strike a balance between the relevance and number of returned results.
///
@@ -380,13 +373,6 @@ public ConsequenceParams()
[JsonPropertyName("removeStopWords")]
public RemoveStopWords RemoveStopWords { get; set; }
- ///
- /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
- ///
- /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
- [JsonPropertyName("keepDiacriticsOnCharacters")]
- public string KeepDiacriticsOnCharacters { get; set; }
-
///
/// Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` settings. This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) languages. To support this, you must place the CJK language **first**. **You should always specify a query language.** If you don't specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/), or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/).
///
@@ -581,7 +567,6 @@ public override string ToString()
sb.Append(" EnableABTest: ").Append(EnableABTest).Append("\n");
sb.Append(" AttributesToRetrieve: ").Append(AttributesToRetrieve).Append("\n");
sb.Append(" Ranking: ").Append(Ranking).Append("\n");
- sb.Append(" CustomRanking: ").Append(CustomRanking).Append("\n");
sb.Append(" RelevancyStrictness: ").Append(RelevancyStrictness).Append("\n");
sb.Append(" AttributesToHighlight: ").Append(AttributesToHighlight).Append("\n");
sb.Append(" AttributesToSnippet: ").Append(AttributesToSnippet).Append("\n");
@@ -597,7 +582,6 @@ public override string ToString()
sb.Append(" DisableTypoToleranceOnAttributes: ").Append(DisableTypoToleranceOnAttributes).Append("\n");
sb.Append(" IgnorePlurals: ").Append(IgnorePlurals).Append("\n");
sb.Append(" RemoveStopWords: ").Append(RemoveStopWords).Append("\n");
- sb.Append(" KeepDiacriticsOnCharacters: ").Append(KeepDiacriticsOnCharacters).Append("\n");
sb.Append(" QueryLanguages: ").Append(QueryLanguages).Append("\n");
sb.Append(" DecompoundQuery: ").Append(DecompoundQuery).Append("\n");
sb.Append(" EnableRules: ").Append(EnableRules).Append("\n");
@@ -684,7 +668,6 @@ public override bool Equals(object obj)
(EnableABTest == input.EnableABTest || EnableABTest.Equals(input.EnableABTest)) &&
(AttributesToRetrieve == input.AttributesToRetrieve || AttributesToRetrieve != null && input.AttributesToRetrieve != null && AttributesToRetrieve.SequenceEqual(input.AttributesToRetrieve)) &&
(Ranking == input.Ranking || Ranking != null && input.Ranking != null && Ranking.SequenceEqual(input.Ranking)) &&
- (CustomRanking == input.CustomRanking || CustomRanking != null && input.CustomRanking != null && CustomRanking.SequenceEqual(input.CustomRanking)) &&
(RelevancyStrictness == input.RelevancyStrictness || RelevancyStrictness.Equals(input.RelevancyStrictness)) &&
(AttributesToHighlight == input.AttributesToHighlight || AttributesToHighlight != null && input.AttributesToHighlight != null && AttributesToHighlight.SequenceEqual(input.AttributesToHighlight)) &&
(AttributesToSnippet == input.AttributesToSnippet || AttributesToSnippet != null && input.AttributesToSnippet != null && AttributesToSnippet.SequenceEqual(input.AttributesToSnippet)) &&
@@ -700,7 +683,6 @@ public override bool Equals(object obj)
(DisableTypoToleranceOnAttributes == input.DisableTypoToleranceOnAttributes || DisableTypoToleranceOnAttributes != null && input.DisableTypoToleranceOnAttributes != null && DisableTypoToleranceOnAttributes.SequenceEqual(input.DisableTypoToleranceOnAttributes)) &&
(IgnorePlurals == input.IgnorePlurals || (IgnorePlurals != null && IgnorePlurals.Equals(input.IgnorePlurals))) &&
(RemoveStopWords == input.RemoveStopWords || (RemoveStopWords != null && RemoveStopWords.Equals(input.RemoveStopWords))) &&
- (KeepDiacriticsOnCharacters == input.KeepDiacriticsOnCharacters || (KeepDiacriticsOnCharacters != null && KeepDiacriticsOnCharacters.Equals(input.KeepDiacriticsOnCharacters))) &&
(QueryLanguages == input.QueryLanguages || QueryLanguages != null && input.QueryLanguages != null && QueryLanguages.SequenceEqual(input.QueryLanguages)) &&
(DecompoundQuery == input.DecompoundQuery || DecompoundQuery.Equals(input.DecompoundQuery)) &&
(EnableRules == input.EnableRules || EnableRules.Equals(input.EnableRules)) &&
@@ -829,10 +811,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + Ranking.GetHashCode();
}
- if (CustomRanking != null)
- {
- hashCode = (hashCode * 59) + CustomRanking.GetHashCode();
- }
hashCode = (hashCode * 59) + RelevancyStrictness.GetHashCode();
if (AttributesToHighlight != null)
{
@@ -875,10 +853,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + RemoveStopWords.GetHashCode();
}
- if (KeepDiacriticsOnCharacters != null)
- {
- hashCode = (hashCode * 59) + KeepDiacriticsOnCharacters.GetHashCode();
- }
if (QueryLanguages != null)
{
hashCode = (hashCode * 59) + QueryLanguages.GetHashCode();
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/IndexSettings.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/IndexSettings.cs
index e540362c16..fb32091432 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/IndexSettings.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/IndexSettings.cs
@@ -173,6 +173,20 @@ public IndexSettings()
[JsonPropertyName("maxFacetHits")]
public int? MaxFacetHits { get; set; }
+ ///
+ /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
+ ///
+ /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
+ [JsonPropertyName("keepDiacriticsOnCharacters")]
+ public string KeepDiacriticsOnCharacters { get; set; }
+
+ ///
+ /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
+ ///
+ /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
+ [JsonPropertyName("customRanking")]
+ public List CustomRanking { get; set; }
+
///
/// Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. Attribute names are case-sensitive. - `*` retrieves all attributes, except attributes included in the `customRanking` and `unretrievableAttributes` settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the `*`: `[\"*\", \"-ATTRIBUTE\"]`. - The `objectID` attribute is always included.
///
@@ -187,13 +201,6 @@ public IndexSettings()
[JsonPropertyName("ranking")]
public List Ranking { get; set; }
- ///
- /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
- ///
- /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
- [JsonPropertyName("customRanking")]
- public List CustomRanking { get; set; }
-
///
/// Relevancy threshold below which less relevant results aren't included in the results. You can only set `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas). Use this setting to strike a balance between the relevance and number of returned results.
///
@@ -296,13 +303,6 @@ public IndexSettings()
[JsonPropertyName("removeStopWords")]
public RemoveStopWords RemoveStopWords { get; set; }
- ///
- /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
- ///
- /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
- [JsonPropertyName("keepDiacriticsOnCharacters")]
- public string KeepDiacriticsOnCharacters { get; set; }
-
///
/// Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` settings. This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) languages. To support this, you must place the CJK language **first**. **You should always specify a query language.** If you don't specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/), or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/).
///
@@ -464,9 +464,10 @@ public override string ToString()
sb.Append(" CustomNormalization: ").Append(CustomNormalization).Append("\n");
sb.Append(" AttributeForDistinct: ").Append(AttributeForDistinct).Append("\n");
sb.Append(" MaxFacetHits: ").Append(MaxFacetHits).Append("\n");
+ sb.Append(" KeepDiacriticsOnCharacters: ").Append(KeepDiacriticsOnCharacters).Append("\n");
+ sb.Append(" CustomRanking: ").Append(CustomRanking).Append("\n");
sb.Append(" AttributesToRetrieve: ").Append(AttributesToRetrieve).Append("\n");
sb.Append(" Ranking: ").Append(Ranking).Append("\n");
- sb.Append(" CustomRanking: ").Append(CustomRanking).Append("\n");
sb.Append(" RelevancyStrictness: ").Append(RelevancyStrictness).Append("\n");
sb.Append(" AttributesToHighlight: ").Append(AttributesToHighlight).Append("\n");
sb.Append(" AttributesToSnippet: ").Append(AttributesToSnippet).Append("\n");
@@ -482,7 +483,6 @@ public override string ToString()
sb.Append(" DisableTypoToleranceOnAttributes: ").Append(DisableTypoToleranceOnAttributes).Append("\n");
sb.Append(" IgnorePlurals: ").Append(IgnorePlurals).Append("\n");
sb.Append(" RemoveStopWords: ").Append(RemoveStopWords).Append("\n");
- sb.Append(" KeepDiacriticsOnCharacters: ").Append(KeepDiacriticsOnCharacters).Append("\n");
sb.Append(" QueryLanguages: ").Append(QueryLanguages).Append("\n");
sb.Append(" DecompoundQuery: ").Append(DecompoundQuery).Append("\n");
sb.Append(" EnableRules: ").Append(EnableRules).Append("\n");
@@ -551,9 +551,10 @@ public override bool Equals(object obj)
(CustomNormalization == input.CustomNormalization || CustomNormalization != null && input.CustomNormalization != null && CustomNormalization.SequenceEqual(input.CustomNormalization)) &&
(AttributeForDistinct == input.AttributeForDistinct || (AttributeForDistinct != null && AttributeForDistinct.Equals(input.AttributeForDistinct))) &&
(MaxFacetHits == input.MaxFacetHits || MaxFacetHits.Equals(input.MaxFacetHits)) &&
+ (KeepDiacriticsOnCharacters == input.KeepDiacriticsOnCharacters || (KeepDiacriticsOnCharacters != null && KeepDiacriticsOnCharacters.Equals(input.KeepDiacriticsOnCharacters))) &&
+ (CustomRanking == input.CustomRanking || CustomRanking != null && input.CustomRanking != null && CustomRanking.SequenceEqual(input.CustomRanking)) &&
(AttributesToRetrieve == input.AttributesToRetrieve || AttributesToRetrieve != null && input.AttributesToRetrieve != null && AttributesToRetrieve.SequenceEqual(input.AttributesToRetrieve)) &&
(Ranking == input.Ranking || Ranking != null && input.Ranking != null && Ranking.SequenceEqual(input.Ranking)) &&
- (CustomRanking == input.CustomRanking || CustomRanking != null && input.CustomRanking != null && CustomRanking.SequenceEqual(input.CustomRanking)) &&
(RelevancyStrictness == input.RelevancyStrictness || RelevancyStrictness.Equals(input.RelevancyStrictness)) &&
(AttributesToHighlight == input.AttributesToHighlight || AttributesToHighlight != null && input.AttributesToHighlight != null && AttributesToHighlight.SequenceEqual(input.AttributesToHighlight)) &&
(AttributesToSnippet == input.AttributesToSnippet || AttributesToSnippet != null && input.AttributesToSnippet != null && AttributesToSnippet.SequenceEqual(input.AttributesToSnippet)) &&
@@ -569,7 +570,6 @@ public override bool Equals(object obj)
(DisableTypoToleranceOnAttributes == input.DisableTypoToleranceOnAttributes || DisableTypoToleranceOnAttributes != null && input.DisableTypoToleranceOnAttributes != null && DisableTypoToleranceOnAttributes.SequenceEqual(input.DisableTypoToleranceOnAttributes)) &&
(IgnorePlurals == input.IgnorePlurals || (IgnorePlurals != null && IgnorePlurals.Equals(input.IgnorePlurals))) &&
(RemoveStopWords == input.RemoveStopWords || (RemoveStopWords != null && RemoveStopWords.Equals(input.RemoveStopWords))) &&
- (KeepDiacriticsOnCharacters == input.KeepDiacriticsOnCharacters || (KeepDiacriticsOnCharacters != null && KeepDiacriticsOnCharacters.Equals(input.KeepDiacriticsOnCharacters))) &&
(QueryLanguages == input.QueryLanguages || QueryLanguages != null && input.QueryLanguages != null && QueryLanguages.SequenceEqual(input.QueryLanguages)) &&
(DecompoundQuery == input.DecompoundQuery || DecompoundQuery.Equals(input.DecompoundQuery)) &&
(EnableRules == input.EnableRules || EnableRules.Equals(input.EnableRules)) &&
@@ -668,6 +668,14 @@ public override int GetHashCode()
hashCode = (hashCode * 59) + AttributeForDistinct.GetHashCode();
}
hashCode = (hashCode * 59) + MaxFacetHits.GetHashCode();
+ if (KeepDiacriticsOnCharacters != null)
+ {
+ hashCode = (hashCode * 59) + KeepDiacriticsOnCharacters.GetHashCode();
+ }
+ if (CustomRanking != null)
+ {
+ hashCode = (hashCode * 59) + CustomRanking.GetHashCode();
+ }
if (AttributesToRetrieve != null)
{
hashCode = (hashCode * 59) + AttributesToRetrieve.GetHashCode();
@@ -676,10 +684,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + Ranking.GetHashCode();
}
- if (CustomRanking != null)
- {
- hashCode = (hashCode * 59) + CustomRanking.GetHashCode();
- }
hashCode = (hashCode * 59) + RelevancyStrictness.GetHashCode();
if (AttributesToHighlight != null)
{
@@ -722,10 +726,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + RemoveStopWords.GetHashCode();
}
- if (KeepDiacriticsOnCharacters != null)
- {
- hashCode = (hashCode * 59) + KeepDiacriticsOnCharacters.GetHashCode();
- }
if (QueryLanguages != null)
{
hashCode = (hashCode * 59) + QueryLanguages.GetHashCode();
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/SearchForFacets.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/SearchForFacets.cs
index e67b69f6b8..0fa0050ad6 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/SearchForFacets.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/SearchForFacets.cs
@@ -302,13 +302,6 @@ public SearchForFacets(string facet, string indexName, SearchTypeFacet? type)
[JsonPropertyName("ranking")]
public List Ranking { get; set; }
- ///
- /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
- ///
- /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
- [JsonPropertyName("customRanking")]
- public List CustomRanking { get; set; }
-
///
/// Relevancy threshold below which less relevant results aren't included in the results. You can only set `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas). Use this setting to strike a balance between the relevance and number of returned results.
///
@@ -411,13 +404,6 @@ public SearchForFacets(string facet, string indexName, SearchTypeFacet? type)
[JsonPropertyName("removeStopWords")]
public RemoveStopWords RemoveStopWords { get; set; }
- ///
- /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
- ///
- /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
- [JsonPropertyName("keepDiacriticsOnCharacters")]
- public string KeepDiacriticsOnCharacters { get; set; }
-
///
/// Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` settings. This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) languages. To support this, you must place the CJK language **first**. **You should always specify a query language.** If you don't specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/), or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/).
///
@@ -624,7 +610,6 @@ public override string ToString()
sb.Append(" EnableABTest: ").Append(EnableABTest).Append("\n");
sb.Append(" AttributesToRetrieve: ").Append(AttributesToRetrieve).Append("\n");
sb.Append(" Ranking: ").Append(Ranking).Append("\n");
- sb.Append(" CustomRanking: ").Append(CustomRanking).Append("\n");
sb.Append(" RelevancyStrictness: ").Append(RelevancyStrictness).Append("\n");
sb.Append(" AttributesToHighlight: ").Append(AttributesToHighlight).Append("\n");
sb.Append(" AttributesToSnippet: ").Append(AttributesToSnippet).Append("\n");
@@ -640,7 +625,6 @@ public override string ToString()
sb.Append(" DisableTypoToleranceOnAttributes: ").Append(DisableTypoToleranceOnAttributes).Append("\n");
sb.Append(" IgnorePlurals: ").Append(IgnorePlurals).Append("\n");
sb.Append(" RemoveStopWords: ").Append(RemoveStopWords).Append("\n");
- sb.Append(" KeepDiacriticsOnCharacters: ").Append(KeepDiacriticsOnCharacters).Append("\n");
sb.Append(" QueryLanguages: ").Append(QueryLanguages).Append("\n");
sb.Append(" DecompoundQuery: ").Append(DecompoundQuery).Append("\n");
sb.Append(" EnableRules: ").Append(EnableRules).Append("\n");
@@ -731,7 +715,6 @@ public override bool Equals(object obj)
(EnableABTest == input.EnableABTest || EnableABTest.Equals(input.EnableABTest)) &&
(AttributesToRetrieve == input.AttributesToRetrieve || AttributesToRetrieve != null && input.AttributesToRetrieve != null && AttributesToRetrieve.SequenceEqual(input.AttributesToRetrieve)) &&
(Ranking == input.Ranking || Ranking != null && input.Ranking != null && Ranking.SequenceEqual(input.Ranking)) &&
- (CustomRanking == input.CustomRanking || CustomRanking != null && input.CustomRanking != null && CustomRanking.SequenceEqual(input.CustomRanking)) &&
(RelevancyStrictness == input.RelevancyStrictness || RelevancyStrictness.Equals(input.RelevancyStrictness)) &&
(AttributesToHighlight == input.AttributesToHighlight || AttributesToHighlight != null && input.AttributesToHighlight != null && AttributesToHighlight.SequenceEqual(input.AttributesToHighlight)) &&
(AttributesToSnippet == input.AttributesToSnippet || AttributesToSnippet != null && input.AttributesToSnippet != null && AttributesToSnippet.SequenceEqual(input.AttributesToSnippet)) &&
@@ -747,7 +730,6 @@ public override bool Equals(object obj)
(DisableTypoToleranceOnAttributes == input.DisableTypoToleranceOnAttributes || DisableTypoToleranceOnAttributes != null && input.DisableTypoToleranceOnAttributes != null && DisableTypoToleranceOnAttributes.SequenceEqual(input.DisableTypoToleranceOnAttributes)) &&
(IgnorePlurals == input.IgnorePlurals || (IgnorePlurals != null && IgnorePlurals.Equals(input.IgnorePlurals))) &&
(RemoveStopWords == input.RemoveStopWords || (RemoveStopWords != null && RemoveStopWords.Equals(input.RemoveStopWords))) &&
- (KeepDiacriticsOnCharacters == input.KeepDiacriticsOnCharacters || (KeepDiacriticsOnCharacters != null && KeepDiacriticsOnCharacters.Equals(input.KeepDiacriticsOnCharacters))) &&
(QueryLanguages == input.QueryLanguages || QueryLanguages != null && input.QueryLanguages != null && QueryLanguages.SequenceEqual(input.QueryLanguages)) &&
(DecompoundQuery == input.DecompoundQuery || DecompoundQuery.Equals(input.DecompoundQuery)) &&
(EnableRules == input.EnableRules || EnableRules.Equals(input.EnableRules)) &&
@@ -886,10 +868,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + Ranking.GetHashCode();
}
- if (CustomRanking != null)
- {
- hashCode = (hashCode * 59) + CustomRanking.GetHashCode();
- }
hashCode = (hashCode * 59) + RelevancyStrictness.GetHashCode();
if (AttributesToHighlight != null)
{
@@ -932,10 +910,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + RemoveStopWords.GetHashCode();
}
- if (KeepDiacriticsOnCharacters != null)
- {
- hashCode = (hashCode * 59) + KeepDiacriticsOnCharacters.GetHashCode();
- }
if (QueryLanguages != null)
{
hashCode = (hashCode * 59) + QueryLanguages.GetHashCode();
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/SearchForHits.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/SearchForHits.cs
index 87cb18b5e4..b1e67410e8 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/SearchForHits.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/SearchForHits.cs
@@ -298,13 +298,6 @@ public SearchForHits(string indexName)
[JsonPropertyName("ranking")]
public List Ranking { get; set; }
- ///
- /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
- ///
- /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
- [JsonPropertyName("customRanking")]
- public List CustomRanking { get; set; }
-
///
/// Relevancy threshold below which less relevant results aren't included in the results. You can only set `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas). Use this setting to strike a balance between the relevance and number of returned results.
///
@@ -407,13 +400,6 @@ public SearchForHits(string indexName)
[JsonPropertyName("removeStopWords")]
public RemoveStopWords RemoveStopWords { get; set; }
- ///
- /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
- ///
- /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
- [JsonPropertyName("keepDiacriticsOnCharacters")]
- public string KeepDiacriticsOnCharacters { get; set; }
-
///
/// Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` settings. This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) languages. To support this, you must place the CJK language **first**. **You should always specify a query language.** If you don't specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/), or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/).
///
@@ -599,7 +585,6 @@ public override string ToString()
sb.Append(" EnableABTest: ").Append(EnableABTest).Append("\n");
sb.Append(" AttributesToRetrieve: ").Append(AttributesToRetrieve).Append("\n");
sb.Append(" Ranking: ").Append(Ranking).Append("\n");
- sb.Append(" CustomRanking: ").Append(CustomRanking).Append("\n");
sb.Append(" RelevancyStrictness: ").Append(RelevancyStrictness).Append("\n");
sb.Append(" AttributesToHighlight: ").Append(AttributesToHighlight).Append("\n");
sb.Append(" AttributesToSnippet: ").Append(AttributesToSnippet).Append("\n");
@@ -615,7 +600,6 @@ public override string ToString()
sb.Append(" DisableTypoToleranceOnAttributes: ").Append(DisableTypoToleranceOnAttributes).Append("\n");
sb.Append(" IgnorePlurals: ").Append(IgnorePlurals).Append("\n");
sb.Append(" RemoveStopWords: ").Append(RemoveStopWords).Append("\n");
- sb.Append(" KeepDiacriticsOnCharacters: ").Append(KeepDiacriticsOnCharacters).Append("\n");
sb.Append(" QueryLanguages: ").Append(QueryLanguages).Append("\n");
sb.Append(" DecompoundQuery: ").Append(DecompoundQuery).Append("\n");
sb.Append(" EnableRules: ").Append(EnableRules).Append("\n");
@@ -703,7 +687,6 @@ public override bool Equals(object obj)
(EnableABTest == input.EnableABTest || EnableABTest.Equals(input.EnableABTest)) &&
(AttributesToRetrieve == input.AttributesToRetrieve || AttributesToRetrieve != null && input.AttributesToRetrieve != null && AttributesToRetrieve.SequenceEqual(input.AttributesToRetrieve)) &&
(Ranking == input.Ranking || Ranking != null && input.Ranking != null && Ranking.SequenceEqual(input.Ranking)) &&
- (CustomRanking == input.CustomRanking || CustomRanking != null && input.CustomRanking != null && CustomRanking.SequenceEqual(input.CustomRanking)) &&
(RelevancyStrictness == input.RelevancyStrictness || RelevancyStrictness.Equals(input.RelevancyStrictness)) &&
(AttributesToHighlight == input.AttributesToHighlight || AttributesToHighlight != null && input.AttributesToHighlight != null && AttributesToHighlight.SequenceEqual(input.AttributesToHighlight)) &&
(AttributesToSnippet == input.AttributesToSnippet || AttributesToSnippet != null && input.AttributesToSnippet != null && AttributesToSnippet.SequenceEqual(input.AttributesToSnippet)) &&
@@ -719,7 +702,6 @@ public override bool Equals(object obj)
(DisableTypoToleranceOnAttributes == input.DisableTypoToleranceOnAttributes || DisableTypoToleranceOnAttributes != null && input.DisableTypoToleranceOnAttributes != null && DisableTypoToleranceOnAttributes.SequenceEqual(input.DisableTypoToleranceOnAttributes)) &&
(IgnorePlurals == input.IgnorePlurals || (IgnorePlurals != null && IgnorePlurals.Equals(input.IgnorePlurals))) &&
(RemoveStopWords == input.RemoveStopWords || (RemoveStopWords != null && RemoveStopWords.Equals(input.RemoveStopWords))) &&
- (KeepDiacriticsOnCharacters == input.KeepDiacriticsOnCharacters || (KeepDiacriticsOnCharacters != null && KeepDiacriticsOnCharacters.Equals(input.KeepDiacriticsOnCharacters))) &&
(QueryLanguages == input.QueryLanguages || QueryLanguages != null && input.QueryLanguages != null && QueryLanguages.SequenceEqual(input.QueryLanguages)) &&
(DecompoundQuery == input.DecompoundQuery || DecompoundQuery.Equals(input.DecompoundQuery)) &&
(EnableRules == input.EnableRules || EnableRules.Equals(input.EnableRules)) &&
@@ -855,10 +837,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + Ranking.GetHashCode();
}
- if (CustomRanking != null)
- {
- hashCode = (hashCode * 59) + CustomRanking.GetHashCode();
- }
hashCode = (hashCode * 59) + RelevancyStrictness.GetHashCode();
if (AttributesToHighlight != null)
{
@@ -901,10 +879,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + RemoveStopWords.GetHashCode();
}
- if (KeepDiacriticsOnCharacters != null)
- {
- hashCode = (hashCode * 59) + KeepDiacriticsOnCharacters.GetHashCode();
- }
if (QueryLanguages != null)
{
hashCode = (hashCode * 59) + QueryLanguages.GetHashCode();
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/SearchParamsObject.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/SearchParamsObject.cs
index af0516df5b..b3128629d0 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/SearchParamsObject.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/SearchParamsObject.cs
@@ -278,13 +278,6 @@ public SearchParamsObject()
[JsonPropertyName("ranking")]
public List Ranking { get; set; }
- ///
- /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
- ///
- /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
- [JsonPropertyName("customRanking")]
- public List CustomRanking { get; set; }
-
///
/// Relevancy threshold below which less relevant results aren't included in the results. You can only set `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas). Use this setting to strike a balance between the relevance and number of returned results.
///
@@ -387,13 +380,6 @@ public SearchParamsObject()
[JsonPropertyName("removeStopWords")]
public RemoveStopWords RemoveStopWords { get; set; }
- ///
- /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
- ///
- /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
- [JsonPropertyName("keepDiacriticsOnCharacters")]
- public string KeepDiacriticsOnCharacters { get; set; }
-
///
/// Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` settings. This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) languages. To support this, you must place the CJK language **first**. **You should always specify a query language.** If you don't specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/), or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/).
///
@@ -571,7 +557,6 @@ public override string ToString()
sb.Append(" EnableABTest: ").Append(EnableABTest).Append("\n");
sb.Append(" AttributesToRetrieve: ").Append(AttributesToRetrieve).Append("\n");
sb.Append(" Ranking: ").Append(Ranking).Append("\n");
- sb.Append(" CustomRanking: ").Append(CustomRanking).Append("\n");
sb.Append(" RelevancyStrictness: ").Append(RelevancyStrictness).Append("\n");
sb.Append(" AttributesToHighlight: ").Append(AttributesToHighlight).Append("\n");
sb.Append(" AttributesToSnippet: ").Append(AttributesToSnippet).Append("\n");
@@ -587,7 +572,6 @@ public override string ToString()
sb.Append(" DisableTypoToleranceOnAttributes: ").Append(DisableTypoToleranceOnAttributes).Append("\n");
sb.Append(" IgnorePlurals: ").Append(IgnorePlurals).Append("\n");
sb.Append(" RemoveStopWords: ").Append(RemoveStopWords).Append("\n");
- sb.Append(" KeepDiacriticsOnCharacters: ").Append(KeepDiacriticsOnCharacters).Append("\n");
sb.Append(" QueryLanguages: ").Append(QueryLanguages).Append("\n");
sb.Append(" DecompoundQuery: ").Append(DecompoundQuery).Append("\n");
sb.Append(" EnableRules: ").Append(EnableRules).Append("\n");
@@ -672,7 +656,6 @@ public override bool Equals(object obj)
(EnableABTest == input.EnableABTest || EnableABTest.Equals(input.EnableABTest)) &&
(AttributesToRetrieve == input.AttributesToRetrieve || AttributesToRetrieve != null && input.AttributesToRetrieve != null && AttributesToRetrieve.SequenceEqual(input.AttributesToRetrieve)) &&
(Ranking == input.Ranking || Ranking != null && input.Ranking != null && Ranking.SequenceEqual(input.Ranking)) &&
- (CustomRanking == input.CustomRanking || CustomRanking != null && input.CustomRanking != null && CustomRanking.SequenceEqual(input.CustomRanking)) &&
(RelevancyStrictness == input.RelevancyStrictness || RelevancyStrictness.Equals(input.RelevancyStrictness)) &&
(AttributesToHighlight == input.AttributesToHighlight || AttributesToHighlight != null && input.AttributesToHighlight != null && AttributesToHighlight.SequenceEqual(input.AttributesToHighlight)) &&
(AttributesToSnippet == input.AttributesToSnippet || AttributesToSnippet != null && input.AttributesToSnippet != null && AttributesToSnippet.SequenceEqual(input.AttributesToSnippet)) &&
@@ -688,7 +671,6 @@ public override bool Equals(object obj)
(DisableTypoToleranceOnAttributes == input.DisableTypoToleranceOnAttributes || DisableTypoToleranceOnAttributes != null && input.DisableTypoToleranceOnAttributes != null && DisableTypoToleranceOnAttributes.SequenceEqual(input.DisableTypoToleranceOnAttributes)) &&
(IgnorePlurals == input.IgnorePlurals || (IgnorePlurals != null && IgnorePlurals.Equals(input.IgnorePlurals))) &&
(RemoveStopWords == input.RemoveStopWords || (RemoveStopWords != null && RemoveStopWords.Equals(input.RemoveStopWords))) &&
- (KeepDiacriticsOnCharacters == input.KeepDiacriticsOnCharacters || (KeepDiacriticsOnCharacters != null && KeepDiacriticsOnCharacters.Equals(input.KeepDiacriticsOnCharacters))) &&
(QueryLanguages == input.QueryLanguages || QueryLanguages != null && input.QueryLanguages != null && QueryLanguages.SequenceEqual(input.QueryLanguages)) &&
(DecompoundQuery == input.DecompoundQuery || DecompoundQuery.Equals(input.DecompoundQuery)) &&
(EnableRules == input.EnableRules || EnableRules.Equals(input.EnableRules)) &&
@@ -818,10 +800,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + Ranking.GetHashCode();
}
- if (CustomRanking != null)
- {
- hashCode = (hashCode * 59) + CustomRanking.GetHashCode();
- }
hashCode = (hashCode * 59) + RelevancyStrictness.GetHashCode();
if (AttributesToHighlight != null)
{
@@ -864,10 +842,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + RemoveStopWords.GetHashCode();
}
- if (KeepDiacriticsOnCharacters != null)
- {
- hashCode = (hashCode * 59) + KeepDiacriticsOnCharacters.GetHashCode();
- }
if (QueryLanguages != null)
{
hashCode = (hashCode * 59) + QueryLanguages.GetHashCode();
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/SettingsResponse.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/SettingsResponse.cs
index 2102170c97..346de52871 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/SettingsResponse.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/SettingsResponse.cs
@@ -173,6 +173,20 @@ public SettingsResponse()
[JsonPropertyName("maxFacetHits")]
public int? MaxFacetHits { get; set; }
+ ///
+ /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
+ ///
+ /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
+ [JsonPropertyName("keepDiacriticsOnCharacters")]
+ public string KeepDiacriticsOnCharacters { get; set; }
+
+ ///
+ /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
+ ///
+ /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
+ [JsonPropertyName("customRanking")]
+ public List CustomRanking { get; set; }
+
///
/// Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. Attribute names are case-sensitive. - `*` retrieves all attributes, except attributes included in the `customRanking` and `unretrievableAttributes` settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the `*`: `[\"*\", \"-ATTRIBUTE\"]`. - The `objectID` attribute is always included.
///
@@ -187,13 +201,6 @@ public SettingsResponse()
[JsonPropertyName("ranking")]
public List Ranking { get; set; }
- ///
- /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
- ///
- /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
- [JsonPropertyName("customRanking")]
- public List CustomRanking { get; set; }
-
///
/// Relevancy threshold below which less relevant results aren't included in the results. You can only set `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas). Use this setting to strike a balance between the relevance and number of returned results.
///
@@ -296,13 +303,6 @@ public SettingsResponse()
[JsonPropertyName("removeStopWords")]
public RemoveStopWords RemoveStopWords { get; set; }
- ///
- /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
- ///
- /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
- [JsonPropertyName("keepDiacriticsOnCharacters")]
- public string KeepDiacriticsOnCharacters { get; set; }
-
///
/// Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` settings. This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) languages. To support this, you must place the CJK language **first**. **You should always specify a query language.** If you don't specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/), or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/).
///
@@ -471,9 +471,10 @@ public override string ToString()
sb.Append(" CustomNormalization: ").Append(CustomNormalization).Append("\n");
sb.Append(" AttributeForDistinct: ").Append(AttributeForDistinct).Append("\n");
sb.Append(" MaxFacetHits: ").Append(MaxFacetHits).Append("\n");
+ sb.Append(" KeepDiacriticsOnCharacters: ").Append(KeepDiacriticsOnCharacters).Append("\n");
+ sb.Append(" CustomRanking: ").Append(CustomRanking).Append("\n");
sb.Append(" AttributesToRetrieve: ").Append(AttributesToRetrieve).Append("\n");
sb.Append(" Ranking: ").Append(Ranking).Append("\n");
- sb.Append(" CustomRanking: ").Append(CustomRanking).Append("\n");
sb.Append(" RelevancyStrictness: ").Append(RelevancyStrictness).Append("\n");
sb.Append(" AttributesToHighlight: ").Append(AttributesToHighlight).Append("\n");
sb.Append(" AttributesToSnippet: ").Append(AttributesToSnippet).Append("\n");
@@ -489,7 +490,6 @@ public override string ToString()
sb.Append(" DisableTypoToleranceOnAttributes: ").Append(DisableTypoToleranceOnAttributes).Append("\n");
sb.Append(" IgnorePlurals: ").Append(IgnorePlurals).Append("\n");
sb.Append(" RemoveStopWords: ").Append(RemoveStopWords).Append("\n");
- sb.Append(" KeepDiacriticsOnCharacters: ").Append(KeepDiacriticsOnCharacters).Append("\n");
sb.Append(" QueryLanguages: ").Append(QueryLanguages).Append("\n");
sb.Append(" DecompoundQuery: ").Append(DecompoundQuery).Append("\n");
sb.Append(" EnableRules: ").Append(EnableRules).Append("\n");
@@ -559,9 +559,10 @@ public override bool Equals(object obj)
(CustomNormalization == input.CustomNormalization || CustomNormalization != null && input.CustomNormalization != null && CustomNormalization.SequenceEqual(input.CustomNormalization)) &&
(AttributeForDistinct == input.AttributeForDistinct || (AttributeForDistinct != null && AttributeForDistinct.Equals(input.AttributeForDistinct))) &&
(MaxFacetHits == input.MaxFacetHits || MaxFacetHits.Equals(input.MaxFacetHits)) &&
+ (KeepDiacriticsOnCharacters == input.KeepDiacriticsOnCharacters || (KeepDiacriticsOnCharacters != null && KeepDiacriticsOnCharacters.Equals(input.KeepDiacriticsOnCharacters))) &&
+ (CustomRanking == input.CustomRanking || CustomRanking != null && input.CustomRanking != null && CustomRanking.SequenceEqual(input.CustomRanking)) &&
(AttributesToRetrieve == input.AttributesToRetrieve || AttributesToRetrieve != null && input.AttributesToRetrieve != null && AttributesToRetrieve.SequenceEqual(input.AttributesToRetrieve)) &&
(Ranking == input.Ranking || Ranking != null && input.Ranking != null && Ranking.SequenceEqual(input.Ranking)) &&
- (CustomRanking == input.CustomRanking || CustomRanking != null && input.CustomRanking != null && CustomRanking.SequenceEqual(input.CustomRanking)) &&
(RelevancyStrictness == input.RelevancyStrictness || RelevancyStrictness.Equals(input.RelevancyStrictness)) &&
(AttributesToHighlight == input.AttributesToHighlight || AttributesToHighlight != null && input.AttributesToHighlight != null && AttributesToHighlight.SequenceEqual(input.AttributesToHighlight)) &&
(AttributesToSnippet == input.AttributesToSnippet || AttributesToSnippet != null && input.AttributesToSnippet != null && AttributesToSnippet.SequenceEqual(input.AttributesToSnippet)) &&
@@ -577,7 +578,6 @@ public override bool Equals(object obj)
(DisableTypoToleranceOnAttributes == input.DisableTypoToleranceOnAttributes || DisableTypoToleranceOnAttributes != null && input.DisableTypoToleranceOnAttributes != null && DisableTypoToleranceOnAttributes.SequenceEqual(input.DisableTypoToleranceOnAttributes)) &&
(IgnorePlurals == input.IgnorePlurals || (IgnorePlurals != null && IgnorePlurals.Equals(input.IgnorePlurals))) &&
(RemoveStopWords == input.RemoveStopWords || (RemoveStopWords != null && RemoveStopWords.Equals(input.RemoveStopWords))) &&
- (KeepDiacriticsOnCharacters == input.KeepDiacriticsOnCharacters || (KeepDiacriticsOnCharacters != null && KeepDiacriticsOnCharacters.Equals(input.KeepDiacriticsOnCharacters))) &&
(QueryLanguages == input.QueryLanguages || QueryLanguages != null && input.QueryLanguages != null && QueryLanguages.SequenceEqual(input.QueryLanguages)) &&
(DecompoundQuery == input.DecompoundQuery || DecompoundQuery.Equals(input.DecompoundQuery)) &&
(EnableRules == input.EnableRules || EnableRules.Equals(input.EnableRules)) &&
@@ -677,6 +677,14 @@ public override int GetHashCode()
hashCode = (hashCode * 59) + AttributeForDistinct.GetHashCode();
}
hashCode = (hashCode * 59) + MaxFacetHits.GetHashCode();
+ if (KeepDiacriticsOnCharacters != null)
+ {
+ hashCode = (hashCode * 59) + KeepDiacriticsOnCharacters.GetHashCode();
+ }
+ if (CustomRanking != null)
+ {
+ hashCode = (hashCode * 59) + CustomRanking.GetHashCode();
+ }
if (AttributesToRetrieve != null)
{
hashCode = (hashCode * 59) + AttributesToRetrieve.GetHashCode();
@@ -685,10 +693,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + Ranking.GetHashCode();
}
- if (CustomRanking != null)
- {
- hashCode = (hashCode * 59) + CustomRanking.GetHashCode();
- }
hashCode = (hashCode * 59) + RelevancyStrictness.GetHashCode();
if (AttributesToHighlight != null)
{
@@ -731,10 +735,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + RemoveStopWords.GetHashCode();
}
- if (KeepDiacriticsOnCharacters != null)
- {
- hashCode = (hashCode * 59) + KeepDiacriticsOnCharacters.GetHashCode();
- }
if (QueryLanguages != null)
{
hashCode = (hashCode * 59) + QueryLanguages.GetHashCode();
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/base_index_settings.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/base_index_settings.dart
index 4e5c264df1..56610fd72e 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/base_index_settings.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/base_index_settings.dart
@@ -28,6 +28,8 @@ final class BaseIndexSettings {
this.customNormalization,
this.attributeForDistinct,
this.maxFacetHits,
+ this.keepDiacriticsOnCharacters,
+ this.customRanking,
});
/// Attributes used for [faceting](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/). Facets are attributes that let you categorize search results. They can be used for filtering search results. By default, no attribute is used for faceting. Attribute names are case-sensitive. **Modifiers** - `filterOnly(\"ATTRIBUTE\")`. Allows the attribute to be used as a filter but doesn't evaluate the facet values. - `searchable(\"ATTRIBUTE\")`. Allows searching for facet values. - `afterDistinct(\"ATTRIBUTE\")`. Evaluates the facet count _after_ deduplication with `distinct`. This ensures accurate facet counts. You can apply this modifier to searchable facets: `afterDistinct(searchable(ATTRIBUTE))`.
@@ -104,6 +106,14 @@ final class BaseIndexSettings {
@JsonKey(name: r'maxFacetHits')
final int? maxFacetHits;
+ /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
+ @JsonKey(name: r'keepDiacriticsOnCharacters')
+ final String? keepDiacriticsOnCharacters;
+
+ /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
+ @JsonKey(name: r'customRanking')
+ final List? customRanking;
+
@override
bool operator ==(Object other) =>
identical(this, other) ||
@@ -127,7 +137,9 @@ final class BaseIndexSettings {
other.userData == userData &&
other.customNormalization == customNormalization &&
other.attributeForDistinct == attributeForDistinct &&
- other.maxFacetHits == maxFacetHits;
+ other.maxFacetHits == maxFacetHits &&
+ other.keepDiacriticsOnCharacters == keepDiacriticsOnCharacters &&
+ other.customRanking == customRanking;
@override
int get hashCode =>
@@ -148,7 +160,9 @@ final class BaseIndexSettings {
userData.hashCode +
customNormalization.hashCode +
attributeForDistinct.hashCode +
- maxFacetHits.hashCode;
+ maxFacetHits.hashCode +
+ keepDiacriticsOnCharacters.hashCode +
+ customRanking.hashCode;
factory BaseIndexSettings.fromJson(Map json) =>
_$BaseIndexSettingsFromJson(json);
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/base_index_settings.g.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/base_index_settings.g.dart
index 4e0257eeac..29b1134b36 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/base_index_settings.g.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/base_index_settings.g.dart
@@ -57,6 +57,10 @@ BaseIndexSettings _$BaseIndexSettingsFromJson(Map json) =>
$checkedConvert('attributeForDistinct', (v) => v as String?),
maxFacetHits:
$checkedConvert('maxFacetHits', (v) => (v as num?)?.toInt()),
+ keepDiacriticsOnCharacters: $checkedConvert(
+ 'keepDiacriticsOnCharacters', (v) => v as String?),
+ customRanking: $checkedConvert('customRanking',
+ (v) => (v as List?)?.map((e) => e as String).toList()),
);
return val;
},
@@ -98,6 +102,9 @@ Map _$BaseIndexSettingsToJson(BaseIndexSettings instance) =>
if (instance.attributeForDistinct case final value?)
'attributeForDistinct': value,
if (instance.maxFacetHits case final value?) 'maxFacetHits': value,
+ if (instance.keepDiacriticsOnCharacters case final value?)
+ 'keepDiacriticsOnCharacters': value,
+ if (instance.customRanking case final value?) 'customRanking': value,
};
const _$SupportedLanguageEnumMap = {
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/browse_params_object.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/browse_params_object.dart
index 589a9588fc..46d7e92b22 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/browse_params_object.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/browse_params_object.dart
@@ -52,7 +52,6 @@ final class BrowseParamsObject {
this.enableABTest,
this.attributesToRetrieve,
this.ranking,
- this.customRanking,
this.relevancyStrictness,
this.attributesToHighlight,
this.attributesToSnippet,
@@ -68,7 +67,6 @@ final class BrowseParamsObject {
this.disableTypoToleranceOnAttributes,
this.ignorePlurals,
this.removeStopWords,
- this.keepDiacriticsOnCharacters,
this.queryLanguages,
this.decompoundQuery,
this.enableRules,
@@ -256,10 +254,6 @@ final class BrowseParamsObject {
@JsonKey(name: r'ranking')
final List? ranking;
- /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
- @JsonKey(name: r'customRanking')
- final List? customRanking;
-
/// Relevancy threshold below which less relevant results aren't included in the results. You can only set `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas). Use this setting to strike a balance between the relevance and number of returned results.
@JsonKey(name: r'relevancyStrictness')
final int? relevancyStrictness;
@@ -329,10 +323,6 @@ final class BrowseParamsObject {
@JsonKey(name: r'removeStopWords')
final dynamic removeStopWords;
- /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
- @JsonKey(name: r'keepDiacriticsOnCharacters')
- final String? keepDiacriticsOnCharacters;
-
/// Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` settings. This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) languages. To support this, you must place the CJK language **first**. **You should always specify a query language.** If you don't specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/), or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/).
@JsonKey(name: r'queryLanguages')
final List? queryLanguages;
@@ -475,7 +465,6 @@ final class BrowseParamsObject {
other.enableABTest == enableABTest &&
other.attributesToRetrieve == attributesToRetrieve &&
other.ranking == ranking &&
- other.customRanking == customRanking &&
other.relevancyStrictness == relevancyStrictness &&
other.attributesToHighlight == attributesToHighlight &&
other.attributesToSnippet == attributesToSnippet &&
@@ -493,7 +482,6 @@ final class BrowseParamsObject {
disableTypoToleranceOnAttributes &&
other.ignorePlurals == ignorePlurals &&
other.removeStopWords == removeStopWords &&
- other.keepDiacriticsOnCharacters == keepDiacriticsOnCharacters &&
other.queryLanguages == queryLanguages &&
other.decompoundQuery == decompoundQuery &&
other.enableRules == enableRules &&
@@ -557,7 +545,6 @@ final class BrowseParamsObject {
enableABTest.hashCode +
attributesToRetrieve.hashCode +
ranking.hashCode +
- customRanking.hashCode +
relevancyStrictness.hashCode +
attributesToHighlight.hashCode +
attributesToSnippet.hashCode +
@@ -573,7 +560,6 @@ final class BrowseParamsObject {
disableTypoToleranceOnAttributes.hashCode +
ignorePlurals.hashCode +
removeStopWords.hashCode +
- keepDiacriticsOnCharacters.hashCode +
queryLanguages.hashCode +
decompoundQuery.hashCode +
enableRules.hashCode +
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/browse_params_object.g.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/browse_params_object.g.dart
index 11885620e3..c0e6e46ecf 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/browse_params_object.g.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/browse_params_object.g.dart
@@ -69,8 +69,6 @@ BrowseParamsObject _$BrowseParamsObjectFromJson(Map json) =>
(v) => (v as List?)?.map((e) => e as String).toList()),
ranking: $checkedConvert('ranking',
(v) => (v as List?)?.map((e) => e as String).toList()),
- customRanking: $checkedConvert('customRanking',
- (v) => (v as List?)?.map((e) => e as String).toList()),
relevancyStrictness: $checkedConvert(
'relevancyStrictness', (v) => (v as num?)?.toInt()),
attributesToHighlight: $checkedConvert('attributesToHighlight',
@@ -99,8 +97,6 @@ BrowseParamsObject _$BrowseParamsObjectFromJson(Map json) =>
(v) => (v as List?)?.map((e) => e as String).toList()),
ignorePlurals: $checkedConvert('ignorePlurals', (v) => v),
removeStopWords: $checkedConvert('removeStopWords', (v) => v),
- keepDiacriticsOnCharacters: $checkedConvert(
- 'keepDiacriticsOnCharacters', (v) => v as String?),
queryLanguages: $checkedConvert(
'queryLanguages',
(v) => (v as List?)
@@ -213,7 +209,6 @@ Map _$BrowseParamsObjectToJson(BrowseParamsObject instance) =>
if (instance.attributesToRetrieve case final value?)
'attributesToRetrieve': value,
if (instance.ranking case final value?) 'ranking': value,
- if (instance.customRanking case final value?) 'customRanking': value,
if (instance.relevancyStrictness case final value?)
'relevancyStrictness': value,
if (instance.attributesToHighlight case final value?)
@@ -239,8 +234,6 @@ Map _$BrowseParamsObjectToJson(BrowseParamsObject instance) =>
'disableTypoToleranceOnAttributes': value,
if (instance.ignorePlurals case final value?) 'ignorePlurals': value,
if (instance.removeStopWords case final value?) 'removeStopWords': value,
- if (instance.keepDiacriticsOnCharacters case final value?)
- 'keepDiacriticsOnCharacters': value,
if (instance.queryLanguages?.map((e) => e.toJson()).toList()
case final value?)
'queryLanguages': value,
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/consequence_params.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/consequence_params.dart
index 42018ab0d0..6268446e8a 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/consequence_params.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/consequence_params.dart
@@ -51,7 +51,6 @@ final class ConsequenceParams {
this.enableABTest,
this.attributesToRetrieve,
this.ranking,
- this.customRanking,
this.relevancyStrictness,
this.attributesToHighlight,
this.attributesToSnippet,
@@ -67,7 +66,6 @@ final class ConsequenceParams {
this.disableTypoToleranceOnAttributes,
this.ignorePlurals,
this.removeStopWords,
- this.keepDiacriticsOnCharacters,
this.queryLanguages,
this.decompoundQuery,
this.enableRules,
@@ -253,10 +251,6 @@ final class ConsequenceParams {
@JsonKey(name: r'ranking')
final List? ranking;
- /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
- @JsonKey(name: r'customRanking')
- final List? customRanking;
-
/// Relevancy threshold below which less relevant results aren't included in the results. You can only set `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas). Use this setting to strike a balance between the relevance and number of returned results.
@JsonKey(name: r'relevancyStrictness')
final int? relevancyStrictness;
@@ -326,10 +320,6 @@ final class ConsequenceParams {
@JsonKey(name: r'removeStopWords')
final dynamic removeStopWords;
- /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
- @JsonKey(name: r'keepDiacriticsOnCharacters')
- final String? keepDiacriticsOnCharacters;
-
/// Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` settings. This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) languages. To support this, you must place the CJK language **first**. **You should always specify a query language.** If you don't specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/), or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/).
@JsonKey(name: r'queryLanguages')
final List? queryLanguages;
@@ -485,7 +475,6 @@ final class ConsequenceParams {
other.enableABTest == enableABTest &&
other.attributesToRetrieve == attributesToRetrieve &&
other.ranking == ranking &&
- other.customRanking == customRanking &&
other.relevancyStrictness == relevancyStrictness &&
other.attributesToHighlight == attributesToHighlight &&
other.attributesToSnippet == attributesToSnippet &&
@@ -503,7 +492,6 @@ final class ConsequenceParams {
disableTypoToleranceOnAttributes &&
other.ignorePlurals == ignorePlurals &&
other.removeStopWords == removeStopWords &&
- other.keepDiacriticsOnCharacters == keepDiacriticsOnCharacters &&
other.queryLanguages == queryLanguages &&
other.decompoundQuery == decompoundQuery &&
other.enableRules == enableRules &&
@@ -568,7 +556,6 @@ final class ConsequenceParams {
enableABTest.hashCode +
attributesToRetrieve.hashCode +
ranking.hashCode +
- customRanking.hashCode +
relevancyStrictness.hashCode +
attributesToHighlight.hashCode +
attributesToSnippet.hashCode +
@@ -584,7 +571,6 @@ final class ConsequenceParams {
disableTypoToleranceOnAttributes.hashCode +
ignorePlurals.hashCode +
removeStopWords.hashCode +
- keepDiacriticsOnCharacters.hashCode +
queryLanguages.hashCode +
decompoundQuery.hashCode +
enableRules.hashCode +
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/consequence_params.g.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/consequence_params.g.dart
index 065434f432..cf51274957 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/consequence_params.g.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/consequence_params.g.dart
@@ -68,8 +68,6 @@ ConsequenceParams _$ConsequenceParamsFromJson(Map json) =>
(v) => (v as List?)?.map((e) => e as String).toList()),
ranking: $checkedConvert('ranking',
(v) => (v as List?)?.map((e) => e as String).toList()),
- customRanking: $checkedConvert('customRanking',
- (v) => (v as List?)?.map((e) => e as String).toList()),
relevancyStrictness: $checkedConvert(
'relevancyStrictness', (v) => (v as num?)?.toInt()),
attributesToHighlight: $checkedConvert('attributesToHighlight',
@@ -98,8 +96,6 @@ ConsequenceParams _$ConsequenceParamsFromJson(Map json) =>
(v) => (v as List?)?.map((e) => e as String).toList()),
ignorePlurals: $checkedConvert('ignorePlurals', (v) => v),
removeStopWords: $checkedConvert('removeStopWords', (v) => v),
- keepDiacriticsOnCharacters: $checkedConvert(
- 'keepDiacriticsOnCharacters', (v) => v as String?),
queryLanguages: $checkedConvert(
'queryLanguages',
(v) => (v as List?)
@@ -215,7 +211,6 @@ Map _$ConsequenceParamsToJson(ConsequenceParams instance) =>
if (instance.attributesToRetrieve case final value?)
'attributesToRetrieve': value,
if (instance.ranking case final value?) 'ranking': value,
- if (instance.customRanking case final value?) 'customRanking': value,
if (instance.relevancyStrictness case final value?)
'relevancyStrictness': value,
if (instance.attributesToHighlight case final value?)
@@ -241,8 +236,6 @@ Map _$ConsequenceParamsToJson(ConsequenceParams instance) =>
'disableTypoToleranceOnAttributes': value,
if (instance.ignorePlurals case final value?) 'ignorePlurals': value,
if (instance.removeStopWords case final value?) 'removeStopWords': value,
- if (instance.keepDiacriticsOnCharacters case final value?)
- 'keepDiacriticsOnCharacters': value,
if (instance.queryLanguages?.map((e) => e.toJson()).toList()
case final value?)
'queryLanguages': value,
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/fallback_params.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/fallback_params.dart
index 293618d76c..50696ab622 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/fallback_params.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/fallback_params.dart
@@ -63,6 +63,8 @@ final class FallbackParams {
this.customNormalization,
this.attributeForDistinct,
this.maxFacetHits,
+ this.keepDiacriticsOnCharacters,
+ this.customRanking,
this.attributesToRetrieve,
this.ranking,
this.relevancyStrictness,
@@ -314,6 +316,14 @@ final class FallbackParams {
@JsonKey(name: r'maxFacetHits')
final int? maxFacetHits;
+ /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
+ @JsonKey(name: r'keepDiacriticsOnCharacters')
+ final String? keepDiacriticsOnCharacters;
+
+ /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
+ @JsonKey(name: r'customRanking')
+ final List? customRanking;
+
/// Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. Attribute names are case-sensitive. - `*` retrieves all attributes, except attributes included in the `customRanking` and `unretrievableAttributes` settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the `*`: `[\"*\", \"-ATTRIBUTE\"]`. - The `objectID` attribute is always included.
@JsonKey(name: r'attributesToRetrieve')
final List? attributesToRetrieve;
@@ -532,6 +542,8 @@ final class FallbackParams {
other.customNormalization == customNormalization &&
other.attributeForDistinct == attributeForDistinct &&
other.maxFacetHits == maxFacetHits &&
+ other.keepDiacriticsOnCharacters == keepDiacriticsOnCharacters &&
+ other.customRanking == customRanking &&
other.attributesToRetrieve == attributesToRetrieve &&
other.ranking == ranking &&
other.relevancyStrictness == relevancyStrictness &&
@@ -623,6 +635,8 @@ final class FallbackParams {
customNormalization.hashCode +
attributeForDistinct.hashCode +
maxFacetHits.hashCode +
+ keepDiacriticsOnCharacters.hashCode +
+ customRanking.hashCode +
attributesToRetrieve.hashCode +
ranking.hashCode +
relevancyStrictness.hashCode +
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/fallback_params.g.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/fallback_params.g.dart
index d4b90dd8ae..79fb55cb62 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/fallback_params.g.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/fallback_params.g.dart
@@ -107,6 +107,10 @@ FallbackParams _$FallbackParamsFromJson(Map json) =>
$checkedConvert('attributeForDistinct', (v) => v as String?),
maxFacetHits:
$checkedConvert('maxFacetHits', (v) => (v as num?)?.toInt()),
+ keepDiacriticsOnCharacters: $checkedConvert(
+ 'keepDiacriticsOnCharacters', (v) => v as String?),
+ customRanking: $checkedConvert('customRanking',
+ (v) => (v as List?)?.map((e) => e as String).toList()),
attributesToRetrieve: $checkedConvert('attributesToRetrieve',
(v) => (v as List?)?.map((e) => e as String).toList()),
ranking: $checkedConvert('ranking',
@@ -269,6 +273,9 @@ Map _$FallbackParamsToJson(FallbackParams instance) =>
if (instance.attributeForDistinct case final value?)
'attributeForDistinct': value,
if (instance.maxFacetHits case final value?) 'maxFacetHits': value,
+ if (instance.keepDiacriticsOnCharacters case final value?)
+ 'keepDiacriticsOnCharacters': value,
+ if (instance.customRanking case final value?) 'customRanking': value,
if (instance.attributesToRetrieve case final value?)
'attributesToRetrieve': value,
if (instance.ranking case final value?) 'ranking': value,
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/index_settings.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/index_settings.dart
index a789381223..57f19f362a 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/index_settings.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/index_settings.dart
@@ -36,9 +36,10 @@ final class IndexSettings {
this.customNormalization,
this.attributeForDistinct,
this.maxFacetHits,
+ this.keepDiacriticsOnCharacters,
+ this.customRanking,
this.attributesToRetrieve,
this.ranking,
- this.customRanking,
this.relevancyStrictness,
this.attributesToHighlight,
this.attributesToSnippet,
@@ -54,7 +55,6 @@ final class IndexSettings {
this.disableTypoToleranceOnAttributes,
this.ignorePlurals,
this.removeStopWords,
- this.keepDiacriticsOnCharacters,
this.queryLanguages,
this.decompoundQuery,
this.enableRules,
@@ -155,6 +155,14 @@ final class IndexSettings {
@JsonKey(name: r'maxFacetHits')
final int? maxFacetHits;
+ /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
+ @JsonKey(name: r'keepDiacriticsOnCharacters')
+ final String? keepDiacriticsOnCharacters;
+
+ /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
+ @JsonKey(name: r'customRanking')
+ final List? customRanking;
+
/// Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. Attribute names are case-sensitive. - `*` retrieves all attributes, except attributes included in the `customRanking` and `unretrievableAttributes` settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the `*`: `[\"*\", \"-ATTRIBUTE\"]`. - The `objectID` attribute is always included.
@JsonKey(name: r'attributesToRetrieve')
final List? attributesToRetrieve;
@@ -163,10 +171,6 @@ final class IndexSettings {
@JsonKey(name: r'ranking')
final List? ranking;
- /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
- @JsonKey(name: r'customRanking')
- final List? customRanking;
-
/// Relevancy threshold below which less relevant results aren't included in the results. You can only set `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas). Use this setting to strike a balance between the relevance and number of returned results.
@JsonKey(name: r'relevancyStrictness')
final int? relevancyStrictness;
@@ -236,10 +240,6 @@ final class IndexSettings {
@JsonKey(name: r'removeStopWords')
final dynamic removeStopWords;
- /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
- @JsonKey(name: r'keepDiacriticsOnCharacters')
- final String? keepDiacriticsOnCharacters;
-
/// Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` settings. This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) languages. To support this, you must place the CJK language **first**. **You should always specify a query language.** If you don't specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/), or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/).
@JsonKey(name: r'queryLanguages')
final List? queryLanguages;
@@ -364,9 +364,10 @@ final class IndexSettings {
other.customNormalization == customNormalization &&
other.attributeForDistinct == attributeForDistinct &&
other.maxFacetHits == maxFacetHits &&
+ other.keepDiacriticsOnCharacters == keepDiacriticsOnCharacters &&
+ other.customRanking == customRanking &&
other.attributesToRetrieve == attributesToRetrieve &&
other.ranking == ranking &&
- other.customRanking == customRanking &&
other.relevancyStrictness == relevancyStrictness &&
other.attributesToHighlight == attributesToHighlight &&
other.attributesToSnippet == attributesToSnippet &&
@@ -384,7 +385,6 @@ final class IndexSettings {
disableTypoToleranceOnAttributes &&
other.ignorePlurals == ignorePlurals &&
other.removeStopWords == removeStopWords &&
- other.keepDiacriticsOnCharacters == keepDiacriticsOnCharacters &&
other.queryLanguages == queryLanguages &&
other.decompoundQuery == decompoundQuery &&
other.enableRules == enableRules &&
@@ -431,9 +431,10 @@ final class IndexSettings {
customNormalization.hashCode +
attributeForDistinct.hashCode +
maxFacetHits.hashCode +
+ keepDiacriticsOnCharacters.hashCode +
+ customRanking.hashCode +
attributesToRetrieve.hashCode +
ranking.hashCode +
- customRanking.hashCode +
relevancyStrictness.hashCode +
attributesToHighlight.hashCode +
attributesToSnippet.hashCode +
@@ -449,7 +450,6 @@ final class IndexSettings {
disableTypoToleranceOnAttributes.hashCode +
ignorePlurals.hashCode +
removeStopWords.hashCode +
- keepDiacriticsOnCharacters.hashCode +
queryLanguages.hashCode +
decompoundQuery.hashCode +
enableRules.hashCode +
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/index_settings.g.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/index_settings.g.dart
index 083b83674d..3234f2dc0f 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/index_settings.g.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/index_settings.g.dart
@@ -57,12 +57,14 @@ IndexSettings _$IndexSettingsFromJson(Map json) =>
$checkedConvert('attributeForDistinct', (v) => v as String?),
maxFacetHits:
$checkedConvert('maxFacetHits', (v) => (v as num?)?.toInt()),
+ keepDiacriticsOnCharacters: $checkedConvert(
+ 'keepDiacriticsOnCharacters', (v) => v as String?),
+ customRanking: $checkedConvert('customRanking',
+ (v) => (v as List?)?.map((e) => e as String).toList()),
attributesToRetrieve: $checkedConvert('attributesToRetrieve',
(v) => (v as List?)?.map((e) => e as String).toList()),
ranking: $checkedConvert('ranking',
(v) => (v as List?)?.map((e) => e as String).toList()),
- customRanking: $checkedConvert('customRanking',
- (v) => (v as List?)?.map((e) => e as String).toList()),
relevancyStrictness: $checkedConvert(
'relevancyStrictness', (v) => (v as num?)?.toInt()),
attributesToHighlight: $checkedConvert('attributesToHighlight',
@@ -91,8 +93,6 @@ IndexSettings _$IndexSettingsFromJson(Map json) =>
(v) => (v as List?)?.map((e) => e as String).toList()),
ignorePlurals: $checkedConvert('ignorePlurals', (v) => v),
removeStopWords: $checkedConvert('removeStopWords', (v) => v),
- keepDiacriticsOnCharacters: $checkedConvert(
- 'keepDiacriticsOnCharacters', (v) => v as String?),
queryLanguages: $checkedConvert(
'queryLanguages',
(v) => (v as List?)
@@ -193,10 +193,12 @@ Map _$IndexSettingsToJson(IndexSettings instance) =>
if (instance.attributeForDistinct case final value?)
'attributeForDistinct': value,
if (instance.maxFacetHits case final value?) 'maxFacetHits': value,
+ if (instance.keepDiacriticsOnCharacters case final value?)
+ 'keepDiacriticsOnCharacters': value,
+ if (instance.customRanking case final value?) 'customRanking': value,
if (instance.attributesToRetrieve case final value?)
'attributesToRetrieve': value,
if (instance.ranking case final value?) 'ranking': value,
- if (instance.customRanking case final value?) 'customRanking': value,
if (instance.relevancyStrictness case final value?)
'relevancyStrictness': value,
if (instance.attributesToHighlight case final value?)
@@ -222,8 +224,6 @@ Map _$IndexSettingsToJson(IndexSettings instance) =>
'disableTypoToleranceOnAttributes': value,
if (instance.ignorePlurals case final value?) 'ignorePlurals': value,
if (instance.removeStopWords case final value?) 'removeStopWords': value,
- if (instance.keepDiacriticsOnCharacters case final value?)
- 'keepDiacriticsOnCharacters': value,
if (instance.queryLanguages?.map((e) => e.toJson()).toList()
case final value?)
'queryLanguages': value,
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/index_settings_as_search_params.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/index_settings_as_search_params.dart
index 97803f0146..6c2f7385bb 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/index_settings_as_search_params.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/index_settings_as_search_params.dart
@@ -20,7 +20,6 @@ final class IndexSettingsAsSearchParams {
const IndexSettingsAsSearchParams({
this.attributesToRetrieve,
this.ranking,
- this.customRanking,
this.relevancyStrictness,
this.attributesToHighlight,
this.attributesToSnippet,
@@ -36,7 +35,6 @@ final class IndexSettingsAsSearchParams {
this.disableTypoToleranceOnAttributes,
this.ignorePlurals,
this.removeStopWords,
- this.keepDiacriticsOnCharacters,
this.queryLanguages,
this.decompoundQuery,
this.enableRules,
@@ -71,10 +69,6 @@ final class IndexSettingsAsSearchParams {
@JsonKey(name: r'ranking')
final List? ranking;
- /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
- @JsonKey(name: r'customRanking')
- final List? customRanking;
-
/// Relevancy threshold below which less relevant results aren't included in the results. You can only set `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas). Use this setting to strike a balance between the relevance and number of returned results.
@JsonKey(name: r'relevancyStrictness')
final int? relevancyStrictness;
@@ -144,10 +138,6 @@ final class IndexSettingsAsSearchParams {
@JsonKey(name: r'removeStopWords')
final dynamic removeStopWords;
- /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
- @JsonKey(name: r'keepDiacriticsOnCharacters')
- final String? keepDiacriticsOnCharacters;
-
/// Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` settings. This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) languages. To support this, you must place the CJK language **first**. **You should always specify a query language.** If you don't specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/), or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/).
@JsonKey(name: r'queryLanguages')
final List? queryLanguages;
@@ -254,7 +244,6 @@ final class IndexSettingsAsSearchParams {
other is IndexSettingsAsSearchParams &&
other.attributesToRetrieve == attributesToRetrieve &&
other.ranking == ranking &&
- other.customRanking == customRanking &&
other.relevancyStrictness == relevancyStrictness &&
other.attributesToHighlight == attributesToHighlight &&
other.attributesToSnippet == attributesToSnippet &&
@@ -272,7 +261,6 @@ final class IndexSettingsAsSearchParams {
disableTypoToleranceOnAttributes &&
other.ignorePlurals == ignorePlurals &&
other.removeStopWords == removeStopWords &&
- other.keepDiacriticsOnCharacters == keepDiacriticsOnCharacters &&
other.queryLanguages == queryLanguages &&
other.decompoundQuery == decompoundQuery &&
other.enableRules == enableRules &&
@@ -303,7 +291,6 @@ final class IndexSettingsAsSearchParams {
int get hashCode =>
attributesToRetrieve.hashCode +
ranking.hashCode +
- customRanking.hashCode +
relevancyStrictness.hashCode +
attributesToHighlight.hashCode +
attributesToSnippet.hashCode +
@@ -319,7 +306,6 @@ final class IndexSettingsAsSearchParams {
disableTypoToleranceOnAttributes.hashCode +
ignorePlurals.hashCode +
removeStopWords.hashCode +
- keepDiacriticsOnCharacters.hashCode +
queryLanguages.hashCode +
decompoundQuery.hashCode +
enableRules.hashCode +
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/index_settings_as_search_params.g.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/index_settings_as_search_params.g.dart
index 6645b6d22d..2c7f9b26b3 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/index_settings_as_search_params.g.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/index_settings_as_search_params.g.dart
@@ -17,8 +17,6 @@ IndexSettingsAsSearchParams _$IndexSettingsAsSearchParamsFromJson(
(v) => (v as List?)?.map((e) => e as String).toList()),
ranking: $checkedConvert('ranking',
(v) => (v as List?)?.map((e) => e as String).toList()),
- customRanking: $checkedConvert('customRanking',
- (v) => (v as List?)?.map((e) => e as String).toList()),
relevancyStrictness: $checkedConvert(
'relevancyStrictness', (v) => (v as num?)?.toInt()),
attributesToHighlight: $checkedConvert('attributesToHighlight',
@@ -47,8 +45,6 @@ IndexSettingsAsSearchParams _$IndexSettingsAsSearchParamsFromJson(
(v) => (v as List?)?.map((e) => e as String).toList()),
ignorePlurals: $checkedConvert('ignorePlurals', (v) => v),
removeStopWords: $checkedConvert('removeStopWords', (v) => v),
- keepDiacriticsOnCharacters: $checkedConvert(
- 'keepDiacriticsOnCharacters', (v) => v as String?),
queryLanguages: $checkedConvert(
'queryLanguages',
(v) => (v as List?)
@@ -119,7 +115,6 @@ Map _$IndexSettingsAsSearchParamsToJson(
if (instance.attributesToRetrieve case final value?)
'attributesToRetrieve': value,
if (instance.ranking case final value?) 'ranking': value,
- if (instance.customRanking case final value?) 'customRanking': value,
if (instance.relevancyStrictness case final value?)
'relevancyStrictness': value,
if (instance.attributesToHighlight case final value?)
@@ -145,8 +140,6 @@ Map _$IndexSettingsAsSearchParamsToJson(
'disableTypoToleranceOnAttributes': value,
if (instance.ignorePlurals case final value?) 'ignorePlurals': value,
if (instance.removeStopWords case final value?) 'removeStopWords': value,
- if (instance.keepDiacriticsOnCharacters case final value?)
- 'keepDiacriticsOnCharacters': value,
if (instance.queryLanguages?.map((e) => e.toJson()).toList()
case final value?)
'queryLanguages': value,
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/recommend_index_settings.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/recommend_index_settings.dart
index 5c735660d5..b35e70f6e2 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/recommend_index_settings.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/recommend_index_settings.dart
@@ -34,6 +34,8 @@ final class RecommendIndexSettings {
this.customNormalization,
this.attributeForDistinct,
this.maxFacetHits,
+ this.keepDiacriticsOnCharacters,
+ this.customRanking,
this.attributesToRetrieve,
this.ranking,
this.relevancyStrictness,
@@ -148,6 +150,14 @@ final class RecommendIndexSettings {
@JsonKey(name: r'maxFacetHits')
final int? maxFacetHits;
+ /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
+ @JsonKey(name: r'keepDiacriticsOnCharacters')
+ final String? keepDiacriticsOnCharacters;
+
+ /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
+ @JsonKey(name: r'customRanking')
+ final List? customRanking;
+
/// Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. Attribute names are case-sensitive. - `*` retrieves all attributes, except attributes included in the `customRanking` and `unretrievableAttributes` settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the `*`: `[\"*\", \"-ATTRIBUTE\"]`. - The `objectID` attribute is always included.
@JsonKey(name: r'attributesToRetrieve')
final List? attributesToRetrieve;
@@ -337,6 +347,8 @@ final class RecommendIndexSettings {
other.customNormalization == customNormalization &&
other.attributeForDistinct == attributeForDistinct &&
other.maxFacetHits == maxFacetHits &&
+ other.keepDiacriticsOnCharacters == keepDiacriticsOnCharacters &&
+ other.customRanking == customRanking &&
other.attributesToRetrieve == attributesToRetrieve &&
other.ranking == ranking &&
other.relevancyStrictness == relevancyStrictness &&
@@ -399,6 +411,8 @@ final class RecommendIndexSettings {
customNormalization.hashCode +
attributeForDistinct.hashCode +
maxFacetHits.hashCode +
+ keepDiacriticsOnCharacters.hashCode +
+ customRanking.hashCode +
attributesToRetrieve.hashCode +
ranking.hashCode +
relevancyStrictness.hashCode +
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/recommend_index_settings.g.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/recommend_index_settings.g.dart
index 099ac372fa..437572b876 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/recommend_index_settings.g.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/recommend_index_settings.g.dart
@@ -58,6 +58,10 @@ RecommendIndexSettings _$RecommendIndexSettingsFromJson(
$checkedConvert('attributeForDistinct', (v) => v as String?),
maxFacetHits:
$checkedConvert('maxFacetHits', (v) => (v as num?)?.toInt()),
+ keepDiacriticsOnCharacters: $checkedConvert(
+ 'keepDiacriticsOnCharacters', (v) => v as String?),
+ customRanking: $checkedConvert('customRanking',
+ (v) => (v as List?)?.map((e) => e as String).toList()),
attributesToRetrieve: $checkedConvert('attributesToRetrieve',
(v) => (v as List?)?.map((e) => e as String).toList()),
ranking: $checkedConvert('ranking',
@@ -182,6 +186,9 @@ Map _$RecommendIndexSettingsToJson(
if (instance.attributeForDistinct case final value?)
'attributeForDistinct': value,
if (instance.maxFacetHits case final value?) 'maxFacetHits': value,
+ if (instance.keepDiacriticsOnCharacters case final value?)
+ 'keepDiacriticsOnCharacters': value,
+ if (instance.customRanking case final value?) 'customRanking': value,
if (instance.attributesToRetrieve case final value?)
'attributesToRetrieve': value,
if (instance.ranking case final value?) 'ranking': value,
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/recommend_search_params.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/recommend_search_params.dart
index 31a0fd795e..ba23e5db97 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/recommend_search_params.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/recommend_search_params.dart
@@ -63,6 +63,8 @@ final class RecommendSearchParams {
this.customNormalization,
this.attributeForDistinct,
this.maxFacetHits,
+ this.keepDiacriticsOnCharacters,
+ this.customRanking,
this.attributesToRetrieve,
this.ranking,
this.relevancyStrictness,
@@ -314,6 +316,14 @@ final class RecommendSearchParams {
@JsonKey(name: r'maxFacetHits')
final int? maxFacetHits;
+ /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
+ @JsonKey(name: r'keepDiacriticsOnCharacters')
+ final String? keepDiacriticsOnCharacters;
+
+ /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
+ @JsonKey(name: r'customRanking')
+ final List? customRanking;
+
/// Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. Attribute names are case-sensitive. - `*` retrieves all attributes, except attributes included in the `customRanking` and `unretrievableAttributes` settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the `*`: `[\"*\", \"-ATTRIBUTE\"]`. - The `objectID` attribute is always included.
@JsonKey(name: r'attributesToRetrieve')
final List? attributesToRetrieve;
@@ -532,6 +542,8 @@ final class RecommendSearchParams {
other.customNormalization == customNormalization &&
other.attributeForDistinct == attributeForDistinct &&
other.maxFacetHits == maxFacetHits &&
+ other.keepDiacriticsOnCharacters == keepDiacriticsOnCharacters &&
+ other.customRanking == customRanking &&
other.attributesToRetrieve == attributesToRetrieve &&
other.ranking == ranking &&
other.relevancyStrictness == relevancyStrictness &&
@@ -623,6 +635,8 @@ final class RecommendSearchParams {
customNormalization.hashCode +
attributeForDistinct.hashCode +
maxFacetHits.hashCode +
+ keepDiacriticsOnCharacters.hashCode +
+ customRanking.hashCode +
attributesToRetrieve.hashCode +
ranking.hashCode +
relevancyStrictness.hashCode +
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/recommend_search_params.g.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/recommend_search_params.g.dart
index 6ca014ecc0..01f13df41b 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/recommend_search_params.g.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/recommend_search_params.g.dart
@@ -108,6 +108,10 @@ RecommendSearchParams _$RecommendSearchParamsFromJson(
$checkedConvert('attributeForDistinct', (v) => v as String?),
maxFacetHits:
$checkedConvert('maxFacetHits', (v) => (v as num?)?.toInt()),
+ keepDiacriticsOnCharacters: $checkedConvert(
+ 'keepDiacriticsOnCharacters', (v) => v as String?),
+ customRanking: $checkedConvert('customRanking',
+ (v) => (v as List?)?.map((e) => e as String).toList()),
attributesToRetrieve: $checkedConvert('attributesToRetrieve',
(v) => (v as List?)?.map((e) => e as String).toList()),
ranking: $checkedConvert('ranking',
@@ -271,6 +275,9 @@ Map _$RecommendSearchParamsToJson(
if (instance.attributeForDistinct case final value?)
'attributeForDistinct': value,
if (instance.maxFacetHits case final value?) 'maxFacetHits': value,
+ if (instance.keepDiacriticsOnCharacters case final value?)
+ 'keepDiacriticsOnCharacters': value,
+ if (instance.customRanking case final value?) 'customRanking': value,
if (instance.attributesToRetrieve case final value?)
'attributesToRetrieve': value,
if (instance.ranking case final value?) 'ranking': value,
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_for_facets.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_for_facets.dart
index ce07b81ea7..89de63d357 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_for_facets.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_for_facets.dart
@@ -54,7 +54,6 @@ final class SearchForFacets {
this.enableABTest,
this.attributesToRetrieve,
this.ranking,
- this.customRanking,
this.relevancyStrictness,
this.attributesToHighlight,
this.attributesToSnippet,
@@ -70,7 +69,6 @@ final class SearchForFacets {
this.disableTypoToleranceOnAttributes,
this.ignorePlurals,
this.removeStopWords,
- this.keepDiacriticsOnCharacters,
this.queryLanguages,
this.decompoundQuery,
this.enableRules,
@@ -266,10 +264,6 @@ final class SearchForFacets {
@JsonKey(name: r'ranking')
final List? ranking;
- /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
- @JsonKey(name: r'customRanking')
- final List? customRanking;
-
/// Relevancy threshold below which less relevant results aren't included in the results. You can only set `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas). Use this setting to strike a balance between the relevance and number of returned results.
@JsonKey(name: r'relevancyStrictness')
final int? relevancyStrictness;
@@ -339,10 +333,6 @@ final class SearchForFacets {
@JsonKey(name: r'removeStopWords')
final dynamic removeStopWords;
- /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
- @JsonKey(name: r'keepDiacriticsOnCharacters')
- final String? keepDiacriticsOnCharacters;
-
/// Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` settings. This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) languages. To support this, you must place the CJK language **first**. **You should always specify a query language.** If you don't specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/), or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/).
@JsonKey(name: r'queryLanguages')
final List? queryLanguages;
@@ -502,7 +492,6 @@ final class SearchForFacets {
other.enableABTest == enableABTest &&
other.attributesToRetrieve == attributesToRetrieve &&
other.ranking == ranking &&
- other.customRanking == customRanking &&
other.relevancyStrictness == relevancyStrictness &&
other.attributesToHighlight == attributesToHighlight &&
other.attributesToSnippet == attributesToSnippet &&
@@ -520,7 +509,6 @@ final class SearchForFacets {
disableTypoToleranceOnAttributes &&
other.ignorePlurals == ignorePlurals &&
other.removeStopWords == removeStopWords &&
- other.keepDiacriticsOnCharacters == keepDiacriticsOnCharacters &&
other.queryLanguages == queryLanguages &&
other.decompoundQuery == decompoundQuery &&
other.enableRules == enableRules &&
@@ -589,7 +577,6 @@ final class SearchForFacets {
enableABTest.hashCode +
attributesToRetrieve.hashCode +
ranking.hashCode +
- customRanking.hashCode +
relevancyStrictness.hashCode +
attributesToHighlight.hashCode +
attributesToSnippet.hashCode +
@@ -605,7 +592,6 @@ final class SearchForFacets {
disableTypoToleranceOnAttributes.hashCode +
ignorePlurals.hashCode +
removeStopWords.hashCode +
- keepDiacriticsOnCharacters.hashCode +
queryLanguages.hashCode +
decompoundQuery.hashCode +
enableRules.hashCode +
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_for_facets.g.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_for_facets.g.dart
index 8bb2aa4d35..68c0d82752 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_for_facets.g.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_for_facets.g.dart
@@ -70,8 +70,6 @@ SearchForFacets _$SearchForFacetsFromJson(Map json) =>
(v) => (v as List?)?.map((e) => e as String).toList()),
ranking: $checkedConvert('ranking',
(v) => (v as List?)?.map((e) => e as String).toList()),
- customRanking: $checkedConvert('customRanking',
- (v) => (v as List?)?.map((e) => e as String).toList()),
relevancyStrictness: $checkedConvert(
'relevancyStrictness', (v) => (v as num?)?.toInt()),
attributesToHighlight: $checkedConvert('attributesToHighlight',
@@ -100,8 +98,6 @@ SearchForFacets _$SearchForFacetsFromJson(Map json) =>
(v) => (v as List?)?.map((e) => e as String).toList()),
ignorePlurals: $checkedConvert('ignorePlurals', (v) => v),
removeStopWords: $checkedConvert('removeStopWords', (v) => v),
- keepDiacriticsOnCharacters: $checkedConvert(
- 'keepDiacriticsOnCharacters', (v) => v as String?),
queryLanguages: $checkedConvert(
'queryLanguages',
(v) => (v as List?)
@@ -221,7 +217,6 @@ Map _$SearchForFacetsToJson(SearchForFacets instance) =>
if (instance.attributesToRetrieve case final value?)
'attributesToRetrieve': value,
if (instance.ranking case final value?) 'ranking': value,
- if (instance.customRanking case final value?) 'customRanking': value,
if (instance.relevancyStrictness case final value?)
'relevancyStrictness': value,
if (instance.attributesToHighlight case final value?)
@@ -247,8 +242,6 @@ Map _$SearchForFacetsToJson(SearchForFacets instance) =>
'disableTypoToleranceOnAttributes': value,
if (instance.ignorePlurals case final value?) 'ignorePlurals': value,
if (instance.removeStopWords case final value?) 'removeStopWords': value,
- if (instance.keepDiacriticsOnCharacters case final value?)
- 'keepDiacriticsOnCharacters': value,
if (instance.queryLanguages?.map((e) => e.toJson()).toList()
case final value?)
'queryLanguages': value,
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_for_hits.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_for_hits.dart
index ba28835f5a..5bc9fad13c 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_for_hits.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_for_hits.dart
@@ -54,7 +54,6 @@ final class SearchForHits {
this.enableABTest,
this.attributesToRetrieve,
this.ranking,
- this.customRanking,
this.relevancyStrictness,
this.attributesToHighlight,
this.attributesToSnippet,
@@ -70,7 +69,6 @@ final class SearchForHits {
this.disableTypoToleranceOnAttributes,
this.ignorePlurals,
this.removeStopWords,
- this.keepDiacriticsOnCharacters,
this.queryLanguages,
this.decompoundQuery,
this.enableRules,
@@ -263,10 +261,6 @@ final class SearchForHits {
@JsonKey(name: r'ranking')
final List? ranking;
- /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
- @JsonKey(name: r'customRanking')
- final List? customRanking;
-
/// Relevancy threshold below which less relevant results aren't included in the results. You can only set `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas). Use this setting to strike a balance between the relevance and number of returned results.
@JsonKey(name: r'relevancyStrictness')
final int? relevancyStrictness;
@@ -336,10 +330,6 @@ final class SearchForHits {
@JsonKey(name: r'removeStopWords')
final dynamic removeStopWords;
- /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
- @JsonKey(name: r'keepDiacriticsOnCharacters')
- final String? keepDiacriticsOnCharacters;
-
/// Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` settings. This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) languages. To support this, you must place the CJK language **first**. **You should always specify a query language.** If you don't specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/), or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/).
@JsonKey(name: r'queryLanguages')
final List? queryLanguages;
@@ -486,7 +476,6 @@ final class SearchForHits {
other.enableABTest == enableABTest &&
other.attributesToRetrieve == attributesToRetrieve &&
other.ranking == ranking &&
- other.customRanking == customRanking &&
other.relevancyStrictness == relevancyStrictness &&
other.attributesToHighlight == attributesToHighlight &&
other.attributesToSnippet == attributesToSnippet &&
@@ -504,7 +493,6 @@ final class SearchForHits {
disableTypoToleranceOnAttributes &&
other.ignorePlurals == ignorePlurals &&
other.removeStopWords == removeStopWords &&
- other.keepDiacriticsOnCharacters == keepDiacriticsOnCharacters &&
other.queryLanguages == queryLanguages &&
other.decompoundQuery == decompoundQuery &&
other.enableRules == enableRules &&
@@ -570,7 +558,6 @@ final class SearchForHits {
enableABTest.hashCode +
attributesToRetrieve.hashCode +
ranking.hashCode +
- customRanking.hashCode +
relevancyStrictness.hashCode +
attributesToHighlight.hashCode +
attributesToSnippet.hashCode +
@@ -586,7 +573,6 @@ final class SearchForHits {
disableTypoToleranceOnAttributes.hashCode +
ignorePlurals.hashCode +
removeStopWords.hashCode +
- keepDiacriticsOnCharacters.hashCode +
queryLanguages.hashCode +
decompoundQuery.hashCode +
enableRules.hashCode +
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_for_hits.g.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_for_hits.g.dart
index f922120359..70d63813b0 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_for_hits.g.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_for_hits.g.dart
@@ -70,8 +70,6 @@ SearchForHits _$SearchForHitsFromJson(Map json) =>
(v) => (v as List?)?.map((e) => e as String).toList()),
ranking: $checkedConvert('ranking',
(v) => (v as List?)?.map((e) => e as String).toList()),
- customRanking: $checkedConvert('customRanking',
- (v) => (v as List?)?.map((e) => e as String).toList()),
relevancyStrictness: $checkedConvert(
'relevancyStrictness', (v) => (v as num?)?.toInt()),
attributesToHighlight: $checkedConvert('attributesToHighlight',
@@ -100,8 +98,6 @@ SearchForHits _$SearchForHitsFromJson(Map json) =>
(v) => (v as List?)?.map((e) => e as String).toList()),
ignorePlurals: $checkedConvert('ignorePlurals', (v) => v),
removeStopWords: $checkedConvert('removeStopWords', (v) => v),
- keepDiacriticsOnCharacters: $checkedConvert(
- 'keepDiacriticsOnCharacters', (v) => v as String?),
queryLanguages: $checkedConvert(
'queryLanguages',
(v) => (v as List?)
@@ -217,7 +213,6 @@ Map _$SearchForHitsToJson(SearchForHits instance) =>
if (instance.attributesToRetrieve case final value?)
'attributesToRetrieve': value,
if (instance.ranking case final value?) 'ranking': value,
- if (instance.customRanking case final value?) 'customRanking': value,
if (instance.relevancyStrictness case final value?)
'relevancyStrictness': value,
if (instance.attributesToHighlight case final value?)
@@ -243,8 +238,6 @@ Map _$SearchForHitsToJson(SearchForHits instance) =>
'disableTypoToleranceOnAttributes': value,
if (instance.ignorePlurals case final value?) 'ignorePlurals': value,
if (instance.removeStopWords case final value?) 'removeStopWords': value,
- if (instance.keepDiacriticsOnCharacters case final value?)
- 'keepDiacriticsOnCharacters': value,
if (instance.queryLanguages?.map((e) => e.toJson()).toList()
case final value?)
'queryLanguages': value,
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_params_object.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_params_object.dart
index fb4f951c13..73291b9d5e 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_params_object.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_params_object.dart
@@ -52,7 +52,6 @@ final class SearchParamsObject {
this.enableABTest,
this.attributesToRetrieve,
this.ranking,
- this.customRanking,
this.relevancyStrictness,
this.attributesToHighlight,
this.attributesToSnippet,
@@ -68,7 +67,6 @@ final class SearchParamsObject {
this.disableTypoToleranceOnAttributes,
this.ignorePlurals,
this.removeStopWords,
- this.keepDiacriticsOnCharacters,
this.queryLanguages,
this.decompoundQuery,
this.enableRules,
@@ -255,10 +253,6 @@ final class SearchParamsObject {
@JsonKey(name: r'ranking')
final List? ranking;
- /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
- @JsonKey(name: r'customRanking')
- final List? customRanking;
-
/// Relevancy threshold below which less relevant results aren't included in the results. You can only set `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas). Use this setting to strike a balance between the relevance and number of returned results.
@JsonKey(name: r'relevancyStrictness')
final int? relevancyStrictness;
@@ -328,10 +322,6 @@ final class SearchParamsObject {
@JsonKey(name: r'removeStopWords')
final dynamic removeStopWords;
- /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
- @JsonKey(name: r'keepDiacriticsOnCharacters')
- final String? keepDiacriticsOnCharacters;
-
/// Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` settings. This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) languages. To support this, you must place the CJK language **first**. **You should always specify a query language.** If you don't specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/), or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/).
@JsonKey(name: r'queryLanguages')
final List? queryLanguages;
@@ -470,7 +460,6 @@ final class SearchParamsObject {
other.enableABTest == enableABTest &&
other.attributesToRetrieve == attributesToRetrieve &&
other.ranking == ranking &&
- other.customRanking == customRanking &&
other.relevancyStrictness == relevancyStrictness &&
other.attributesToHighlight == attributesToHighlight &&
other.attributesToSnippet == attributesToSnippet &&
@@ -488,7 +477,6 @@ final class SearchParamsObject {
disableTypoToleranceOnAttributes &&
other.ignorePlurals == ignorePlurals &&
other.removeStopWords == removeStopWords &&
- other.keepDiacriticsOnCharacters == keepDiacriticsOnCharacters &&
other.queryLanguages == queryLanguages &&
other.decompoundQuery == decompoundQuery &&
other.enableRules == enableRules &&
@@ -551,7 +539,6 @@ final class SearchParamsObject {
enableABTest.hashCode +
attributesToRetrieve.hashCode +
ranking.hashCode +
- customRanking.hashCode +
relevancyStrictness.hashCode +
attributesToHighlight.hashCode +
attributesToSnippet.hashCode +
@@ -567,7 +554,6 @@ final class SearchParamsObject {
disableTypoToleranceOnAttributes.hashCode +
ignorePlurals.hashCode +
removeStopWords.hashCode +
- keepDiacriticsOnCharacters.hashCode +
queryLanguages.hashCode +
decompoundQuery.hashCode +
enableRules.hashCode +
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_params_object.g.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_params_object.g.dart
index af070047a0..1d4487546e 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_params_object.g.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_params_object.g.dart
@@ -69,8 +69,6 @@ SearchParamsObject _$SearchParamsObjectFromJson(Map json) =>
(v) => (v as List?)?.map((e) => e as String).toList()),
ranking: $checkedConvert('ranking',
(v) => (v as List?)?.map((e) => e as String).toList()),
- customRanking: $checkedConvert('customRanking',
- (v) => (v as List?)?.map((e) => e as String).toList()),
relevancyStrictness: $checkedConvert(
'relevancyStrictness', (v) => (v as num?)?.toInt()),
attributesToHighlight: $checkedConvert('attributesToHighlight',
@@ -99,8 +97,6 @@ SearchParamsObject _$SearchParamsObjectFromJson(Map json) =>
(v) => (v as List?)?.map((e) => e as String).toList()),
ignorePlurals: $checkedConvert('ignorePlurals', (v) => v),
removeStopWords: $checkedConvert('removeStopWords', (v) => v),
- keepDiacriticsOnCharacters: $checkedConvert(
- 'keepDiacriticsOnCharacters', (v) => v as String?),
queryLanguages: $checkedConvert(
'queryLanguages',
(v) => (v as List?)
@@ -212,7 +208,6 @@ Map _$SearchParamsObjectToJson(SearchParamsObject instance) =>
if (instance.attributesToRetrieve case final value?)
'attributesToRetrieve': value,
if (instance.ranking case final value?) 'ranking': value,
- if (instance.customRanking case final value?) 'customRanking': value,
if (instance.relevancyStrictness case final value?)
'relevancyStrictness': value,
if (instance.attributesToHighlight case final value?)
@@ -238,8 +233,6 @@ Map _$SearchParamsObjectToJson(SearchParamsObject instance) =>
'disableTypoToleranceOnAttributes': value,
if (instance.ignorePlurals case final value?) 'ignorePlurals': value,
if (instance.removeStopWords case final value?) 'removeStopWords': value,
- if (instance.keepDiacriticsOnCharacters case final value?)
- 'keepDiacriticsOnCharacters': value,
if (instance.queryLanguages?.map((e) => e.toJson()).toList()
case final value?)
'queryLanguages': value,
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/settings_response.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/settings_response.dart
index 6e330abd5f..927e7eac3a 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/settings_response.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/settings_response.dart
@@ -36,9 +36,10 @@ final class SettingsResponse {
this.customNormalization,
this.attributeForDistinct,
this.maxFacetHits,
+ this.keepDiacriticsOnCharacters,
+ this.customRanking,
this.attributesToRetrieve,
this.ranking,
- this.customRanking,
this.relevancyStrictness,
this.attributesToHighlight,
this.attributesToSnippet,
@@ -54,7 +55,6 @@ final class SettingsResponse {
this.disableTypoToleranceOnAttributes,
this.ignorePlurals,
this.removeStopWords,
- this.keepDiacriticsOnCharacters,
this.queryLanguages,
this.decompoundQuery,
this.enableRules,
@@ -156,6 +156,14 @@ final class SettingsResponse {
@JsonKey(name: r'maxFacetHits')
final int? maxFacetHits;
+ /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
+ @JsonKey(name: r'keepDiacriticsOnCharacters')
+ final String? keepDiacriticsOnCharacters;
+
+ /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
+ @JsonKey(name: r'customRanking')
+ final List? customRanking;
+
/// Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. Attribute names are case-sensitive. - `*` retrieves all attributes, except attributes included in the `customRanking` and `unretrievableAttributes` settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the `*`: `[\"*\", \"-ATTRIBUTE\"]`. - The `objectID` attribute is always included.
@JsonKey(name: r'attributesToRetrieve')
final List? attributesToRetrieve;
@@ -164,10 +172,6 @@ final class SettingsResponse {
@JsonKey(name: r'ranking')
final List? ranking;
- /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
- @JsonKey(name: r'customRanking')
- final List? customRanking;
-
/// Relevancy threshold below which less relevant results aren't included in the results. You can only set `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas). Use this setting to strike a balance between the relevance and number of returned results.
@JsonKey(name: r'relevancyStrictness')
final int? relevancyStrictness;
@@ -237,10 +241,6 @@ final class SettingsResponse {
@JsonKey(name: r'removeStopWords')
final dynamic removeStopWords;
- /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
- @JsonKey(name: r'keepDiacriticsOnCharacters')
- final String? keepDiacriticsOnCharacters;
-
/// Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` settings. This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) languages. To support this, you must place the CJK language **first**. **You should always specify a query language.** If you don't specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/), or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/).
@JsonKey(name: r'queryLanguages')
final List? queryLanguages;
@@ -369,9 +369,10 @@ final class SettingsResponse {
other.customNormalization == customNormalization &&
other.attributeForDistinct == attributeForDistinct &&
other.maxFacetHits == maxFacetHits &&
+ other.keepDiacriticsOnCharacters == keepDiacriticsOnCharacters &&
+ other.customRanking == customRanking &&
other.attributesToRetrieve == attributesToRetrieve &&
other.ranking == ranking &&
- other.customRanking == customRanking &&
other.relevancyStrictness == relevancyStrictness &&
other.attributesToHighlight == attributesToHighlight &&
other.attributesToSnippet == attributesToSnippet &&
@@ -389,7 +390,6 @@ final class SettingsResponse {
disableTypoToleranceOnAttributes &&
other.ignorePlurals == ignorePlurals &&
other.removeStopWords == removeStopWords &&
- other.keepDiacriticsOnCharacters == keepDiacriticsOnCharacters &&
other.queryLanguages == queryLanguages &&
other.decompoundQuery == decompoundQuery &&
other.enableRules == enableRules &&
@@ -437,9 +437,10 @@ final class SettingsResponse {
customNormalization.hashCode +
attributeForDistinct.hashCode +
maxFacetHits.hashCode +
+ keepDiacriticsOnCharacters.hashCode +
+ customRanking.hashCode +
attributesToRetrieve.hashCode +
ranking.hashCode +
- customRanking.hashCode +
relevancyStrictness.hashCode +
attributesToHighlight.hashCode +
attributesToSnippet.hashCode +
@@ -455,7 +456,6 @@ final class SettingsResponse {
disableTypoToleranceOnAttributes.hashCode +
ignorePlurals.hashCode +
removeStopWords.hashCode +
- keepDiacriticsOnCharacters.hashCode +
queryLanguages.hashCode +
decompoundQuery.hashCode +
enableRules.hashCode +
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/settings_response.g.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/settings_response.g.dart
index 497156d92d..f2e37442a1 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/settings_response.g.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/settings_response.g.dart
@@ -57,12 +57,14 @@ SettingsResponse _$SettingsResponseFromJson(Map json) =>
$checkedConvert('attributeForDistinct', (v) => v as String?),
maxFacetHits:
$checkedConvert('maxFacetHits', (v) => (v as num?)?.toInt()),
+ keepDiacriticsOnCharacters: $checkedConvert(
+ 'keepDiacriticsOnCharacters', (v) => v as String?),
+ customRanking: $checkedConvert('customRanking',
+ (v) => (v as List?)?.map((e) => e as String).toList()),
attributesToRetrieve: $checkedConvert('attributesToRetrieve',
(v) => (v as List?)?.map((e) => e as String).toList()),
ranking: $checkedConvert('ranking',
(v) => (v as List?)?.map((e) => e as String).toList()),
- customRanking: $checkedConvert('customRanking',
- (v) => (v as List?)?.map((e) => e as String).toList()),
relevancyStrictness: $checkedConvert(
'relevancyStrictness', (v) => (v as num?)?.toInt()),
attributesToHighlight: $checkedConvert('attributesToHighlight',
@@ -91,8 +93,6 @@ SettingsResponse _$SettingsResponseFromJson(Map json) =>
(v) => (v as List?)?.map((e) => e as String).toList()),
ignorePlurals: $checkedConvert('ignorePlurals', (v) => v),
removeStopWords: $checkedConvert('removeStopWords', (v) => v),
- keepDiacriticsOnCharacters: $checkedConvert(
- 'keepDiacriticsOnCharacters', (v) => v as String?),
queryLanguages: $checkedConvert(
'queryLanguages',
(v) => (v as List?)
@@ -194,10 +194,12 @@ Map _$SettingsResponseToJson(SettingsResponse instance) =>
if (instance.attributeForDistinct case final value?)
'attributeForDistinct': value,
if (instance.maxFacetHits case final value?) 'maxFacetHits': value,
+ if (instance.keepDiacriticsOnCharacters case final value?)
+ 'keepDiacriticsOnCharacters': value,
+ if (instance.customRanking case final value?) 'customRanking': value,
if (instance.attributesToRetrieve case final value?)
'attributesToRetrieve': value,
if (instance.ranking case final value?) 'ranking': value,
- if (instance.customRanking case final value?) 'customRanking': value,
if (instance.relevancyStrictness case final value?)
'relevancyStrictness': value,
if (instance.attributesToHighlight case final value?)
@@ -223,8 +225,6 @@ Map _$SettingsResponseToJson(SettingsResponse instance) =>
'disableTypoToleranceOnAttributes': value,
if (instance.ignorePlurals case final value?) 'ignorePlurals': value,
if (instance.removeStopWords case final value?) 'removeStopWords': value,
- if (instance.keepDiacriticsOnCharacters case final value?)
- 'keepDiacriticsOnCharacters': value,
if (instance.queryLanguages?.map((e) => e.toJson()).toList()
case final value?)
'queryLanguages': value,
diff --git a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/base_index_settings.dart b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/base_index_settings.dart
index f4bc591863..6b226baca2 100644
--- a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/base_index_settings.dart
+++ b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/base_index_settings.dart
@@ -28,6 +28,8 @@ final class BaseIndexSettings {
this.customNormalization,
this.attributeForDistinct,
this.maxFacetHits,
+ this.keepDiacriticsOnCharacters,
+ this.customRanking,
});
/// Attributes used for [faceting](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/). Facets are attributes that let you categorize search results. They can be used for filtering search results. By default, no attribute is used for faceting. Attribute names are case-sensitive. **Modifiers** - `filterOnly(\"ATTRIBUTE\")`. Allows the attribute to be used as a filter but doesn't evaluate the facet values. - `searchable(\"ATTRIBUTE\")`. Allows searching for facet values. - `afterDistinct(\"ATTRIBUTE\")`. Evaluates the facet count _after_ deduplication with `distinct`. This ensures accurate facet counts. You can apply this modifier to searchable facets: `afterDistinct(searchable(ATTRIBUTE))`.
@@ -104,6 +106,14 @@ final class BaseIndexSettings {
@JsonKey(name: r'maxFacetHits')
final int? maxFacetHits;
+ /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
+ @JsonKey(name: r'keepDiacriticsOnCharacters')
+ final String? keepDiacriticsOnCharacters;
+
+ /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
+ @JsonKey(name: r'customRanking')
+ final List? customRanking;
+
@override
bool operator ==(Object other) =>
identical(this, other) ||
@@ -127,7 +137,9 @@ final class BaseIndexSettings {
other.userData == userData &&
other.customNormalization == customNormalization &&
other.attributeForDistinct == attributeForDistinct &&
- other.maxFacetHits == maxFacetHits;
+ other.maxFacetHits == maxFacetHits &&
+ other.keepDiacriticsOnCharacters == keepDiacriticsOnCharacters &&
+ other.customRanking == customRanking;
@override
int get hashCode =>
@@ -148,7 +160,9 @@ final class BaseIndexSettings {
userData.hashCode +
customNormalization.hashCode +
attributeForDistinct.hashCode +
- maxFacetHits.hashCode;
+ maxFacetHits.hashCode +
+ keepDiacriticsOnCharacters.hashCode +
+ customRanking.hashCode;
factory BaseIndexSettings.fromJson(Map json) =>
_$BaseIndexSettingsFromJson(json);
diff --git a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/base_index_settings.g.dart b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/base_index_settings.g.dart
index 4e0257eeac..29b1134b36 100644
--- a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/base_index_settings.g.dart
+++ b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/base_index_settings.g.dart
@@ -57,6 +57,10 @@ BaseIndexSettings _$BaseIndexSettingsFromJson(Map json) =>
$checkedConvert('attributeForDistinct', (v) => v as String?),
maxFacetHits:
$checkedConvert('maxFacetHits', (v) => (v as num?)?.toInt()),
+ keepDiacriticsOnCharacters: $checkedConvert(
+ 'keepDiacriticsOnCharacters', (v) => v as String?),
+ customRanking: $checkedConvert('customRanking',
+ (v) => (v as List?)?.map((e) => e as String).toList()),
);
return val;
},
@@ -98,6 +102,9 @@ Map _$BaseIndexSettingsToJson(BaseIndexSettings instance) =>
if (instance.attributeForDistinct case final value?)
'attributeForDistinct': value,
if (instance.maxFacetHits case final value?) 'maxFacetHits': value,
+ if (instance.keepDiacriticsOnCharacters case final value?)
+ 'keepDiacriticsOnCharacters': value,
+ if (instance.customRanking case final value?) 'customRanking': value,
};
const _$SupportedLanguageEnumMap = {
diff --git a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/fallback_params.dart b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/fallback_params.dart
index 2760dc83d5..aca5e0ef80 100644
--- a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/fallback_params.dart
+++ b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/fallback_params.dart
@@ -63,6 +63,8 @@ final class FallbackParams {
this.customNormalization,
this.attributeForDistinct,
this.maxFacetHits,
+ this.keepDiacriticsOnCharacters,
+ this.customRanking,
this.attributesToRetrieve,
this.ranking,
this.relevancyStrictness,
@@ -314,6 +316,14 @@ final class FallbackParams {
@JsonKey(name: r'maxFacetHits')
final int? maxFacetHits;
+ /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
+ @JsonKey(name: r'keepDiacriticsOnCharacters')
+ final String? keepDiacriticsOnCharacters;
+
+ /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
+ @JsonKey(name: r'customRanking')
+ final List? customRanking;
+
/// Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. Attribute names are case-sensitive. - `*` retrieves all attributes, except attributes included in the `customRanking` and `unretrievableAttributes` settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the `*`: `[\"*\", \"-ATTRIBUTE\"]`. - The `objectID` attribute is always included.
@JsonKey(name: r'attributesToRetrieve')
final List? attributesToRetrieve;
@@ -532,6 +542,8 @@ final class FallbackParams {
other.customNormalization == customNormalization &&
other.attributeForDistinct == attributeForDistinct &&
other.maxFacetHits == maxFacetHits &&
+ other.keepDiacriticsOnCharacters == keepDiacriticsOnCharacters &&
+ other.customRanking == customRanking &&
other.attributesToRetrieve == attributesToRetrieve &&
other.ranking == ranking &&
other.relevancyStrictness == relevancyStrictness &&
@@ -623,6 +635,8 @@ final class FallbackParams {
customNormalization.hashCode +
attributeForDistinct.hashCode +
maxFacetHits.hashCode +
+ keepDiacriticsOnCharacters.hashCode +
+ customRanking.hashCode +
attributesToRetrieve.hashCode +
ranking.hashCode +
relevancyStrictness.hashCode +
diff --git a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/fallback_params.g.dart b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/fallback_params.g.dart
index d4b90dd8ae..79fb55cb62 100644
--- a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/fallback_params.g.dart
+++ b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/fallback_params.g.dart
@@ -107,6 +107,10 @@ FallbackParams _$FallbackParamsFromJson(Map json) =>
$checkedConvert('attributeForDistinct', (v) => v as String?),
maxFacetHits:
$checkedConvert('maxFacetHits', (v) => (v as num?)?.toInt()),
+ keepDiacriticsOnCharacters: $checkedConvert(
+ 'keepDiacriticsOnCharacters', (v) => v as String?),
+ customRanking: $checkedConvert('customRanking',
+ (v) => (v as List?)?.map((e) => e as String).toList()),
attributesToRetrieve: $checkedConvert('attributesToRetrieve',
(v) => (v as List?)?.map((e) => e as String).toList()),
ranking: $checkedConvert('ranking',
@@ -269,6 +273,9 @@ Map _$FallbackParamsToJson(FallbackParams instance) =>
if (instance.attributeForDistinct case final value?)
'attributeForDistinct': value,
if (instance.maxFacetHits case final value?) 'maxFacetHits': value,
+ if (instance.keepDiacriticsOnCharacters case final value?)
+ 'keepDiacriticsOnCharacters': value,
+ if (instance.customRanking case final value?) 'customRanking': value,
if (instance.attributesToRetrieve case final value?)
'attributesToRetrieve': value,
if (instance.ranking case final value?) 'ranking': value,
diff --git a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/recommend_index_settings.dart b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/recommend_index_settings.dart
index cc0d274ebb..8ad0b3f17d 100644
--- a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/recommend_index_settings.dart
+++ b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/recommend_index_settings.dart
@@ -34,6 +34,8 @@ final class RecommendIndexSettings {
this.customNormalization,
this.attributeForDistinct,
this.maxFacetHits,
+ this.keepDiacriticsOnCharacters,
+ this.customRanking,
this.attributesToRetrieve,
this.ranking,
this.relevancyStrictness,
@@ -148,6 +150,14 @@ final class RecommendIndexSettings {
@JsonKey(name: r'maxFacetHits')
final int? maxFacetHits;
+ /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
+ @JsonKey(name: r'keepDiacriticsOnCharacters')
+ final String? keepDiacriticsOnCharacters;
+
+ /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
+ @JsonKey(name: r'customRanking')
+ final List? customRanking;
+
/// Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. Attribute names are case-sensitive. - `*` retrieves all attributes, except attributes included in the `customRanking` and `unretrievableAttributes` settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the `*`: `[\"*\", \"-ATTRIBUTE\"]`. - The `objectID` attribute is always included.
@JsonKey(name: r'attributesToRetrieve')
final List? attributesToRetrieve;
@@ -337,6 +347,8 @@ final class RecommendIndexSettings {
other.customNormalization == customNormalization &&
other.attributeForDistinct == attributeForDistinct &&
other.maxFacetHits == maxFacetHits &&
+ other.keepDiacriticsOnCharacters == keepDiacriticsOnCharacters &&
+ other.customRanking == customRanking &&
other.attributesToRetrieve == attributesToRetrieve &&
other.ranking == ranking &&
other.relevancyStrictness == relevancyStrictness &&
@@ -399,6 +411,8 @@ final class RecommendIndexSettings {
customNormalization.hashCode +
attributeForDistinct.hashCode +
maxFacetHits.hashCode +
+ keepDiacriticsOnCharacters.hashCode +
+ customRanking.hashCode +
attributesToRetrieve.hashCode +
ranking.hashCode +
relevancyStrictness.hashCode +
diff --git a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/recommend_index_settings.g.dart b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/recommend_index_settings.g.dart
index 099ac372fa..437572b876 100644
--- a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/recommend_index_settings.g.dart
+++ b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/recommend_index_settings.g.dart
@@ -58,6 +58,10 @@ RecommendIndexSettings _$RecommendIndexSettingsFromJson(
$checkedConvert('attributeForDistinct', (v) => v as String?),
maxFacetHits:
$checkedConvert('maxFacetHits', (v) => (v as num?)?.toInt()),
+ keepDiacriticsOnCharacters: $checkedConvert(
+ 'keepDiacriticsOnCharacters', (v) => v as String?),
+ customRanking: $checkedConvert('customRanking',
+ (v) => (v as List?)?.map((e) => e as String).toList()),
attributesToRetrieve: $checkedConvert('attributesToRetrieve',
(v) => (v as List?)?.map((e) => e as String).toList()),
ranking: $checkedConvert('ranking',
@@ -182,6 +186,9 @@ Map _$RecommendIndexSettingsToJson(
if (instance.attributeForDistinct case final value?)
'attributeForDistinct': value,
if (instance.maxFacetHits case final value?) 'maxFacetHits': value,
+ if (instance.keepDiacriticsOnCharacters case final value?)
+ 'keepDiacriticsOnCharacters': value,
+ if (instance.customRanking case final value?) 'customRanking': value,
if (instance.attributesToRetrieve case final value?)
'attributesToRetrieve': value,
if (instance.ranking case final value?) 'ranking': value,
diff --git a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/recommend_search_params.dart b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/recommend_search_params.dart
index 87848d10ac..7b01d2027f 100644
--- a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/recommend_search_params.dart
+++ b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/recommend_search_params.dart
@@ -63,6 +63,8 @@ final class RecommendSearchParams {
this.customNormalization,
this.attributeForDistinct,
this.maxFacetHits,
+ this.keepDiacriticsOnCharacters,
+ this.customRanking,
this.attributesToRetrieve,
this.ranking,
this.relevancyStrictness,
@@ -314,6 +316,14 @@ final class RecommendSearchParams {
@JsonKey(name: r'maxFacetHits')
final int? maxFacetHits;
+ /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
+ @JsonKey(name: r'keepDiacriticsOnCharacters')
+ final String? keepDiacriticsOnCharacters;
+
+ /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
+ @JsonKey(name: r'customRanking')
+ final List? customRanking;
+
/// Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. Attribute names are case-sensitive. - `*` retrieves all attributes, except attributes included in the `customRanking` and `unretrievableAttributes` settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the `*`: `[\"*\", \"-ATTRIBUTE\"]`. - The `objectID` attribute is always included.
@JsonKey(name: r'attributesToRetrieve')
final List? attributesToRetrieve;
@@ -532,6 +542,8 @@ final class RecommendSearchParams {
other.customNormalization == customNormalization &&
other.attributeForDistinct == attributeForDistinct &&
other.maxFacetHits == maxFacetHits &&
+ other.keepDiacriticsOnCharacters == keepDiacriticsOnCharacters &&
+ other.customRanking == customRanking &&
other.attributesToRetrieve == attributesToRetrieve &&
other.ranking == ranking &&
other.relevancyStrictness == relevancyStrictness &&
@@ -623,6 +635,8 @@ final class RecommendSearchParams {
customNormalization.hashCode +
attributeForDistinct.hashCode +
maxFacetHits.hashCode +
+ keepDiacriticsOnCharacters.hashCode +
+ customRanking.hashCode +
attributesToRetrieve.hashCode +
ranking.hashCode +
relevancyStrictness.hashCode +
diff --git a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/recommend_search_params.g.dart b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/recommend_search_params.g.dart
index 6ca014ecc0..01f13df41b 100644
--- a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/recommend_search_params.g.dart
+++ b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/recommend_search_params.g.dart
@@ -108,6 +108,10 @@ RecommendSearchParams _$RecommendSearchParamsFromJson(
$checkedConvert('attributeForDistinct', (v) => v as String?),
maxFacetHits:
$checkedConvert('maxFacetHits', (v) => (v as num?)?.toInt()),
+ keepDiacriticsOnCharacters: $checkedConvert(
+ 'keepDiacriticsOnCharacters', (v) => v as String?),
+ customRanking: $checkedConvert('customRanking',
+ (v) => (v as List?)?.map((e) => e as String).toList()),
attributesToRetrieve: $checkedConvert('attributesToRetrieve',
(v) => (v as List?)?.map((e) => e as String).toList()),
ranking: $checkedConvert('ranking',
@@ -271,6 +275,9 @@ Map _$RecommendSearchParamsToJson(
if (instance.attributeForDistinct case final value?)
'attributeForDistinct': value,
if (instance.maxFacetHits case final value?) 'maxFacetHits': value,
+ if (instance.keepDiacriticsOnCharacters case final value?)
+ 'keepDiacriticsOnCharacters': value,
+ if (instance.customRanking case final value?) 'customRanking': value,
if (instance.attributesToRetrieve case final value?)
'attributesToRetrieve': value,
if (instance.ranking case final value?) 'ranking': value,
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/base_index_settings.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/base_index_settings.dart
index ab405f0455..8defd6fef5 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/base_index_settings.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/base_index_settings.dart
@@ -28,6 +28,8 @@ final class BaseIndexSettings {
this.customNormalization,
this.attributeForDistinct,
this.maxFacetHits,
+ this.keepDiacriticsOnCharacters,
+ this.customRanking,
});
/// Attributes used for [faceting](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/). Facets are attributes that let you categorize search results. They can be used for filtering search results. By default, no attribute is used for faceting. Attribute names are case-sensitive. **Modifiers** - `filterOnly(\"ATTRIBUTE\")`. Allows the attribute to be used as a filter but doesn't evaluate the facet values. - `searchable(\"ATTRIBUTE\")`. Allows searching for facet values. - `afterDistinct(\"ATTRIBUTE\")`. Evaluates the facet count _after_ deduplication with `distinct`. This ensures accurate facet counts. You can apply this modifier to searchable facets: `afterDistinct(searchable(ATTRIBUTE))`.
@@ -104,6 +106,14 @@ final class BaseIndexSettings {
@JsonKey(name: r'maxFacetHits')
final int? maxFacetHits;
+ /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
+ @JsonKey(name: r'keepDiacriticsOnCharacters')
+ final String? keepDiacriticsOnCharacters;
+
+ /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
+ @JsonKey(name: r'customRanking')
+ final List? customRanking;
+
@override
bool operator ==(Object other) =>
identical(this, other) ||
@@ -127,7 +137,9 @@ final class BaseIndexSettings {
other.userData == userData &&
other.customNormalization == customNormalization &&
other.attributeForDistinct == attributeForDistinct &&
- other.maxFacetHits == maxFacetHits;
+ other.maxFacetHits == maxFacetHits &&
+ other.keepDiacriticsOnCharacters == keepDiacriticsOnCharacters &&
+ other.customRanking == customRanking;
@override
int get hashCode =>
@@ -148,7 +160,9 @@ final class BaseIndexSettings {
userData.hashCode +
customNormalization.hashCode +
attributeForDistinct.hashCode +
- maxFacetHits.hashCode;
+ maxFacetHits.hashCode +
+ keepDiacriticsOnCharacters.hashCode +
+ customRanking.hashCode;
factory BaseIndexSettings.fromJson(Map json) =>
_$BaseIndexSettingsFromJson(json);
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/base_index_settings.g.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/base_index_settings.g.dart
index 4e0257eeac..29b1134b36 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/base_index_settings.g.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/base_index_settings.g.dart
@@ -57,6 +57,10 @@ BaseIndexSettings _$BaseIndexSettingsFromJson(Map json) =>
$checkedConvert('attributeForDistinct', (v) => v as String?),
maxFacetHits:
$checkedConvert('maxFacetHits', (v) => (v as num?)?.toInt()),
+ keepDiacriticsOnCharacters: $checkedConvert(
+ 'keepDiacriticsOnCharacters', (v) => v as String?),
+ customRanking: $checkedConvert('customRanking',
+ (v) => (v as List?)?.map((e) => e as String).toList()),
);
return val;
},
@@ -98,6 +102,9 @@ Map _$BaseIndexSettingsToJson(BaseIndexSettings instance) =>
if (instance.attributeForDistinct case final value?)
'attributeForDistinct': value,
if (instance.maxFacetHits case final value?) 'maxFacetHits': value,
+ if (instance.keepDiacriticsOnCharacters case final value?)
+ 'keepDiacriticsOnCharacters': value,
+ if (instance.customRanking case final value?) 'customRanking': value,
};
const _$SupportedLanguageEnumMap = {
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/browse_params_object.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/browse_params_object.dart
index 5625ddc6b9..3ac581225a 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/browse_params_object.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/browse_params_object.dart
@@ -52,7 +52,6 @@ final class BrowseParamsObject {
this.enableABTest,
this.attributesToRetrieve,
this.ranking,
- this.customRanking,
this.relevancyStrictness,
this.attributesToHighlight,
this.attributesToSnippet,
@@ -68,7 +67,6 @@ final class BrowseParamsObject {
this.disableTypoToleranceOnAttributes,
this.ignorePlurals,
this.removeStopWords,
- this.keepDiacriticsOnCharacters,
this.queryLanguages,
this.decompoundQuery,
this.enableRules,
@@ -256,10 +254,6 @@ final class BrowseParamsObject {
@JsonKey(name: r'ranking')
final List? ranking;
- /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
- @JsonKey(name: r'customRanking')
- final List? customRanking;
-
/// Relevancy threshold below which less relevant results aren't included in the results. You can only set `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas). Use this setting to strike a balance between the relevance and number of returned results.
@JsonKey(name: r'relevancyStrictness')
final int? relevancyStrictness;
@@ -329,10 +323,6 @@ final class BrowseParamsObject {
@JsonKey(name: r'removeStopWords')
final dynamic removeStopWords;
- /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
- @JsonKey(name: r'keepDiacriticsOnCharacters')
- final String? keepDiacriticsOnCharacters;
-
/// Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` settings. This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) languages. To support this, you must place the CJK language **first**. **You should always specify a query language.** If you don't specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/), or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/).
@JsonKey(name: r'queryLanguages')
final List? queryLanguages;
@@ -475,7 +465,6 @@ final class BrowseParamsObject {
other.enableABTest == enableABTest &&
other.attributesToRetrieve == attributesToRetrieve &&
other.ranking == ranking &&
- other.customRanking == customRanking &&
other.relevancyStrictness == relevancyStrictness &&
other.attributesToHighlight == attributesToHighlight &&
other.attributesToSnippet == attributesToSnippet &&
@@ -493,7 +482,6 @@ final class BrowseParamsObject {
disableTypoToleranceOnAttributes &&
other.ignorePlurals == ignorePlurals &&
other.removeStopWords == removeStopWords &&
- other.keepDiacriticsOnCharacters == keepDiacriticsOnCharacters &&
other.queryLanguages == queryLanguages &&
other.decompoundQuery == decompoundQuery &&
other.enableRules == enableRules &&
@@ -557,7 +545,6 @@ final class BrowseParamsObject {
enableABTest.hashCode +
attributesToRetrieve.hashCode +
ranking.hashCode +
- customRanking.hashCode +
relevancyStrictness.hashCode +
attributesToHighlight.hashCode +
attributesToSnippet.hashCode +
@@ -573,7 +560,6 @@ final class BrowseParamsObject {
disableTypoToleranceOnAttributes.hashCode +
ignorePlurals.hashCode +
removeStopWords.hashCode +
- keepDiacriticsOnCharacters.hashCode +
queryLanguages.hashCode +
decompoundQuery.hashCode +
enableRules.hashCode +
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/browse_params_object.g.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/browse_params_object.g.dart
index 11885620e3..c0e6e46ecf 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/browse_params_object.g.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/browse_params_object.g.dart
@@ -69,8 +69,6 @@ BrowseParamsObject _$BrowseParamsObjectFromJson(Map json) =>
(v) => (v as List?)?.map((e) => e as String).toList()),
ranking: $checkedConvert('ranking',
(v) => (v as List?)?.map((e) => e as String).toList()),
- customRanking: $checkedConvert('customRanking',
- (v) => (v as List?)?.map((e) => e as String).toList()),
relevancyStrictness: $checkedConvert(
'relevancyStrictness', (v) => (v as num?)?.toInt()),
attributesToHighlight: $checkedConvert('attributesToHighlight',
@@ -99,8 +97,6 @@ BrowseParamsObject _$BrowseParamsObjectFromJson(Map json) =>
(v) => (v as List?)?.map((e) => e as String).toList()),
ignorePlurals: $checkedConvert('ignorePlurals', (v) => v),
removeStopWords: $checkedConvert('removeStopWords', (v) => v),
- keepDiacriticsOnCharacters: $checkedConvert(
- 'keepDiacriticsOnCharacters', (v) => v as String?),
queryLanguages: $checkedConvert(
'queryLanguages',
(v) => (v as List?)
@@ -213,7 +209,6 @@ Map _$BrowseParamsObjectToJson(BrowseParamsObject instance) =>
if (instance.attributesToRetrieve case final value?)
'attributesToRetrieve': value,
if (instance.ranking case final value?) 'ranking': value,
- if (instance.customRanking case final value?) 'customRanking': value,
if (instance.relevancyStrictness case final value?)
'relevancyStrictness': value,
if (instance.attributesToHighlight case final value?)
@@ -239,8 +234,6 @@ Map _$BrowseParamsObjectToJson(BrowseParamsObject instance) =>
'disableTypoToleranceOnAttributes': value,
if (instance.ignorePlurals case final value?) 'ignorePlurals': value,
if (instance.removeStopWords case final value?) 'removeStopWords': value,
- if (instance.keepDiacriticsOnCharacters case final value?)
- 'keepDiacriticsOnCharacters': value,
if (instance.queryLanguages?.map((e) => e.toJson()).toList()
case final value?)
'queryLanguages': value,
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/consequence_params.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/consequence_params.dart
index b818dfaace..e2b1695232 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/consequence_params.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/consequence_params.dart
@@ -51,7 +51,6 @@ final class ConsequenceParams {
this.enableABTest,
this.attributesToRetrieve,
this.ranking,
- this.customRanking,
this.relevancyStrictness,
this.attributesToHighlight,
this.attributesToSnippet,
@@ -67,7 +66,6 @@ final class ConsequenceParams {
this.disableTypoToleranceOnAttributes,
this.ignorePlurals,
this.removeStopWords,
- this.keepDiacriticsOnCharacters,
this.queryLanguages,
this.decompoundQuery,
this.enableRules,
@@ -253,10 +251,6 @@ final class ConsequenceParams {
@JsonKey(name: r'ranking')
final List? ranking;
- /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
- @JsonKey(name: r'customRanking')
- final List? customRanking;
-
/// Relevancy threshold below which less relevant results aren't included in the results. You can only set `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas). Use this setting to strike a balance between the relevance and number of returned results.
@JsonKey(name: r'relevancyStrictness')
final int? relevancyStrictness;
@@ -326,10 +320,6 @@ final class ConsequenceParams {
@JsonKey(name: r'removeStopWords')
final dynamic removeStopWords;
- /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
- @JsonKey(name: r'keepDiacriticsOnCharacters')
- final String? keepDiacriticsOnCharacters;
-
/// Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` settings. This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) languages. To support this, you must place the CJK language **first**. **You should always specify a query language.** If you don't specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/), or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/).
@JsonKey(name: r'queryLanguages')
final List? queryLanguages;
@@ -485,7 +475,6 @@ final class ConsequenceParams {
other.enableABTest == enableABTest &&
other.attributesToRetrieve == attributesToRetrieve &&
other.ranking == ranking &&
- other.customRanking == customRanking &&
other.relevancyStrictness == relevancyStrictness &&
other.attributesToHighlight == attributesToHighlight &&
other.attributesToSnippet == attributesToSnippet &&
@@ -503,7 +492,6 @@ final class ConsequenceParams {
disableTypoToleranceOnAttributes &&
other.ignorePlurals == ignorePlurals &&
other.removeStopWords == removeStopWords &&
- other.keepDiacriticsOnCharacters == keepDiacriticsOnCharacters &&
other.queryLanguages == queryLanguages &&
other.decompoundQuery == decompoundQuery &&
other.enableRules == enableRules &&
@@ -568,7 +556,6 @@ final class ConsequenceParams {
enableABTest.hashCode +
attributesToRetrieve.hashCode +
ranking.hashCode +
- customRanking.hashCode +
relevancyStrictness.hashCode +
attributesToHighlight.hashCode +
attributesToSnippet.hashCode +
@@ -584,7 +571,6 @@ final class ConsequenceParams {
disableTypoToleranceOnAttributes.hashCode +
ignorePlurals.hashCode +
removeStopWords.hashCode +
- keepDiacriticsOnCharacters.hashCode +
queryLanguages.hashCode +
decompoundQuery.hashCode +
enableRules.hashCode +
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/consequence_params.g.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/consequence_params.g.dart
index 065434f432..cf51274957 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/consequence_params.g.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/consequence_params.g.dart
@@ -68,8 +68,6 @@ ConsequenceParams _$ConsequenceParamsFromJson(Map json) =>
(v) => (v as List?)?.map((e) => e as String).toList()),
ranking: $checkedConvert('ranking',
(v) => (v as List?)?.map((e) => e as String).toList()),
- customRanking: $checkedConvert('customRanking',
- (v) => (v as List?)?.map((e) => e as String).toList()),
relevancyStrictness: $checkedConvert(
'relevancyStrictness', (v) => (v as num?)?.toInt()),
attributesToHighlight: $checkedConvert('attributesToHighlight',
@@ -98,8 +96,6 @@ ConsequenceParams _$ConsequenceParamsFromJson(Map json) =>
(v) => (v as List?)?.map((e) => e as String).toList()),
ignorePlurals: $checkedConvert('ignorePlurals', (v) => v),
removeStopWords: $checkedConvert('removeStopWords', (v) => v),
- keepDiacriticsOnCharacters: $checkedConvert(
- 'keepDiacriticsOnCharacters', (v) => v as String?),
queryLanguages: $checkedConvert(
'queryLanguages',
(v) => (v as List?)
@@ -215,7 +211,6 @@ Map _$ConsequenceParamsToJson(ConsequenceParams instance) =>
if (instance.attributesToRetrieve case final value?)
'attributesToRetrieve': value,
if (instance.ranking case final value?) 'ranking': value,
- if (instance.customRanking case final value?) 'customRanking': value,
if (instance.relevancyStrictness case final value?)
'relevancyStrictness': value,
if (instance.attributesToHighlight case final value?)
@@ -241,8 +236,6 @@ Map _$ConsequenceParamsToJson(ConsequenceParams instance) =>
'disableTypoToleranceOnAttributes': value,
if (instance.ignorePlurals case final value?) 'ignorePlurals': value,
if (instance.removeStopWords case final value?) 'removeStopWords': value,
- if (instance.keepDiacriticsOnCharacters case final value?)
- 'keepDiacriticsOnCharacters': value,
if (instance.queryLanguages?.map((e) => e.toJson()).toList()
case final value?)
'queryLanguages': value,
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/index_settings.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/index_settings.dart
index 21f010e98e..d1e9780dbc 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/index_settings.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/index_settings.dart
@@ -36,9 +36,10 @@ final class IndexSettings {
this.customNormalization,
this.attributeForDistinct,
this.maxFacetHits,
+ this.keepDiacriticsOnCharacters,
+ this.customRanking,
this.attributesToRetrieve,
this.ranking,
- this.customRanking,
this.relevancyStrictness,
this.attributesToHighlight,
this.attributesToSnippet,
@@ -54,7 +55,6 @@ final class IndexSettings {
this.disableTypoToleranceOnAttributes,
this.ignorePlurals,
this.removeStopWords,
- this.keepDiacriticsOnCharacters,
this.queryLanguages,
this.decompoundQuery,
this.enableRules,
@@ -155,6 +155,14 @@ final class IndexSettings {
@JsonKey(name: r'maxFacetHits')
final int? maxFacetHits;
+ /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
+ @JsonKey(name: r'keepDiacriticsOnCharacters')
+ final String? keepDiacriticsOnCharacters;
+
+ /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
+ @JsonKey(name: r'customRanking')
+ final List? customRanking;
+
/// Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. Attribute names are case-sensitive. - `*` retrieves all attributes, except attributes included in the `customRanking` and `unretrievableAttributes` settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the `*`: `[\"*\", \"-ATTRIBUTE\"]`. - The `objectID` attribute is always included.
@JsonKey(name: r'attributesToRetrieve')
final List? attributesToRetrieve;
@@ -163,10 +171,6 @@ final class IndexSettings {
@JsonKey(name: r'ranking')
final List? ranking;
- /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
- @JsonKey(name: r'customRanking')
- final List? customRanking;
-
/// Relevancy threshold below which less relevant results aren't included in the results. You can only set `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas). Use this setting to strike a balance between the relevance and number of returned results.
@JsonKey(name: r'relevancyStrictness')
final int? relevancyStrictness;
@@ -236,10 +240,6 @@ final class IndexSettings {
@JsonKey(name: r'removeStopWords')
final dynamic removeStopWords;
- /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
- @JsonKey(name: r'keepDiacriticsOnCharacters')
- final String? keepDiacriticsOnCharacters;
-
/// Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` settings. This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) languages. To support this, you must place the CJK language **first**. **You should always specify a query language.** If you don't specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/), or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/).
@JsonKey(name: r'queryLanguages')
final List? queryLanguages;
@@ -364,9 +364,10 @@ final class IndexSettings {
other.customNormalization == customNormalization &&
other.attributeForDistinct == attributeForDistinct &&
other.maxFacetHits == maxFacetHits &&
+ other.keepDiacriticsOnCharacters == keepDiacriticsOnCharacters &&
+ other.customRanking == customRanking &&
other.attributesToRetrieve == attributesToRetrieve &&
other.ranking == ranking &&
- other.customRanking == customRanking &&
other.relevancyStrictness == relevancyStrictness &&
other.attributesToHighlight == attributesToHighlight &&
other.attributesToSnippet == attributesToSnippet &&
@@ -384,7 +385,6 @@ final class IndexSettings {
disableTypoToleranceOnAttributes &&
other.ignorePlurals == ignorePlurals &&
other.removeStopWords == removeStopWords &&
- other.keepDiacriticsOnCharacters == keepDiacriticsOnCharacters &&
other.queryLanguages == queryLanguages &&
other.decompoundQuery == decompoundQuery &&
other.enableRules == enableRules &&
@@ -431,9 +431,10 @@ final class IndexSettings {
customNormalization.hashCode +
attributeForDistinct.hashCode +
maxFacetHits.hashCode +
+ keepDiacriticsOnCharacters.hashCode +
+ customRanking.hashCode +
attributesToRetrieve.hashCode +
ranking.hashCode +
- customRanking.hashCode +
relevancyStrictness.hashCode +
attributesToHighlight.hashCode +
attributesToSnippet.hashCode +
@@ -449,7 +450,6 @@ final class IndexSettings {
disableTypoToleranceOnAttributes.hashCode +
ignorePlurals.hashCode +
removeStopWords.hashCode +
- keepDiacriticsOnCharacters.hashCode +
queryLanguages.hashCode +
decompoundQuery.hashCode +
enableRules.hashCode +
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/index_settings.g.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/index_settings.g.dart
index 083b83674d..3234f2dc0f 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/index_settings.g.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/index_settings.g.dart
@@ -57,12 +57,14 @@ IndexSettings _$IndexSettingsFromJson(Map json) =>
$checkedConvert('attributeForDistinct', (v) => v as String?),
maxFacetHits:
$checkedConvert('maxFacetHits', (v) => (v as num?)?.toInt()),
+ keepDiacriticsOnCharacters: $checkedConvert(
+ 'keepDiacriticsOnCharacters', (v) => v as String?),
+ customRanking: $checkedConvert('customRanking',
+ (v) => (v as List?)?.map((e) => e as String).toList()),
attributesToRetrieve: $checkedConvert('attributesToRetrieve',
(v) => (v as List?)?.map((e) => e as String).toList()),
ranking: $checkedConvert('ranking',
(v) => (v as List?)?.map((e) => e as String).toList()),
- customRanking: $checkedConvert('customRanking',
- (v) => (v as List?)?.map((e) => e as String).toList()),
relevancyStrictness: $checkedConvert(
'relevancyStrictness', (v) => (v as num?)?.toInt()),
attributesToHighlight: $checkedConvert('attributesToHighlight',
@@ -91,8 +93,6 @@ IndexSettings _$IndexSettingsFromJson(Map json) =>
(v) => (v as List?)?.map((e) => e as String).toList()),
ignorePlurals: $checkedConvert('ignorePlurals', (v) => v),
removeStopWords: $checkedConvert('removeStopWords', (v) => v),
- keepDiacriticsOnCharacters: $checkedConvert(
- 'keepDiacriticsOnCharacters', (v) => v as String?),
queryLanguages: $checkedConvert(
'queryLanguages',
(v) => (v as List?)
@@ -193,10 +193,12 @@ Map _$IndexSettingsToJson(IndexSettings instance) =>
if (instance.attributeForDistinct case final value?)
'attributeForDistinct': value,
if (instance.maxFacetHits case final value?) 'maxFacetHits': value,
+ if (instance.keepDiacriticsOnCharacters case final value?)
+ 'keepDiacriticsOnCharacters': value,
+ if (instance.customRanking case final value?) 'customRanking': value,
if (instance.attributesToRetrieve case final value?)
'attributesToRetrieve': value,
if (instance.ranking case final value?) 'ranking': value,
- if (instance.customRanking case final value?) 'customRanking': value,
if (instance.relevancyStrictness case final value?)
'relevancyStrictness': value,
if (instance.attributesToHighlight case final value?)
@@ -222,8 +224,6 @@ Map _$IndexSettingsToJson(IndexSettings instance) =>
'disableTypoToleranceOnAttributes': value,
if (instance.ignorePlurals case final value?) 'ignorePlurals': value,
if (instance.removeStopWords case final value?) 'removeStopWords': value,
- if (instance.keepDiacriticsOnCharacters case final value?)
- 'keepDiacriticsOnCharacters': value,
if (instance.queryLanguages?.map((e) => e.toJson()).toList()
case final value?)
'queryLanguages': value,
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/index_settings_as_search_params.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/index_settings_as_search_params.dart
index 4c8cdfe79b..7750971304 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/index_settings_as_search_params.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/index_settings_as_search_params.dart
@@ -20,7 +20,6 @@ final class IndexSettingsAsSearchParams {
const IndexSettingsAsSearchParams({
this.attributesToRetrieve,
this.ranking,
- this.customRanking,
this.relevancyStrictness,
this.attributesToHighlight,
this.attributesToSnippet,
@@ -36,7 +35,6 @@ final class IndexSettingsAsSearchParams {
this.disableTypoToleranceOnAttributes,
this.ignorePlurals,
this.removeStopWords,
- this.keepDiacriticsOnCharacters,
this.queryLanguages,
this.decompoundQuery,
this.enableRules,
@@ -71,10 +69,6 @@ final class IndexSettingsAsSearchParams {
@JsonKey(name: r'ranking')
final List? ranking;
- /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
- @JsonKey(name: r'customRanking')
- final List? customRanking;
-
/// Relevancy threshold below which less relevant results aren't included in the results. You can only set `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas). Use this setting to strike a balance between the relevance and number of returned results.
@JsonKey(name: r'relevancyStrictness')
final int? relevancyStrictness;
@@ -144,10 +138,6 @@ final class IndexSettingsAsSearchParams {
@JsonKey(name: r'removeStopWords')
final dynamic removeStopWords;
- /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
- @JsonKey(name: r'keepDiacriticsOnCharacters')
- final String? keepDiacriticsOnCharacters;
-
/// Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` settings. This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) languages. To support this, you must place the CJK language **first**. **You should always specify a query language.** If you don't specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/), or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/).
@JsonKey(name: r'queryLanguages')
final List? queryLanguages;
@@ -254,7 +244,6 @@ final class IndexSettingsAsSearchParams {
other is IndexSettingsAsSearchParams &&
other.attributesToRetrieve == attributesToRetrieve &&
other.ranking == ranking &&
- other.customRanking == customRanking &&
other.relevancyStrictness == relevancyStrictness &&
other.attributesToHighlight == attributesToHighlight &&
other.attributesToSnippet == attributesToSnippet &&
@@ -272,7 +261,6 @@ final class IndexSettingsAsSearchParams {
disableTypoToleranceOnAttributes &&
other.ignorePlurals == ignorePlurals &&
other.removeStopWords == removeStopWords &&
- other.keepDiacriticsOnCharacters == keepDiacriticsOnCharacters &&
other.queryLanguages == queryLanguages &&
other.decompoundQuery == decompoundQuery &&
other.enableRules == enableRules &&
@@ -303,7 +291,6 @@ final class IndexSettingsAsSearchParams {
int get hashCode =>
attributesToRetrieve.hashCode +
ranking.hashCode +
- customRanking.hashCode +
relevancyStrictness.hashCode +
attributesToHighlight.hashCode +
attributesToSnippet.hashCode +
@@ -319,7 +306,6 @@ final class IndexSettingsAsSearchParams {
disableTypoToleranceOnAttributes.hashCode +
ignorePlurals.hashCode +
removeStopWords.hashCode +
- keepDiacriticsOnCharacters.hashCode +
queryLanguages.hashCode +
decompoundQuery.hashCode +
enableRules.hashCode +
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/index_settings_as_search_params.g.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/index_settings_as_search_params.g.dart
index 6645b6d22d..2c7f9b26b3 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/index_settings_as_search_params.g.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/index_settings_as_search_params.g.dart
@@ -17,8 +17,6 @@ IndexSettingsAsSearchParams _$IndexSettingsAsSearchParamsFromJson(
(v) => (v as List?)?.map((e) => e as String).toList()),
ranking: $checkedConvert('ranking',
(v) => (v as List?)?.map((e) => e as String).toList()),
- customRanking: $checkedConvert('customRanking',
- (v) => (v as List?)?.map((e) => e as String).toList()),
relevancyStrictness: $checkedConvert(
'relevancyStrictness', (v) => (v as num?)?.toInt()),
attributesToHighlight: $checkedConvert('attributesToHighlight',
@@ -47,8 +45,6 @@ IndexSettingsAsSearchParams _$IndexSettingsAsSearchParamsFromJson(
(v) => (v as List?)?.map((e) => e as String).toList()),
ignorePlurals: $checkedConvert('ignorePlurals', (v) => v),
removeStopWords: $checkedConvert('removeStopWords', (v) => v),
- keepDiacriticsOnCharacters: $checkedConvert(
- 'keepDiacriticsOnCharacters', (v) => v as String?),
queryLanguages: $checkedConvert(
'queryLanguages',
(v) => (v as List?)
@@ -119,7 +115,6 @@ Map _$IndexSettingsAsSearchParamsToJson(
if (instance.attributesToRetrieve case final value?)
'attributesToRetrieve': value,
if (instance.ranking case final value?) 'ranking': value,
- if (instance.customRanking case final value?) 'customRanking': value,
if (instance.relevancyStrictness case final value?)
'relevancyStrictness': value,
if (instance.attributesToHighlight case final value?)
@@ -145,8 +140,6 @@ Map _$IndexSettingsAsSearchParamsToJson(
'disableTypoToleranceOnAttributes': value,
if (instance.ignorePlurals case final value?) 'ignorePlurals': value,
if (instance.removeStopWords case final value?) 'removeStopWords': value,
- if (instance.keepDiacriticsOnCharacters case final value?)
- 'keepDiacriticsOnCharacters': value,
if (instance.queryLanguages?.map((e) => e.toJson()).toList()
case final value?)
'queryLanguages': value,
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_for_facets.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_for_facets.dart
index c97e484725..a409a36416 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_for_facets.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_for_facets.dart
@@ -54,7 +54,6 @@ final class SearchForFacets {
this.enableABTest,
this.attributesToRetrieve,
this.ranking,
- this.customRanking,
this.relevancyStrictness,
this.attributesToHighlight,
this.attributesToSnippet,
@@ -70,7 +69,6 @@ final class SearchForFacets {
this.disableTypoToleranceOnAttributes,
this.ignorePlurals,
this.removeStopWords,
- this.keepDiacriticsOnCharacters,
this.queryLanguages,
this.decompoundQuery,
this.enableRules,
@@ -266,10 +264,6 @@ final class SearchForFacets {
@JsonKey(name: r'ranking')
final List? ranking;
- /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
- @JsonKey(name: r'customRanking')
- final List? customRanking;
-
/// Relevancy threshold below which less relevant results aren't included in the results. You can only set `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas). Use this setting to strike a balance between the relevance and number of returned results.
@JsonKey(name: r'relevancyStrictness')
final int? relevancyStrictness;
@@ -339,10 +333,6 @@ final class SearchForFacets {
@JsonKey(name: r'removeStopWords')
final dynamic removeStopWords;
- /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
- @JsonKey(name: r'keepDiacriticsOnCharacters')
- final String? keepDiacriticsOnCharacters;
-
/// Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` settings. This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) languages. To support this, you must place the CJK language **first**. **You should always specify a query language.** If you don't specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/), or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/).
@JsonKey(name: r'queryLanguages')
final List? queryLanguages;
@@ -502,7 +492,6 @@ final class SearchForFacets {
other.enableABTest == enableABTest &&
other.attributesToRetrieve == attributesToRetrieve &&
other.ranking == ranking &&
- other.customRanking == customRanking &&
other.relevancyStrictness == relevancyStrictness &&
other.attributesToHighlight == attributesToHighlight &&
other.attributesToSnippet == attributesToSnippet &&
@@ -520,7 +509,6 @@ final class SearchForFacets {
disableTypoToleranceOnAttributes &&
other.ignorePlurals == ignorePlurals &&
other.removeStopWords == removeStopWords &&
- other.keepDiacriticsOnCharacters == keepDiacriticsOnCharacters &&
other.queryLanguages == queryLanguages &&
other.decompoundQuery == decompoundQuery &&
other.enableRules == enableRules &&
@@ -589,7 +577,6 @@ final class SearchForFacets {
enableABTest.hashCode +
attributesToRetrieve.hashCode +
ranking.hashCode +
- customRanking.hashCode +
relevancyStrictness.hashCode +
attributesToHighlight.hashCode +
attributesToSnippet.hashCode +
@@ -605,7 +592,6 @@ final class SearchForFacets {
disableTypoToleranceOnAttributes.hashCode +
ignorePlurals.hashCode +
removeStopWords.hashCode +
- keepDiacriticsOnCharacters.hashCode +
queryLanguages.hashCode +
decompoundQuery.hashCode +
enableRules.hashCode +
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_for_facets.g.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_for_facets.g.dart
index 8bb2aa4d35..68c0d82752 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_for_facets.g.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_for_facets.g.dart
@@ -70,8 +70,6 @@ SearchForFacets _$SearchForFacetsFromJson(Map json) =>
(v) => (v as List?)?.map((e) => e as String).toList()),
ranking: $checkedConvert('ranking',
(v) => (v as List?)?.map((e) => e as String).toList()),
- customRanking: $checkedConvert('customRanking',
- (v) => (v as List?)?.map((e) => e as String).toList()),
relevancyStrictness: $checkedConvert(
'relevancyStrictness', (v) => (v as num?)?.toInt()),
attributesToHighlight: $checkedConvert('attributesToHighlight',
@@ -100,8 +98,6 @@ SearchForFacets _$SearchForFacetsFromJson(Map json) =>
(v) => (v as List?)?.map((e) => e as String).toList()),
ignorePlurals: $checkedConvert('ignorePlurals', (v) => v),
removeStopWords: $checkedConvert('removeStopWords', (v) => v),
- keepDiacriticsOnCharacters: $checkedConvert(
- 'keepDiacriticsOnCharacters', (v) => v as String?),
queryLanguages: $checkedConvert(
'queryLanguages',
(v) => (v as List?)
@@ -221,7 +217,6 @@ Map _$SearchForFacetsToJson(SearchForFacets instance) =>
if (instance.attributesToRetrieve case final value?)
'attributesToRetrieve': value,
if (instance.ranking case final value?) 'ranking': value,
- if (instance.customRanking case final value?) 'customRanking': value,
if (instance.relevancyStrictness case final value?)
'relevancyStrictness': value,
if (instance.attributesToHighlight case final value?)
@@ -247,8 +242,6 @@ Map _$SearchForFacetsToJson(SearchForFacets instance) =>
'disableTypoToleranceOnAttributes': value,
if (instance.ignorePlurals case final value?) 'ignorePlurals': value,
if (instance.removeStopWords case final value?) 'removeStopWords': value,
- if (instance.keepDiacriticsOnCharacters case final value?)
- 'keepDiacriticsOnCharacters': value,
if (instance.queryLanguages?.map((e) => e.toJson()).toList()
case final value?)
'queryLanguages': value,
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_for_hits.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_for_hits.dart
index 1c8da98569..b9d9aea41c 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_for_hits.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_for_hits.dart
@@ -54,7 +54,6 @@ final class SearchForHits {
this.enableABTest,
this.attributesToRetrieve,
this.ranking,
- this.customRanking,
this.relevancyStrictness,
this.attributesToHighlight,
this.attributesToSnippet,
@@ -70,7 +69,6 @@ final class SearchForHits {
this.disableTypoToleranceOnAttributes,
this.ignorePlurals,
this.removeStopWords,
- this.keepDiacriticsOnCharacters,
this.queryLanguages,
this.decompoundQuery,
this.enableRules,
@@ -263,10 +261,6 @@ final class SearchForHits {
@JsonKey(name: r'ranking')
final List? ranking;
- /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
- @JsonKey(name: r'customRanking')
- final List? customRanking;
-
/// Relevancy threshold below which less relevant results aren't included in the results. You can only set `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas). Use this setting to strike a balance between the relevance and number of returned results.
@JsonKey(name: r'relevancyStrictness')
final int? relevancyStrictness;
@@ -336,10 +330,6 @@ final class SearchForHits {
@JsonKey(name: r'removeStopWords')
final dynamic removeStopWords;
- /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
- @JsonKey(name: r'keepDiacriticsOnCharacters')
- final String? keepDiacriticsOnCharacters;
-
/// Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` settings. This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) languages. To support this, you must place the CJK language **first**. **You should always specify a query language.** If you don't specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/), or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/).
@JsonKey(name: r'queryLanguages')
final List? queryLanguages;
@@ -486,7 +476,6 @@ final class SearchForHits {
other.enableABTest == enableABTest &&
other.attributesToRetrieve == attributesToRetrieve &&
other.ranking == ranking &&
- other.customRanking == customRanking &&
other.relevancyStrictness == relevancyStrictness &&
other.attributesToHighlight == attributesToHighlight &&
other.attributesToSnippet == attributesToSnippet &&
@@ -504,7 +493,6 @@ final class SearchForHits {
disableTypoToleranceOnAttributes &&
other.ignorePlurals == ignorePlurals &&
other.removeStopWords == removeStopWords &&
- other.keepDiacriticsOnCharacters == keepDiacriticsOnCharacters &&
other.queryLanguages == queryLanguages &&
other.decompoundQuery == decompoundQuery &&
other.enableRules == enableRules &&
@@ -570,7 +558,6 @@ final class SearchForHits {
enableABTest.hashCode +
attributesToRetrieve.hashCode +
ranking.hashCode +
- customRanking.hashCode +
relevancyStrictness.hashCode +
attributesToHighlight.hashCode +
attributesToSnippet.hashCode +
@@ -586,7 +573,6 @@ final class SearchForHits {
disableTypoToleranceOnAttributes.hashCode +
ignorePlurals.hashCode +
removeStopWords.hashCode +
- keepDiacriticsOnCharacters.hashCode +
queryLanguages.hashCode +
decompoundQuery.hashCode +
enableRules.hashCode +
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_for_hits.g.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_for_hits.g.dart
index f922120359..70d63813b0 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_for_hits.g.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_for_hits.g.dart
@@ -70,8 +70,6 @@ SearchForHits _$SearchForHitsFromJson(Map json) =>
(v) => (v as List?)?.map((e) => e as String).toList()),
ranking: $checkedConvert('ranking',
(v) => (v as List?)?.map((e) => e as String).toList()),
- customRanking: $checkedConvert('customRanking',
- (v) => (v as List?)?.map((e) => e as String).toList()),
relevancyStrictness: $checkedConvert(
'relevancyStrictness', (v) => (v as num?)?.toInt()),
attributesToHighlight: $checkedConvert('attributesToHighlight',
@@ -100,8 +98,6 @@ SearchForHits _$SearchForHitsFromJson(Map json) =>
(v) => (v as List?)?.map((e) => e as String).toList()),
ignorePlurals: $checkedConvert('ignorePlurals', (v) => v),
removeStopWords: $checkedConvert('removeStopWords', (v) => v),
- keepDiacriticsOnCharacters: $checkedConvert(
- 'keepDiacriticsOnCharacters', (v) => v as String?),
queryLanguages: $checkedConvert(
'queryLanguages',
(v) => (v as List?)
@@ -217,7 +213,6 @@ Map _$SearchForHitsToJson(SearchForHits instance) =>
if (instance.attributesToRetrieve case final value?)
'attributesToRetrieve': value,
if (instance.ranking case final value?) 'ranking': value,
- if (instance.customRanking case final value?) 'customRanking': value,
if (instance.relevancyStrictness case final value?)
'relevancyStrictness': value,
if (instance.attributesToHighlight case final value?)
@@ -243,8 +238,6 @@ Map _$SearchForHitsToJson(SearchForHits instance) =>
'disableTypoToleranceOnAttributes': value,
if (instance.ignorePlurals case final value?) 'ignorePlurals': value,
if (instance.removeStopWords case final value?) 'removeStopWords': value,
- if (instance.keepDiacriticsOnCharacters case final value?)
- 'keepDiacriticsOnCharacters': value,
if (instance.queryLanguages?.map((e) => e.toJson()).toList()
case final value?)
'queryLanguages': value,
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_params_object.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_params_object.dart
index 9872e6a48e..8af29f956b 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_params_object.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_params_object.dart
@@ -52,7 +52,6 @@ final class SearchParamsObject {
this.enableABTest,
this.attributesToRetrieve,
this.ranking,
- this.customRanking,
this.relevancyStrictness,
this.attributesToHighlight,
this.attributesToSnippet,
@@ -68,7 +67,6 @@ final class SearchParamsObject {
this.disableTypoToleranceOnAttributes,
this.ignorePlurals,
this.removeStopWords,
- this.keepDiacriticsOnCharacters,
this.queryLanguages,
this.decompoundQuery,
this.enableRules,
@@ -255,10 +253,6 @@ final class SearchParamsObject {
@JsonKey(name: r'ranking')
final List? ranking;
- /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
- @JsonKey(name: r'customRanking')
- final List? customRanking;
-
/// Relevancy threshold below which less relevant results aren't included in the results. You can only set `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas). Use this setting to strike a balance between the relevance and number of returned results.
@JsonKey(name: r'relevancyStrictness')
final int? relevancyStrictness;
@@ -328,10 +322,6 @@ final class SearchParamsObject {
@JsonKey(name: r'removeStopWords')
final dynamic removeStopWords;
- /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
- @JsonKey(name: r'keepDiacriticsOnCharacters')
- final String? keepDiacriticsOnCharacters;
-
/// Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` settings. This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) languages. To support this, you must place the CJK language **first**. **You should always specify a query language.** If you don't specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/), or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/).
@JsonKey(name: r'queryLanguages')
final List? queryLanguages;
@@ -470,7 +460,6 @@ final class SearchParamsObject {
other.enableABTest == enableABTest &&
other.attributesToRetrieve == attributesToRetrieve &&
other.ranking == ranking &&
- other.customRanking == customRanking &&
other.relevancyStrictness == relevancyStrictness &&
other.attributesToHighlight == attributesToHighlight &&
other.attributesToSnippet == attributesToSnippet &&
@@ -488,7 +477,6 @@ final class SearchParamsObject {
disableTypoToleranceOnAttributes &&
other.ignorePlurals == ignorePlurals &&
other.removeStopWords == removeStopWords &&
- other.keepDiacriticsOnCharacters == keepDiacriticsOnCharacters &&
other.queryLanguages == queryLanguages &&
other.decompoundQuery == decompoundQuery &&
other.enableRules == enableRules &&
@@ -551,7 +539,6 @@ final class SearchParamsObject {
enableABTest.hashCode +
attributesToRetrieve.hashCode +
ranking.hashCode +
- customRanking.hashCode +
relevancyStrictness.hashCode +
attributesToHighlight.hashCode +
attributesToSnippet.hashCode +
@@ -567,7 +554,6 @@ final class SearchParamsObject {
disableTypoToleranceOnAttributes.hashCode +
ignorePlurals.hashCode +
removeStopWords.hashCode +
- keepDiacriticsOnCharacters.hashCode +
queryLanguages.hashCode +
decompoundQuery.hashCode +
enableRules.hashCode +
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_params_object.g.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_params_object.g.dart
index af070047a0..1d4487546e 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_params_object.g.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_params_object.g.dart
@@ -69,8 +69,6 @@ SearchParamsObject _$SearchParamsObjectFromJson(Map json) =>
(v) => (v as List?)?.map((e) => e as String).toList()),
ranking: $checkedConvert('ranking',
(v) => (v as List?)?.map((e) => e as String).toList()),
- customRanking: $checkedConvert('customRanking',
- (v) => (v as List?)?.map((e) => e as String).toList()),
relevancyStrictness: $checkedConvert(
'relevancyStrictness', (v) => (v as num?)?.toInt()),
attributesToHighlight: $checkedConvert('attributesToHighlight',
@@ -99,8 +97,6 @@ SearchParamsObject _$SearchParamsObjectFromJson(Map json) =>
(v) => (v as List?)?.map((e) => e as String).toList()),
ignorePlurals: $checkedConvert('ignorePlurals', (v) => v),
removeStopWords: $checkedConvert('removeStopWords', (v) => v),
- keepDiacriticsOnCharacters: $checkedConvert(
- 'keepDiacriticsOnCharacters', (v) => v as String?),
queryLanguages: $checkedConvert(
'queryLanguages',
(v) => (v as List?)
@@ -212,7 +208,6 @@ Map _$SearchParamsObjectToJson(SearchParamsObject instance) =>
if (instance.attributesToRetrieve case final value?)
'attributesToRetrieve': value,
if (instance.ranking case final value?) 'ranking': value,
- if (instance.customRanking case final value?) 'customRanking': value,
if (instance.relevancyStrictness case final value?)
'relevancyStrictness': value,
if (instance.attributesToHighlight case final value?)
@@ -238,8 +233,6 @@ Map _$SearchParamsObjectToJson(SearchParamsObject instance) =>
'disableTypoToleranceOnAttributes': value,
if (instance.ignorePlurals case final value?) 'ignorePlurals': value,
if (instance.removeStopWords case final value?) 'removeStopWords': value,
- if (instance.keepDiacriticsOnCharacters case final value?)
- 'keepDiacriticsOnCharacters': value,
if (instance.queryLanguages?.map((e) => e.toJson()).toList()
case final value?)
'queryLanguages': value,
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/settings_response.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/settings_response.dart
index 8897baf2d5..bb0cdae39e 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/settings_response.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/settings_response.dart
@@ -36,9 +36,10 @@ final class SettingsResponse {
this.customNormalization,
this.attributeForDistinct,
this.maxFacetHits,
+ this.keepDiacriticsOnCharacters,
+ this.customRanking,
this.attributesToRetrieve,
this.ranking,
- this.customRanking,
this.relevancyStrictness,
this.attributesToHighlight,
this.attributesToSnippet,
@@ -54,7 +55,6 @@ final class SettingsResponse {
this.disableTypoToleranceOnAttributes,
this.ignorePlurals,
this.removeStopWords,
- this.keepDiacriticsOnCharacters,
this.queryLanguages,
this.decompoundQuery,
this.enableRules,
@@ -156,6 +156,14 @@ final class SettingsResponse {
@JsonKey(name: r'maxFacetHits')
final int? maxFacetHits;
+ /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
+ @JsonKey(name: r'keepDiacriticsOnCharacters')
+ final String? keepDiacriticsOnCharacters;
+
+ /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
+ @JsonKey(name: r'customRanking')
+ final List? customRanking;
+
/// Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. Attribute names are case-sensitive. - `*` retrieves all attributes, except attributes included in the `customRanking` and `unretrievableAttributes` settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the `*`: `[\"*\", \"-ATTRIBUTE\"]`. - The `objectID` attribute is always included.
@JsonKey(name: r'attributesToRetrieve')
final List? attributesToRetrieve;
@@ -164,10 +172,6 @@ final class SettingsResponse {
@JsonKey(name: r'ranking')
final List? ranking;
- /// Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
- @JsonKey(name: r'customRanking')
- final List? customRanking;
-
/// Relevancy threshold below which less relevant results aren't included in the results. You can only set `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas). Use this setting to strike a balance between the relevance and number of returned results.
@JsonKey(name: r'relevancyStrictness')
final int? relevancyStrictness;
@@ -237,10 +241,6 @@ final class SettingsResponse {
@JsonKey(name: r'removeStopWords')
final dynamic removeStopWords;
- /// Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
- @JsonKey(name: r'keepDiacriticsOnCharacters')
- final String? keepDiacriticsOnCharacters;
-
/// Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` settings. This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) languages. To support this, you must place the CJK language **first**. **You should always specify a query language.** If you don't specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/), or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/).
@JsonKey(name: r'queryLanguages')
final List