diff --git a/algoliasearch/Models/Recommend/FallbackParams.cs b/algoliasearch/Models/Recommend/FallbackParams.cs
index c2cc4db4..9dede6b5 100644
--- a/algoliasearch/Models/Recommend/FallbackParams.cs
+++ b/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/algoliasearch/Models/Recommend/RecommendSearchParams.cs b/algoliasearch/Models/Recommend/RecommendSearchParams.cs
index 0aec27d7..15e90d3b 100644
--- a/algoliasearch/Models/Recommend/RecommendSearchParams.cs
+++ b/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/algoliasearch/Models/Search/BrowseParamsObject.cs b/algoliasearch/Models/Search/BrowseParamsObject.cs
index a4a0ce9b..70522f0d 100644
--- a/algoliasearch/Models/Search/BrowseParamsObject.cs
+++ b/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/algoliasearch/Models/Search/ConsequenceParams.cs b/algoliasearch/Models/Search/ConsequenceParams.cs
index 149a6acc..494416cc 100644
--- a/algoliasearch/Models/Search/ConsequenceParams.cs
+++ b/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/algoliasearch/Models/Search/IndexSettings.cs b/algoliasearch/Models/Search/IndexSettings.cs
index e540362c..fb320914 100644
--- a/algoliasearch/Models/Search/IndexSettings.cs
+++ b/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/algoliasearch/Models/Search/SearchForFacets.cs b/algoliasearch/Models/Search/SearchForFacets.cs
index e67b69f6..0fa0050a 100644
--- a/algoliasearch/Models/Search/SearchForFacets.cs
+++ b/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/algoliasearch/Models/Search/SearchForHits.cs b/algoliasearch/Models/Search/SearchForHits.cs
index 87cb18b5..b1e67410 100644
--- a/algoliasearch/Models/Search/SearchForHits.cs
+++ b/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/algoliasearch/Models/Search/SearchParamsObject.cs b/algoliasearch/Models/Search/SearchParamsObject.cs
index af0516df..b3128629 100644
--- a/algoliasearch/Models/Search/SearchParamsObject.cs
+++ b/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/algoliasearch/Models/Search/SettingsResponse.cs b/algoliasearch/Models/Search/SettingsResponse.cs
index 2102170c..346de528 100644
--- a/algoliasearch/Models/Search/SettingsResponse.cs
+++ b/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();