Skip to content

Commit 81715b7

Browse files
algolia-botmillotp
andcommitted
fix(specs): move customRanking and keepDiacriticsOnCharacters to indexSettings [skip-bc] (generated)
algolia/api-clients-automation#4324 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent bc18ca1 commit 81715b7

File tree

9 files changed

+228
-399
lines changed

9 files changed

+228
-399
lines changed

algoliasearch/src/main/java/com/algolia/model/recommend/FallbackParams.java

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,12 @@ public class FallbackParams {
155155
@JsonProperty("maxFacetHits")
156156
private Integer maxFacetHits;
157157

158+
@JsonProperty("keepDiacriticsOnCharacters")
159+
private String keepDiacriticsOnCharacters;
160+
161+
@JsonProperty("customRanking")
162+
private List<String> customRanking;
163+
158164
@JsonProperty("attributesToRetrieve")
159165
private List<String> attributesToRetrieve;
160166

@@ -1121,6 +1127,51 @@ public Integer getMaxFacetHits() {
11211127
return maxFacetHits;
11221128
}
11231129

1130+
public FallbackParams setKeepDiacriticsOnCharacters(String keepDiacriticsOnCharacters) {
1131+
this.keepDiacriticsOnCharacters = keepDiacriticsOnCharacters;
1132+
return this;
1133+
}
1134+
1135+
/**
1136+
* Characters for which diacritics should be preserved. By default, Algolia removes diacritics
1137+
* from letters. For example, `é` becomes `e`. If this causes issues in your search, you can
1138+
* specify characters that should keep their diacritics.
1139+
*/
1140+
@javax.annotation.Nullable
1141+
public String getKeepDiacriticsOnCharacters() {
1142+
return keepDiacriticsOnCharacters;
1143+
}
1144+
1145+
public FallbackParams setCustomRanking(List<String> customRanking) {
1146+
this.customRanking = customRanking;
1147+
return this;
1148+
}
1149+
1150+
public FallbackParams addCustomRanking(String customRankingItem) {
1151+
if (this.customRanking == null) {
1152+
this.customRanking = new ArrayList<>();
1153+
}
1154+
this.customRanking.add(customRankingItem);
1155+
return this;
1156+
}
1157+
1158+
/**
1159+
* Attributes to use as [custom
1160+
* ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/).
1161+
* Attribute names are case-sensitive. The custom ranking attributes decide which items are shown
1162+
* first if the other ranking criteria are equal. Records with missing values for your selected
1163+
* custom ranking attributes are always sorted last. Boolean attributes are sorted based on their
1164+
* alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an
1165+
* attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an
1166+
* attribute, in descending order. If you use two or more custom ranking attributes, [reduce the
1167+
* precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/)
1168+
* of your first attributes, or the other attributes will never be applied.
1169+
*/
1170+
@javax.annotation.Nullable
1171+
public List<String> getCustomRanking() {
1172+
return customRanking;
1173+
}
1174+
11241175
public FallbackParams setAttributesToRetrieve(List<String> attributesToRetrieve) {
11251176
this.attributesToRetrieve = attributesToRetrieve;
11261177
return this;
@@ -1821,6 +1872,8 @@ public boolean equals(Object o) {
18211872
Objects.equals(this.customNormalization, fallbackParams.customNormalization) &&
18221873
Objects.equals(this.attributeForDistinct, fallbackParams.attributeForDistinct) &&
18231874
Objects.equals(this.maxFacetHits, fallbackParams.maxFacetHits) &&
1875+
Objects.equals(this.keepDiacriticsOnCharacters, fallbackParams.keepDiacriticsOnCharacters) &&
1876+
Objects.equals(this.customRanking, fallbackParams.customRanking) &&
18241877
Objects.equals(this.attributesToRetrieve, fallbackParams.attributesToRetrieve) &&
18251878
Objects.equals(this.ranking, fallbackParams.ranking) &&
18261879
Objects.equals(this.relevancyStrictness, fallbackParams.relevancyStrictness) &&
@@ -1912,6 +1965,8 @@ public int hashCode() {
19121965
customNormalization,
19131966
attributeForDistinct,
19141967
maxFacetHits,
1968+
keepDiacriticsOnCharacters,
1969+
customRanking,
19151970
attributesToRetrieve,
19161971
ranking,
19171972
relevancyStrictness,
@@ -2004,6 +2059,8 @@ public String toString() {
20042059
sb.append(" customNormalization: ").append(toIndentedString(customNormalization)).append("\n");
20052060
sb.append(" attributeForDistinct: ").append(toIndentedString(attributeForDistinct)).append("\n");
20062061
sb.append(" maxFacetHits: ").append(toIndentedString(maxFacetHits)).append("\n");
2062+
sb.append(" keepDiacriticsOnCharacters: ").append(toIndentedString(keepDiacriticsOnCharacters)).append("\n");
2063+
sb.append(" customRanking: ").append(toIndentedString(customRanking)).append("\n");
20072064
sb.append(" attributesToRetrieve: ").append(toIndentedString(attributesToRetrieve)).append("\n");
20082065
sb.append(" ranking: ").append(toIndentedString(ranking)).append("\n");
20092066
sb.append(" relevancyStrictness: ").append(toIndentedString(relevancyStrictness)).append("\n");

algoliasearch/src/main/java/com/algolia/model/recommend/RecommendSearchParams.java

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,12 @@ public class RecommendSearchParams {
155155
@JsonProperty("maxFacetHits")
156156
private Integer maxFacetHits;
157157

158+
@JsonProperty("keepDiacriticsOnCharacters")
159+
private String keepDiacriticsOnCharacters;
160+
161+
@JsonProperty("customRanking")
162+
private List<String> customRanking;
163+
158164
@JsonProperty("attributesToRetrieve")
159165
private List<String> attributesToRetrieve;
160166

@@ -1121,6 +1127,51 @@ public Integer getMaxFacetHits() {
11211127
return maxFacetHits;
11221128
}
11231129

1130+
public RecommendSearchParams setKeepDiacriticsOnCharacters(String keepDiacriticsOnCharacters) {
1131+
this.keepDiacriticsOnCharacters = keepDiacriticsOnCharacters;
1132+
return this;
1133+
}
1134+
1135+
/**
1136+
* Characters for which diacritics should be preserved. By default, Algolia removes diacritics
1137+
* from letters. For example, `é` becomes `e`. If this causes issues in your search, you can
1138+
* specify characters that should keep their diacritics.
1139+
*/
1140+
@javax.annotation.Nullable
1141+
public String getKeepDiacriticsOnCharacters() {
1142+
return keepDiacriticsOnCharacters;
1143+
}
1144+
1145+
public RecommendSearchParams setCustomRanking(List<String> customRanking) {
1146+
this.customRanking = customRanking;
1147+
return this;
1148+
}
1149+
1150+
public RecommendSearchParams addCustomRanking(String customRankingItem) {
1151+
if (this.customRanking == null) {
1152+
this.customRanking = new ArrayList<>();
1153+
}
1154+
this.customRanking.add(customRankingItem);
1155+
return this;
1156+
}
1157+
1158+
/**
1159+
* Attributes to use as [custom
1160+
* ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/).
1161+
* Attribute names are case-sensitive. The custom ranking attributes decide which items are shown
1162+
* first if the other ranking criteria are equal. Records with missing values for your selected
1163+
* custom ranking attributes are always sorted last. Boolean attributes are sorted based on their
1164+
* alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an
1165+
* attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an
1166+
* attribute, in descending order. If you use two or more custom ranking attributes, [reduce the
1167+
* precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/)
1168+
* of your first attributes, or the other attributes will never be applied.
1169+
*/
1170+
@javax.annotation.Nullable
1171+
public List<String> getCustomRanking() {
1172+
return customRanking;
1173+
}
1174+
11241175
public RecommendSearchParams setAttributesToRetrieve(List<String> attributesToRetrieve) {
11251176
this.attributesToRetrieve = attributesToRetrieve;
11261177
return this;
@@ -1821,6 +1872,8 @@ public boolean equals(Object o) {
18211872
Objects.equals(this.customNormalization, recommendSearchParams.customNormalization) &&
18221873
Objects.equals(this.attributeForDistinct, recommendSearchParams.attributeForDistinct) &&
18231874
Objects.equals(this.maxFacetHits, recommendSearchParams.maxFacetHits) &&
1875+
Objects.equals(this.keepDiacriticsOnCharacters, recommendSearchParams.keepDiacriticsOnCharacters) &&
1876+
Objects.equals(this.customRanking, recommendSearchParams.customRanking) &&
18241877
Objects.equals(this.attributesToRetrieve, recommendSearchParams.attributesToRetrieve) &&
18251878
Objects.equals(this.ranking, recommendSearchParams.ranking) &&
18261879
Objects.equals(this.relevancyStrictness, recommendSearchParams.relevancyStrictness) &&
@@ -1912,6 +1965,8 @@ public int hashCode() {
19121965
customNormalization,
19131966
attributeForDistinct,
19141967
maxFacetHits,
1968+
keepDiacriticsOnCharacters,
1969+
customRanking,
19151970
attributesToRetrieve,
19161971
ranking,
19171972
relevancyStrictness,
@@ -2004,6 +2059,8 @@ public String toString() {
20042059
sb.append(" customNormalization: ").append(toIndentedString(customNormalization)).append("\n");
20052060
sb.append(" attributeForDistinct: ").append(toIndentedString(attributeForDistinct)).append("\n");
20062061
sb.append(" maxFacetHits: ").append(toIndentedString(maxFacetHits)).append("\n");
2062+
sb.append(" keepDiacriticsOnCharacters: ").append(toIndentedString(keepDiacriticsOnCharacters)).append("\n");
2063+
sb.append(" customRanking: ").append(toIndentedString(customRanking)).append("\n");
20072064
sb.append(" attributesToRetrieve: ").append(toIndentedString(attributesToRetrieve)).append("\n");
20082065
sb.append(" ranking: ").append(toIndentedString(ranking)).append("\n");
20092066
sb.append(" relevancyStrictness: ").append(toIndentedString(relevancyStrictness)).append("\n");

algoliasearch/src/main/java/com/algolia/model/search/BrowseParamsObject.java

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,6 @@ public class BrowseParamsObject implements BrowseParams {
115115
@JsonProperty("ranking")
116116
private List<String> ranking;
117117

118-
@JsonProperty("customRanking")
119-
private List<String> customRanking;
120-
121118
@JsonProperty("relevancyStrictness")
122119
private Integer relevancyStrictness;
123120

@@ -163,9 +160,6 @@ public class BrowseParamsObject implements BrowseParams {
163160
@JsonProperty("removeStopWords")
164161
private RemoveStopWords removeStopWords;
165162

166-
@JsonProperty("keepDiacriticsOnCharacters")
167-
private String keepDiacriticsOnCharacters;
168-
169163
@JsonProperty("queryLanguages")
170164
private List<SupportedLanguage> queryLanguages;
171165

@@ -780,36 +774,6 @@ public List<String> getRanking() {
780774
return ranking;
781775
}
782776

783-
public BrowseParamsObject setCustomRanking(List<String> customRanking) {
784-
this.customRanking = customRanking;
785-
return this;
786-
}
787-
788-
public BrowseParamsObject addCustomRanking(String customRankingItem) {
789-
if (this.customRanking == null) {
790-
this.customRanking = new ArrayList<>();
791-
}
792-
this.customRanking.add(customRankingItem);
793-
return this;
794-
}
795-
796-
/**
797-
* Attributes to use as [custom
798-
* ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/).
799-
* Attribute names are case-sensitive. The custom ranking attributes decide which items are shown
800-
* first if the other ranking criteria are equal. Records with missing values for your selected
801-
* custom ranking attributes are always sorted last. Boolean attributes are sorted based on their
802-
* alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an
803-
* attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an
804-
* attribute, in descending order. If you use two or more custom ranking attributes, [reduce the
805-
* precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/)
806-
* of your first attributes, or the other attributes will never be applied.
807-
*/
808-
@javax.annotation.Nullable
809-
public List<String> getCustomRanking() {
810-
return customRanking;
811-
}
812-
813777
public BrowseParamsObject setRelevancyStrictness(Integer relevancyStrictness) {
814778
this.relevancyStrictness = relevancyStrictness;
815779
return this;
@@ -1042,21 +1006,6 @@ public RemoveStopWords getRemoveStopWords() {
10421006
return removeStopWords;
10431007
}
10441008

1045-
public BrowseParamsObject setKeepDiacriticsOnCharacters(String keepDiacriticsOnCharacters) {
1046-
this.keepDiacriticsOnCharacters = keepDiacriticsOnCharacters;
1047-
return this;
1048-
}
1049-
1050-
/**
1051-
* Characters for which diacritics should be preserved. By default, Algolia removes diacritics
1052-
* from letters. For example, `é` becomes `e`. If this causes issues in your search, you can
1053-
* specify characters that should keep their diacritics.
1054-
*/
1055-
@javax.annotation.Nullable
1056-
public String getKeepDiacriticsOnCharacters() {
1057-
return keepDiacriticsOnCharacters;
1058-
}
1059-
10601009
public BrowseParamsObject setQueryLanguages(List<SupportedLanguage> queryLanguages) {
10611010
this.queryLanguages = queryLanguages;
10621011
return this;
@@ -1503,7 +1452,6 @@ public boolean equals(Object o) {
15031452
Objects.equals(this.enableABTest, browseParamsObject.enableABTest) &&
15041453
Objects.equals(this.attributesToRetrieve, browseParamsObject.attributesToRetrieve) &&
15051454
Objects.equals(this.ranking, browseParamsObject.ranking) &&
1506-
Objects.equals(this.customRanking, browseParamsObject.customRanking) &&
15071455
Objects.equals(this.relevancyStrictness, browseParamsObject.relevancyStrictness) &&
15081456
Objects.equals(this.attributesToHighlight, browseParamsObject.attributesToHighlight) &&
15091457
Objects.equals(this.attributesToSnippet, browseParamsObject.attributesToSnippet) &&
@@ -1519,7 +1467,6 @@ public boolean equals(Object o) {
15191467
Objects.equals(this.disableTypoToleranceOnAttributes, browseParamsObject.disableTypoToleranceOnAttributes) &&
15201468
Objects.equals(this.ignorePlurals, browseParamsObject.ignorePlurals) &&
15211469
Objects.equals(this.removeStopWords, browseParamsObject.removeStopWords) &&
1522-
Objects.equals(this.keepDiacriticsOnCharacters, browseParamsObject.keepDiacriticsOnCharacters) &&
15231470
Objects.equals(this.queryLanguages, browseParamsObject.queryLanguages) &&
15241471
Objects.equals(this.decompoundQuery, browseParamsObject.decompoundQuery) &&
15251472
Objects.equals(this.enableRules, browseParamsObject.enableRules) &&
@@ -1585,7 +1532,6 @@ public int hashCode() {
15851532
enableABTest,
15861533
attributesToRetrieve,
15871534
ranking,
1588-
customRanking,
15891535
relevancyStrictness,
15901536
attributesToHighlight,
15911537
attributesToSnippet,
@@ -1601,7 +1547,6 @@ public int hashCode() {
16011547
disableTypoToleranceOnAttributes,
16021548
ignorePlurals,
16031549
removeStopWords,
1604-
keepDiacriticsOnCharacters,
16051550
queryLanguages,
16061551
decompoundQuery,
16071552
enableRules,
@@ -1668,7 +1613,6 @@ public String toString() {
16681613
sb.append(" enableABTest: ").append(toIndentedString(enableABTest)).append("\n");
16691614
sb.append(" attributesToRetrieve: ").append(toIndentedString(attributesToRetrieve)).append("\n");
16701615
sb.append(" ranking: ").append(toIndentedString(ranking)).append("\n");
1671-
sb.append(" customRanking: ").append(toIndentedString(customRanking)).append("\n");
16721616
sb.append(" relevancyStrictness: ").append(toIndentedString(relevancyStrictness)).append("\n");
16731617
sb.append(" attributesToHighlight: ").append(toIndentedString(attributesToHighlight)).append("\n");
16741618
sb.append(" attributesToSnippet: ").append(toIndentedString(attributesToSnippet)).append("\n");
@@ -1684,7 +1628,6 @@ public String toString() {
16841628
sb.append(" disableTypoToleranceOnAttributes: ").append(toIndentedString(disableTypoToleranceOnAttributes)).append("\n");
16851629
sb.append(" ignorePlurals: ").append(toIndentedString(ignorePlurals)).append("\n");
16861630
sb.append(" removeStopWords: ").append(toIndentedString(removeStopWords)).append("\n");
1687-
sb.append(" keepDiacriticsOnCharacters: ").append(toIndentedString(keepDiacriticsOnCharacters)).append("\n");
16881631
sb.append(" queryLanguages: ").append(toIndentedString(queryLanguages)).append("\n");
16891632
sb.append(" decompoundQuery: ").append(toIndentedString(decompoundQuery)).append("\n");
16901633
sb.append(" enableRules: ").append(toIndentedString(enableRules)).append("\n");

0 commit comments

Comments
 (0)