Skip to content

Commit f105b89

Browse files
algolia-botmillotp
andcommitted
fix(specs): move customRanking and keepDiacriticsOnCharacters to indexSettings [skip-bc] (#4324) (generated) [skip ci]
Co-authored-by: Pierre Millot <[email protected]>
1 parent 1e847f4 commit f105b89

File tree

167 files changed

+2099
-3141
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

167 files changed

+2099
-3141
lines changed

clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/FallbackParams.cs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,20 @@ public FallbackParams()
363363
[JsonPropertyName("maxFacetHits")]
364364
public int? MaxFacetHits { get; set; }
365365

366+
/// <summary>
367+
/// 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.
368+
/// </summary>
369+
/// <value>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. </value>
370+
[JsonPropertyName("keepDiacriticsOnCharacters")]
371+
public string KeepDiacriticsOnCharacters { get; set; }
372+
373+
/// <summary>
374+
/// 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.
375+
/// </summary>
376+
/// <value>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. </value>
377+
[JsonPropertyName("customRanking")]
378+
public List<string> CustomRanking { get; set; }
379+
366380
/// <summary>
367381
/// 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.
368382
/// </summary>
@@ -656,6 +670,8 @@ public override string ToString()
656670
sb.Append(" CustomNormalization: ").Append(CustomNormalization).Append("\n");
657671
sb.Append(" AttributeForDistinct: ").Append(AttributeForDistinct).Append("\n");
658672
sb.Append(" MaxFacetHits: ").Append(MaxFacetHits).Append("\n");
673+
sb.Append(" KeepDiacriticsOnCharacters: ").Append(KeepDiacriticsOnCharacters).Append("\n");
674+
sb.Append(" CustomRanking: ").Append(CustomRanking).Append("\n");
659675
sb.Append(" AttributesToRetrieve: ").Append(AttributesToRetrieve).Append("\n");
660676
sb.Append(" Ranking: ").Append(Ranking).Append("\n");
661677
sb.Append(" RelevancyStrictness: ").Append(RelevancyStrictness).Append("\n");
@@ -767,6 +783,8 @@ public override bool Equals(object obj)
767783
(CustomNormalization == input.CustomNormalization || CustomNormalization != null && input.CustomNormalization != null && CustomNormalization.SequenceEqual(input.CustomNormalization)) &&
768784
(AttributeForDistinct == input.AttributeForDistinct || (AttributeForDistinct != null && AttributeForDistinct.Equals(input.AttributeForDistinct))) &&
769785
(MaxFacetHits == input.MaxFacetHits || MaxFacetHits.Equals(input.MaxFacetHits)) &&
786+
(KeepDiacriticsOnCharacters == input.KeepDiacriticsOnCharacters || (KeepDiacriticsOnCharacters != null && KeepDiacriticsOnCharacters.Equals(input.KeepDiacriticsOnCharacters))) &&
787+
(CustomRanking == input.CustomRanking || CustomRanking != null && input.CustomRanking != null && CustomRanking.SequenceEqual(input.CustomRanking)) &&
770788
(AttributesToRetrieve == input.AttributesToRetrieve || AttributesToRetrieve != null && input.AttributesToRetrieve != null && AttributesToRetrieve.SequenceEqual(input.AttributesToRetrieve)) &&
771789
(Ranking == input.Ranking || Ranking != null && input.Ranking != null && Ranking.SequenceEqual(input.Ranking)) &&
772790
(RelevancyStrictness == input.RelevancyStrictness || RelevancyStrictness.Equals(input.RelevancyStrictness)) &&
@@ -962,6 +980,14 @@ public override int GetHashCode()
962980
hashCode = (hashCode * 59) + AttributeForDistinct.GetHashCode();
963981
}
964982
hashCode = (hashCode * 59) + MaxFacetHits.GetHashCode();
983+
if (KeepDiacriticsOnCharacters != null)
984+
{
985+
hashCode = (hashCode * 59) + KeepDiacriticsOnCharacters.GetHashCode();
986+
}
987+
if (CustomRanking != null)
988+
{
989+
hashCode = (hashCode * 59) + CustomRanking.GetHashCode();
990+
}
965991
if (AttributesToRetrieve != null)
966992
{
967993
hashCode = (hashCode * 59) + AttributesToRetrieve.GetHashCode();

clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/RecommendSearchParams.cs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,20 @@ public RecommendSearchParams()
363363
[JsonPropertyName("maxFacetHits")]
364364
public int? MaxFacetHits { get; set; }
365365

366+
/// <summary>
367+
/// 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.
368+
/// </summary>
369+
/// <value>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. </value>
370+
[JsonPropertyName("keepDiacriticsOnCharacters")]
371+
public string KeepDiacriticsOnCharacters { get; set; }
372+
373+
/// <summary>
374+
/// 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.
375+
/// </summary>
376+
/// <value>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. </value>
377+
[JsonPropertyName("customRanking")]
378+
public List<string> CustomRanking { get; set; }
379+
366380
/// <summary>
367381
/// 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.
368382
/// </summary>
@@ -656,6 +670,8 @@ public override string ToString()
656670
sb.Append(" CustomNormalization: ").Append(CustomNormalization).Append("\n");
657671
sb.Append(" AttributeForDistinct: ").Append(AttributeForDistinct).Append("\n");
658672
sb.Append(" MaxFacetHits: ").Append(MaxFacetHits).Append("\n");
673+
sb.Append(" KeepDiacriticsOnCharacters: ").Append(KeepDiacriticsOnCharacters).Append("\n");
674+
sb.Append(" CustomRanking: ").Append(CustomRanking).Append("\n");
659675
sb.Append(" AttributesToRetrieve: ").Append(AttributesToRetrieve).Append("\n");
660676
sb.Append(" Ranking: ").Append(Ranking).Append("\n");
661677
sb.Append(" RelevancyStrictness: ").Append(RelevancyStrictness).Append("\n");
@@ -767,6 +783,8 @@ public override bool Equals(object obj)
767783
(CustomNormalization == input.CustomNormalization || CustomNormalization != null && input.CustomNormalization != null && CustomNormalization.SequenceEqual(input.CustomNormalization)) &&
768784
(AttributeForDistinct == input.AttributeForDistinct || (AttributeForDistinct != null && AttributeForDistinct.Equals(input.AttributeForDistinct))) &&
769785
(MaxFacetHits == input.MaxFacetHits || MaxFacetHits.Equals(input.MaxFacetHits)) &&
786+
(KeepDiacriticsOnCharacters == input.KeepDiacriticsOnCharacters || (KeepDiacriticsOnCharacters != null && KeepDiacriticsOnCharacters.Equals(input.KeepDiacriticsOnCharacters))) &&
787+
(CustomRanking == input.CustomRanking || CustomRanking != null && input.CustomRanking != null && CustomRanking.SequenceEqual(input.CustomRanking)) &&
770788
(AttributesToRetrieve == input.AttributesToRetrieve || AttributesToRetrieve != null && input.AttributesToRetrieve != null && AttributesToRetrieve.SequenceEqual(input.AttributesToRetrieve)) &&
771789
(Ranking == input.Ranking || Ranking != null && input.Ranking != null && Ranking.SequenceEqual(input.Ranking)) &&
772790
(RelevancyStrictness == input.RelevancyStrictness || RelevancyStrictness.Equals(input.RelevancyStrictness)) &&
@@ -962,6 +980,14 @@ public override int GetHashCode()
962980
hashCode = (hashCode * 59) + AttributeForDistinct.GetHashCode();
963981
}
964982
hashCode = (hashCode * 59) + MaxFacetHits.GetHashCode();
983+
if (KeepDiacriticsOnCharacters != null)
984+
{
985+
hashCode = (hashCode * 59) + KeepDiacriticsOnCharacters.GetHashCode();
986+
}
987+
if (CustomRanking != null)
988+
{
989+
hashCode = (hashCode * 59) + CustomRanking.GetHashCode();
990+
}
965991
if (AttributesToRetrieve != null)
966992
{
967993
hashCode = (hashCode * 59) + AttributesToRetrieve.GetHashCode();

0 commit comments

Comments
 (0)