diff --git a/algoliasearch/src/main/java/com/algolia/model/recommend/FallbackParams.java b/algoliasearch/src/main/java/com/algolia/model/recommend/FallbackParams.java index aeb54c62..63dc4f35 100644 --- a/algoliasearch/src/main/java/com/algolia/model/recommend/FallbackParams.java +++ b/algoliasearch/src/main/java/com/algolia/model/recommend/FallbackParams.java @@ -155,6 +155,12 @@ public class FallbackParams { @JsonProperty("maxFacetHits") private Integer maxFacetHits; + @JsonProperty("keepDiacriticsOnCharacters") + private String keepDiacriticsOnCharacters; + + @JsonProperty("customRanking") + private List customRanking; + @JsonProperty("attributesToRetrieve") private List attributesToRetrieve; @@ -1121,6 +1127,51 @@ public Integer getMaxFacetHits() { return maxFacetHits; } + public FallbackParams setKeepDiacriticsOnCharacters(String keepDiacriticsOnCharacters) { + this.keepDiacriticsOnCharacters = keepDiacriticsOnCharacters; + return this; + } + + /** + * 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. + */ + @javax.annotation.Nullable + public String getKeepDiacriticsOnCharacters() { + return keepDiacriticsOnCharacters; + } + + public FallbackParams setCustomRanking(List customRanking) { + this.customRanking = customRanking; + return this; + } + + public FallbackParams addCustomRanking(String customRankingItem) { + if (this.customRanking == null) { + this.customRanking = new ArrayList<>(); + } + this.customRanking.add(customRankingItem); + return this; + } + + /** + * 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. + */ + @javax.annotation.Nullable + public List getCustomRanking() { + return customRanking; + } + public FallbackParams setAttributesToRetrieve(List attributesToRetrieve) { this.attributesToRetrieve = attributesToRetrieve; return this; @@ -1821,6 +1872,8 @@ public boolean equals(Object o) { Objects.equals(this.customNormalization, fallbackParams.customNormalization) && Objects.equals(this.attributeForDistinct, fallbackParams.attributeForDistinct) && Objects.equals(this.maxFacetHits, fallbackParams.maxFacetHits) && + Objects.equals(this.keepDiacriticsOnCharacters, fallbackParams.keepDiacriticsOnCharacters) && + Objects.equals(this.customRanking, fallbackParams.customRanking) && Objects.equals(this.attributesToRetrieve, fallbackParams.attributesToRetrieve) && Objects.equals(this.ranking, fallbackParams.ranking) && Objects.equals(this.relevancyStrictness, fallbackParams.relevancyStrictness) && @@ -1912,6 +1965,8 @@ public int hashCode() { customNormalization, attributeForDistinct, maxFacetHits, + keepDiacriticsOnCharacters, + customRanking, attributesToRetrieve, ranking, relevancyStrictness, @@ -2004,6 +2059,8 @@ public String toString() { sb.append(" customNormalization: ").append(toIndentedString(customNormalization)).append("\n"); sb.append(" attributeForDistinct: ").append(toIndentedString(attributeForDistinct)).append("\n"); sb.append(" maxFacetHits: ").append(toIndentedString(maxFacetHits)).append("\n"); + sb.append(" keepDiacriticsOnCharacters: ").append(toIndentedString(keepDiacriticsOnCharacters)).append("\n"); + sb.append(" customRanking: ").append(toIndentedString(customRanking)).append("\n"); sb.append(" attributesToRetrieve: ").append(toIndentedString(attributesToRetrieve)).append("\n"); sb.append(" ranking: ").append(toIndentedString(ranking)).append("\n"); sb.append(" relevancyStrictness: ").append(toIndentedString(relevancyStrictness)).append("\n"); diff --git a/algoliasearch/src/main/java/com/algolia/model/recommend/RecommendSearchParams.java b/algoliasearch/src/main/java/com/algolia/model/recommend/RecommendSearchParams.java index 49e066f2..b7b464d2 100644 --- a/algoliasearch/src/main/java/com/algolia/model/recommend/RecommendSearchParams.java +++ b/algoliasearch/src/main/java/com/algolia/model/recommend/RecommendSearchParams.java @@ -155,6 +155,12 @@ public class RecommendSearchParams { @JsonProperty("maxFacetHits") private Integer maxFacetHits; + @JsonProperty("keepDiacriticsOnCharacters") + private String keepDiacriticsOnCharacters; + + @JsonProperty("customRanking") + private List customRanking; + @JsonProperty("attributesToRetrieve") private List attributesToRetrieve; @@ -1121,6 +1127,51 @@ public Integer getMaxFacetHits() { return maxFacetHits; } + public RecommendSearchParams setKeepDiacriticsOnCharacters(String keepDiacriticsOnCharacters) { + this.keepDiacriticsOnCharacters = keepDiacriticsOnCharacters; + return this; + } + + /** + * 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. + */ + @javax.annotation.Nullable + public String getKeepDiacriticsOnCharacters() { + return keepDiacriticsOnCharacters; + } + + public RecommendSearchParams setCustomRanking(List customRanking) { + this.customRanking = customRanking; + return this; + } + + public RecommendSearchParams addCustomRanking(String customRankingItem) { + if (this.customRanking == null) { + this.customRanking = new ArrayList<>(); + } + this.customRanking.add(customRankingItem); + return this; + } + + /** + * 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. + */ + @javax.annotation.Nullable + public List getCustomRanking() { + return customRanking; + } + public RecommendSearchParams setAttributesToRetrieve(List attributesToRetrieve) { this.attributesToRetrieve = attributesToRetrieve; return this; @@ -1821,6 +1872,8 @@ public boolean equals(Object o) { Objects.equals(this.customNormalization, recommendSearchParams.customNormalization) && Objects.equals(this.attributeForDistinct, recommendSearchParams.attributeForDistinct) && Objects.equals(this.maxFacetHits, recommendSearchParams.maxFacetHits) && + Objects.equals(this.keepDiacriticsOnCharacters, recommendSearchParams.keepDiacriticsOnCharacters) && + Objects.equals(this.customRanking, recommendSearchParams.customRanking) && Objects.equals(this.attributesToRetrieve, recommendSearchParams.attributesToRetrieve) && Objects.equals(this.ranking, recommendSearchParams.ranking) && Objects.equals(this.relevancyStrictness, recommendSearchParams.relevancyStrictness) && @@ -1912,6 +1965,8 @@ public int hashCode() { customNormalization, attributeForDistinct, maxFacetHits, + keepDiacriticsOnCharacters, + customRanking, attributesToRetrieve, ranking, relevancyStrictness, @@ -2004,6 +2059,8 @@ public String toString() { sb.append(" customNormalization: ").append(toIndentedString(customNormalization)).append("\n"); sb.append(" attributeForDistinct: ").append(toIndentedString(attributeForDistinct)).append("\n"); sb.append(" maxFacetHits: ").append(toIndentedString(maxFacetHits)).append("\n"); + sb.append(" keepDiacriticsOnCharacters: ").append(toIndentedString(keepDiacriticsOnCharacters)).append("\n"); + sb.append(" customRanking: ").append(toIndentedString(customRanking)).append("\n"); sb.append(" attributesToRetrieve: ").append(toIndentedString(attributesToRetrieve)).append("\n"); sb.append(" ranking: ").append(toIndentedString(ranking)).append("\n"); sb.append(" relevancyStrictness: ").append(toIndentedString(relevancyStrictness)).append("\n"); diff --git a/algoliasearch/src/main/java/com/algolia/model/search/BrowseParamsObject.java b/algoliasearch/src/main/java/com/algolia/model/search/BrowseParamsObject.java index 064fb2b7..6c23968d 100644 --- a/algoliasearch/src/main/java/com/algolia/model/search/BrowseParamsObject.java +++ b/algoliasearch/src/main/java/com/algolia/model/search/BrowseParamsObject.java @@ -115,9 +115,6 @@ public class BrowseParamsObject implements BrowseParams { @JsonProperty("ranking") private List ranking; - @JsonProperty("customRanking") - private List customRanking; - @JsonProperty("relevancyStrictness") private Integer relevancyStrictness; @@ -163,9 +160,6 @@ public class BrowseParamsObject implements BrowseParams { @JsonProperty("removeStopWords") private RemoveStopWords removeStopWords; - @JsonProperty("keepDiacriticsOnCharacters") - private String keepDiacriticsOnCharacters; - @JsonProperty("queryLanguages") private List queryLanguages; @@ -780,36 +774,6 @@ public List getRanking() { return ranking; } - public BrowseParamsObject setCustomRanking(List customRanking) { - this.customRanking = customRanking; - return this; - } - - public BrowseParamsObject addCustomRanking(String customRankingItem) { - if (this.customRanking == null) { - this.customRanking = new ArrayList<>(); - } - this.customRanking.add(customRankingItem); - return this; - } - - /** - * 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. - */ - @javax.annotation.Nullable - public List getCustomRanking() { - return customRanking; - } - public BrowseParamsObject setRelevancyStrictness(Integer relevancyStrictness) { this.relevancyStrictness = relevancyStrictness; return this; @@ -1042,21 +1006,6 @@ public RemoveStopWords getRemoveStopWords() { return removeStopWords; } - public BrowseParamsObject setKeepDiacriticsOnCharacters(String keepDiacriticsOnCharacters) { - this.keepDiacriticsOnCharacters = keepDiacriticsOnCharacters; - return this; - } - - /** - * 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. - */ - @javax.annotation.Nullable - public String getKeepDiacriticsOnCharacters() { - return keepDiacriticsOnCharacters; - } - public BrowseParamsObject setQueryLanguages(List queryLanguages) { this.queryLanguages = queryLanguages; return this; @@ -1503,7 +1452,6 @@ public boolean equals(Object o) { Objects.equals(this.enableABTest, browseParamsObject.enableABTest) && Objects.equals(this.attributesToRetrieve, browseParamsObject.attributesToRetrieve) && Objects.equals(this.ranking, browseParamsObject.ranking) && - Objects.equals(this.customRanking, browseParamsObject.customRanking) && Objects.equals(this.relevancyStrictness, browseParamsObject.relevancyStrictness) && Objects.equals(this.attributesToHighlight, browseParamsObject.attributesToHighlight) && Objects.equals(this.attributesToSnippet, browseParamsObject.attributesToSnippet) && @@ -1519,7 +1467,6 @@ public boolean equals(Object o) { Objects.equals(this.disableTypoToleranceOnAttributes, browseParamsObject.disableTypoToleranceOnAttributes) && Objects.equals(this.ignorePlurals, browseParamsObject.ignorePlurals) && Objects.equals(this.removeStopWords, browseParamsObject.removeStopWords) && - Objects.equals(this.keepDiacriticsOnCharacters, browseParamsObject.keepDiacriticsOnCharacters) && Objects.equals(this.queryLanguages, browseParamsObject.queryLanguages) && Objects.equals(this.decompoundQuery, browseParamsObject.decompoundQuery) && Objects.equals(this.enableRules, browseParamsObject.enableRules) && @@ -1585,7 +1532,6 @@ public int hashCode() { enableABTest, attributesToRetrieve, ranking, - customRanking, relevancyStrictness, attributesToHighlight, attributesToSnippet, @@ -1601,7 +1547,6 @@ public int hashCode() { disableTypoToleranceOnAttributes, ignorePlurals, removeStopWords, - keepDiacriticsOnCharacters, queryLanguages, decompoundQuery, enableRules, @@ -1668,7 +1613,6 @@ public String toString() { sb.append(" enableABTest: ").append(toIndentedString(enableABTest)).append("\n"); sb.append(" attributesToRetrieve: ").append(toIndentedString(attributesToRetrieve)).append("\n"); sb.append(" ranking: ").append(toIndentedString(ranking)).append("\n"); - sb.append(" customRanking: ").append(toIndentedString(customRanking)).append("\n"); sb.append(" relevancyStrictness: ").append(toIndentedString(relevancyStrictness)).append("\n"); sb.append(" attributesToHighlight: ").append(toIndentedString(attributesToHighlight)).append("\n"); sb.append(" attributesToSnippet: ").append(toIndentedString(attributesToSnippet)).append("\n"); @@ -1684,7 +1628,6 @@ public String toString() { sb.append(" disableTypoToleranceOnAttributes: ").append(toIndentedString(disableTypoToleranceOnAttributes)).append("\n"); sb.append(" ignorePlurals: ").append(toIndentedString(ignorePlurals)).append("\n"); sb.append(" removeStopWords: ").append(toIndentedString(removeStopWords)).append("\n"); - sb.append(" keepDiacriticsOnCharacters: ").append(toIndentedString(keepDiacriticsOnCharacters)).append("\n"); sb.append(" queryLanguages: ").append(toIndentedString(queryLanguages)).append("\n"); sb.append(" decompoundQuery: ").append(toIndentedString(decompoundQuery)).append("\n"); sb.append(" enableRules: ").append(toIndentedString(enableRules)).append("\n"); diff --git a/algoliasearch/src/main/java/com/algolia/model/search/ConsequenceParams.java b/algoliasearch/src/main/java/com/algolia/model/search/ConsequenceParams.java index f0fa96ce..fa33fec1 100644 --- a/algoliasearch/src/main/java/com/algolia/model/search/ConsequenceParams.java +++ b/algoliasearch/src/main/java/com/algolia/model/search/ConsequenceParams.java @@ -111,9 +111,6 @@ public class ConsequenceParams { @JsonProperty("ranking") private List ranking; - @JsonProperty("customRanking") - private List customRanking; - @JsonProperty("relevancyStrictness") private Integer relevancyStrictness; @@ -159,9 +156,6 @@ public class ConsequenceParams { @JsonProperty("removeStopWords") private RemoveStopWords removeStopWords; - @JsonProperty("keepDiacriticsOnCharacters") - private String keepDiacriticsOnCharacters; - @JsonProperty("queryLanguages") private List queryLanguages; @@ -771,36 +765,6 @@ public List getRanking() { return ranking; } - public ConsequenceParams setCustomRanking(List customRanking) { - this.customRanking = customRanking; - return this; - } - - public ConsequenceParams addCustomRanking(String customRankingItem) { - if (this.customRanking == null) { - this.customRanking = new ArrayList<>(); - } - this.customRanking.add(customRankingItem); - return this; - } - - /** - * 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. - */ - @javax.annotation.Nullable - public List getCustomRanking() { - return customRanking; - } - public ConsequenceParams setRelevancyStrictness(Integer relevancyStrictness) { this.relevancyStrictness = relevancyStrictness; return this; @@ -1033,21 +997,6 @@ public RemoveStopWords getRemoveStopWords() { return removeStopWords; } - public ConsequenceParams setKeepDiacriticsOnCharacters(String keepDiacriticsOnCharacters) { - this.keepDiacriticsOnCharacters = keepDiacriticsOnCharacters; - return this; - } - - /** - * 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. - */ - @javax.annotation.Nullable - public String getKeepDiacriticsOnCharacters() { - return keepDiacriticsOnCharacters; - } - public ConsequenceParams setQueryLanguages(List queryLanguages) { this.queryLanguages = queryLanguages; return this; @@ -1511,7 +1460,6 @@ public boolean equals(Object o) { Objects.equals(this.enableABTest, consequenceParams.enableABTest) && Objects.equals(this.attributesToRetrieve, consequenceParams.attributesToRetrieve) && Objects.equals(this.ranking, consequenceParams.ranking) && - Objects.equals(this.customRanking, consequenceParams.customRanking) && Objects.equals(this.relevancyStrictness, consequenceParams.relevancyStrictness) && Objects.equals(this.attributesToHighlight, consequenceParams.attributesToHighlight) && Objects.equals(this.attributesToSnippet, consequenceParams.attributesToSnippet) && @@ -1527,7 +1475,6 @@ public boolean equals(Object o) { Objects.equals(this.disableTypoToleranceOnAttributes, consequenceParams.disableTypoToleranceOnAttributes) && Objects.equals(this.ignorePlurals, consequenceParams.ignorePlurals) && Objects.equals(this.removeStopWords, consequenceParams.removeStopWords) && - Objects.equals(this.keepDiacriticsOnCharacters, consequenceParams.keepDiacriticsOnCharacters) && Objects.equals(this.queryLanguages, consequenceParams.queryLanguages) && Objects.equals(this.decompoundQuery, consequenceParams.decompoundQuery) && Objects.equals(this.enableRules, consequenceParams.enableRules) && @@ -1594,7 +1541,6 @@ public int hashCode() { enableABTest, attributesToRetrieve, ranking, - customRanking, relevancyStrictness, attributesToHighlight, attributesToSnippet, @@ -1610,7 +1556,6 @@ public int hashCode() { disableTypoToleranceOnAttributes, ignorePlurals, removeStopWords, - keepDiacriticsOnCharacters, queryLanguages, decompoundQuery, enableRules, @@ -1678,7 +1623,6 @@ public String toString() { sb.append(" enableABTest: ").append(toIndentedString(enableABTest)).append("\n"); sb.append(" attributesToRetrieve: ").append(toIndentedString(attributesToRetrieve)).append("\n"); sb.append(" ranking: ").append(toIndentedString(ranking)).append("\n"); - sb.append(" customRanking: ").append(toIndentedString(customRanking)).append("\n"); sb.append(" relevancyStrictness: ").append(toIndentedString(relevancyStrictness)).append("\n"); sb.append(" attributesToHighlight: ").append(toIndentedString(attributesToHighlight)).append("\n"); sb.append(" attributesToSnippet: ").append(toIndentedString(attributesToSnippet)).append("\n"); @@ -1694,7 +1638,6 @@ public String toString() { sb.append(" disableTypoToleranceOnAttributes: ").append(toIndentedString(disableTypoToleranceOnAttributes)).append("\n"); sb.append(" ignorePlurals: ").append(toIndentedString(ignorePlurals)).append("\n"); sb.append(" removeStopWords: ").append(toIndentedString(removeStopWords)).append("\n"); - sb.append(" keepDiacriticsOnCharacters: ").append(toIndentedString(keepDiacriticsOnCharacters)).append("\n"); sb.append(" queryLanguages: ").append(toIndentedString(queryLanguages)).append("\n"); sb.append(" decompoundQuery: ").append(toIndentedString(decompoundQuery)).append("\n"); sb.append(" enableRules: ").append(toIndentedString(enableRules)).append("\n"); diff --git a/algoliasearch/src/main/java/com/algolia/model/search/IndexSettings.java b/algoliasearch/src/main/java/com/algolia/model/search/IndexSettings.java index efc4f6ab..acd535d9 100644 --- a/algoliasearch/src/main/java/com/algolia/model/search/IndexSettings.java +++ b/algoliasearch/src/main/java/com/algolia/model/search/IndexSettings.java @@ -68,15 +68,18 @@ public class IndexSettings { @JsonProperty("maxFacetHits") private Integer maxFacetHits; + @JsonProperty("keepDiacriticsOnCharacters") + private String keepDiacriticsOnCharacters; + + @JsonProperty("customRanking") + private List customRanking; + @JsonProperty("attributesToRetrieve") private List attributesToRetrieve; @JsonProperty("ranking") private List ranking; - @JsonProperty("customRanking") - private List customRanking; - @JsonProperty("relevancyStrictness") private Integer relevancyStrictness; @@ -122,9 +125,6 @@ public class IndexSettings { @JsonProperty("removeStopWords") private RemoveStopWords removeStopWords; - @JsonProperty("keepDiacriticsOnCharacters") - private String keepDiacriticsOnCharacters; - @JsonProperty("queryLanguages") private List queryLanguages; @@ -600,6 +600,51 @@ public Integer getMaxFacetHits() { return maxFacetHits; } + public IndexSettings setKeepDiacriticsOnCharacters(String keepDiacriticsOnCharacters) { + this.keepDiacriticsOnCharacters = keepDiacriticsOnCharacters; + return this; + } + + /** + * 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. + */ + @javax.annotation.Nullable + public String getKeepDiacriticsOnCharacters() { + return keepDiacriticsOnCharacters; + } + + public IndexSettings setCustomRanking(List customRanking) { + this.customRanking = customRanking; + return this; + } + + public IndexSettings addCustomRanking(String customRankingItem) { + if (this.customRanking == null) { + this.customRanking = new ArrayList<>(); + } + this.customRanking.add(customRankingItem); + return this; + } + + /** + * 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. + */ + @javax.annotation.Nullable + public List getCustomRanking() { + return customRanking; + } + public IndexSettings setAttributesToRetrieve(List attributesToRetrieve) { this.attributesToRetrieve = attributesToRetrieve; return this; @@ -657,36 +702,6 @@ public List getRanking() { return ranking; } - public IndexSettings setCustomRanking(List customRanking) { - this.customRanking = customRanking; - return this; - } - - public IndexSettings addCustomRanking(String customRankingItem) { - if (this.customRanking == null) { - this.customRanking = new ArrayList<>(); - } - this.customRanking.add(customRankingItem); - return this; - } - - /** - * 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. - */ - @javax.annotation.Nullable - public List getCustomRanking() { - return customRanking; - } - public IndexSettings setRelevancyStrictness(Integer relevancyStrictness) { this.relevancyStrictness = relevancyStrictness; return this; @@ -919,21 +934,6 @@ public RemoveStopWords getRemoveStopWords() { return removeStopWords; } - public IndexSettings setKeepDiacriticsOnCharacters(String keepDiacriticsOnCharacters) { - this.keepDiacriticsOnCharacters = keepDiacriticsOnCharacters; - return this; - } - - /** - * 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. - */ - @javax.annotation.Nullable - public String getKeepDiacriticsOnCharacters() { - return keepDiacriticsOnCharacters; - } - public IndexSettings setQueryLanguages(List queryLanguages) { this.queryLanguages = queryLanguages; return this; @@ -1349,9 +1349,10 @@ public boolean equals(Object o) { Objects.equals(this.customNormalization, indexSettings.customNormalization) && Objects.equals(this.attributeForDistinct, indexSettings.attributeForDistinct) && Objects.equals(this.maxFacetHits, indexSettings.maxFacetHits) && + Objects.equals(this.keepDiacriticsOnCharacters, indexSettings.keepDiacriticsOnCharacters) && + Objects.equals(this.customRanking, indexSettings.customRanking) && Objects.equals(this.attributesToRetrieve, indexSettings.attributesToRetrieve) && Objects.equals(this.ranking, indexSettings.ranking) && - Objects.equals(this.customRanking, indexSettings.customRanking) && Objects.equals(this.relevancyStrictness, indexSettings.relevancyStrictness) && Objects.equals(this.attributesToHighlight, indexSettings.attributesToHighlight) && Objects.equals(this.attributesToSnippet, indexSettings.attributesToSnippet) && @@ -1367,7 +1368,6 @@ public boolean equals(Object o) { Objects.equals(this.disableTypoToleranceOnAttributes, indexSettings.disableTypoToleranceOnAttributes) && Objects.equals(this.ignorePlurals, indexSettings.ignorePlurals) && Objects.equals(this.removeStopWords, indexSettings.removeStopWords) && - Objects.equals(this.keepDiacriticsOnCharacters, indexSettings.keepDiacriticsOnCharacters) && Objects.equals(this.queryLanguages, indexSettings.queryLanguages) && Objects.equals(this.decompoundQuery, indexSettings.decompoundQuery) && Objects.equals(this.enableRules, indexSettings.enableRules) && @@ -1416,9 +1416,10 @@ public int hashCode() { customNormalization, attributeForDistinct, maxFacetHits, + keepDiacriticsOnCharacters, + customRanking, attributesToRetrieve, ranking, - customRanking, relevancyStrictness, attributesToHighlight, attributesToSnippet, @@ -1434,7 +1435,6 @@ public int hashCode() { disableTypoToleranceOnAttributes, ignorePlurals, removeStopWords, - keepDiacriticsOnCharacters, queryLanguages, decompoundQuery, enableRules, @@ -1484,9 +1484,10 @@ public String toString() { sb.append(" customNormalization: ").append(toIndentedString(customNormalization)).append("\n"); sb.append(" attributeForDistinct: ").append(toIndentedString(attributeForDistinct)).append("\n"); sb.append(" maxFacetHits: ").append(toIndentedString(maxFacetHits)).append("\n"); + sb.append(" keepDiacriticsOnCharacters: ").append(toIndentedString(keepDiacriticsOnCharacters)).append("\n"); + sb.append(" customRanking: ").append(toIndentedString(customRanking)).append("\n"); sb.append(" attributesToRetrieve: ").append(toIndentedString(attributesToRetrieve)).append("\n"); sb.append(" ranking: ").append(toIndentedString(ranking)).append("\n"); - sb.append(" customRanking: ").append(toIndentedString(customRanking)).append("\n"); sb.append(" relevancyStrictness: ").append(toIndentedString(relevancyStrictness)).append("\n"); sb.append(" attributesToHighlight: ").append(toIndentedString(attributesToHighlight)).append("\n"); sb.append(" attributesToSnippet: ").append(toIndentedString(attributesToSnippet)).append("\n"); @@ -1502,7 +1503,6 @@ public String toString() { sb.append(" disableTypoToleranceOnAttributes: ").append(toIndentedString(disableTypoToleranceOnAttributes)).append("\n"); sb.append(" ignorePlurals: ").append(toIndentedString(ignorePlurals)).append("\n"); sb.append(" removeStopWords: ").append(toIndentedString(removeStopWords)).append("\n"); - sb.append(" keepDiacriticsOnCharacters: ").append(toIndentedString(keepDiacriticsOnCharacters)).append("\n"); sb.append(" queryLanguages: ").append(toIndentedString(queryLanguages)).append("\n"); sb.append(" decompoundQuery: ").append(toIndentedString(decompoundQuery)).append("\n"); sb.append(" enableRules: ").append(toIndentedString(enableRules)).append("\n"); diff --git a/algoliasearch/src/main/java/com/algolia/model/search/SearchForFacets.java b/algoliasearch/src/main/java/com/algolia/model/search/SearchForFacets.java index 4dedde99..3f5c1a60 100644 --- a/algoliasearch/src/main/java/com/algolia/model/search/SearchForFacets.java +++ b/algoliasearch/src/main/java/com/algolia/model/search/SearchForFacets.java @@ -118,9 +118,6 @@ public class SearchForFacets implements SearchQuery { @JsonProperty("ranking") private List ranking; - @JsonProperty("customRanking") - private List customRanking; - @JsonProperty("relevancyStrictness") private Integer relevancyStrictness; @@ -166,9 +163,6 @@ public class SearchForFacets implements SearchQuery { @JsonProperty("removeStopWords") private RemoveStopWords removeStopWords; - @JsonProperty("keepDiacriticsOnCharacters") - private String keepDiacriticsOnCharacters; - @JsonProperty("queryLanguages") private List queryLanguages; @@ -806,36 +800,6 @@ public List getRanking() { return ranking; } - public SearchForFacets setCustomRanking(List customRanking) { - this.customRanking = customRanking; - return this; - } - - public SearchForFacets addCustomRanking(String customRankingItem) { - if (this.customRanking == null) { - this.customRanking = new ArrayList<>(); - } - this.customRanking.add(customRankingItem); - return this; - } - - /** - * 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. - */ - @javax.annotation.Nullable - public List getCustomRanking() { - return customRanking; - } - public SearchForFacets setRelevancyStrictness(Integer relevancyStrictness) { this.relevancyStrictness = relevancyStrictness; return this; @@ -1068,21 +1032,6 @@ public RemoveStopWords getRemoveStopWords() { return removeStopWords; } - public SearchForFacets setKeepDiacriticsOnCharacters(String keepDiacriticsOnCharacters) { - this.keepDiacriticsOnCharacters = keepDiacriticsOnCharacters; - return this; - } - - /** - * 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. - */ - @javax.annotation.Nullable - public String getKeepDiacriticsOnCharacters() { - return keepDiacriticsOnCharacters; - } - public SearchForFacets setQueryLanguages(List queryLanguages) { this.queryLanguages = queryLanguages; return this; @@ -1574,7 +1523,6 @@ public boolean equals(Object o) { Objects.equals(this.enableABTest, searchForFacets.enableABTest) && Objects.equals(this.attributesToRetrieve, searchForFacets.attributesToRetrieve) && Objects.equals(this.ranking, searchForFacets.ranking) && - Objects.equals(this.customRanking, searchForFacets.customRanking) && Objects.equals(this.relevancyStrictness, searchForFacets.relevancyStrictness) && Objects.equals(this.attributesToHighlight, searchForFacets.attributesToHighlight) && Objects.equals(this.attributesToSnippet, searchForFacets.attributesToSnippet) && @@ -1590,7 +1538,6 @@ public boolean equals(Object o) { Objects.equals(this.disableTypoToleranceOnAttributes, searchForFacets.disableTypoToleranceOnAttributes) && Objects.equals(this.ignorePlurals, searchForFacets.ignorePlurals) && Objects.equals(this.removeStopWords, searchForFacets.removeStopWords) && - Objects.equals(this.keepDiacriticsOnCharacters, searchForFacets.keepDiacriticsOnCharacters) && Objects.equals(this.queryLanguages, searchForFacets.queryLanguages) && Objects.equals(this.decompoundQuery, searchForFacets.decompoundQuery) && Objects.equals(this.enableRules, searchForFacets.enableRules) && @@ -1661,7 +1608,6 @@ public int hashCode() { enableABTest, attributesToRetrieve, ranking, - customRanking, relevancyStrictness, attributesToHighlight, attributesToSnippet, @@ -1677,7 +1623,6 @@ public int hashCode() { disableTypoToleranceOnAttributes, ignorePlurals, removeStopWords, - keepDiacriticsOnCharacters, queryLanguages, decompoundQuery, enableRules, @@ -1749,7 +1694,6 @@ public String toString() { sb.append(" enableABTest: ").append(toIndentedString(enableABTest)).append("\n"); sb.append(" attributesToRetrieve: ").append(toIndentedString(attributesToRetrieve)).append("\n"); sb.append(" ranking: ").append(toIndentedString(ranking)).append("\n"); - sb.append(" customRanking: ").append(toIndentedString(customRanking)).append("\n"); sb.append(" relevancyStrictness: ").append(toIndentedString(relevancyStrictness)).append("\n"); sb.append(" attributesToHighlight: ").append(toIndentedString(attributesToHighlight)).append("\n"); sb.append(" attributesToSnippet: ").append(toIndentedString(attributesToSnippet)).append("\n"); @@ -1765,7 +1709,6 @@ public String toString() { sb.append(" disableTypoToleranceOnAttributes: ").append(toIndentedString(disableTypoToleranceOnAttributes)).append("\n"); sb.append(" ignorePlurals: ").append(toIndentedString(ignorePlurals)).append("\n"); sb.append(" removeStopWords: ").append(toIndentedString(removeStopWords)).append("\n"); - sb.append(" keepDiacriticsOnCharacters: ").append(toIndentedString(keepDiacriticsOnCharacters)).append("\n"); sb.append(" queryLanguages: ").append(toIndentedString(queryLanguages)).append("\n"); sb.append(" decompoundQuery: ").append(toIndentedString(decompoundQuery)).append("\n"); sb.append(" enableRules: ").append(toIndentedString(enableRules)).append("\n"); diff --git a/algoliasearch/src/main/java/com/algolia/model/search/SearchForHits.java b/algoliasearch/src/main/java/com/algolia/model/search/SearchForHits.java index b6267de8..19725ffe 100644 --- a/algoliasearch/src/main/java/com/algolia/model/search/SearchForHits.java +++ b/algoliasearch/src/main/java/com/algolia/model/search/SearchForHits.java @@ -118,9 +118,6 @@ public class SearchForHits implements SearchQuery { @JsonProperty("ranking") private List ranking; - @JsonProperty("customRanking") - private List customRanking; - @JsonProperty("relevancyStrictness") private Integer relevancyStrictness; @@ -166,9 +163,6 @@ public class SearchForHits implements SearchQuery { @JsonProperty("removeStopWords") private RemoveStopWords removeStopWords; - @JsonProperty("keepDiacriticsOnCharacters") - private String keepDiacriticsOnCharacters; - @JsonProperty("queryLanguages") private List queryLanguages; @@ -797,36 +791,6 @@ public List getRanking() { return ranking; } - public SearchForHits setCustomRanking(List customRanking) { - this.customRanking = customRanking; - return this; - } - - public SearchForHits addCustomRanking(String customRankingItem) { - if (this.customRanking == null) { - this.customRanking = new ArrayList<>(); - } - this.customRanking.add(customRankingItem); - return this; - } - - /** - * 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. - */ - @javax.annotation.Nullable - public List getCustomRanking() { - return customRanking; - } - public SearchForHits setRelevancyStrictness(Integer relevancyStrictness) { this.relevancyStrictness = relevancyStrictness; return this; @@ -1059,21 +1023,6 @@ public RemoveStopWords getRemoveStopWords() { return removeStopWords; } - public SearchForHits setKeepDiacriticsOnCharacters(String keepDiacriticsOnCharacters) { - this.keepDiacriticsOnCharacters = keepDiacriticsOnCharacters; - return this; - } - - /** - * 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. - */ - @javax.annotation.Nullable - public String getKeepDiacriticsOnCharacters() { - return keepDiacriticsOnCharacters; - } - public SearchForHits setQueryLanguages(List queryLanguages) { this.queryLanguages = queryLanguages; return this; @@ -1528,7 +1477,6 @@ public boolean equals(Object o) { Objects.equals(this.enableABTest, searchForHits.enableABTest) && Objects.equals(this.attributesToRetrieve, searchForHits.attributesToRetrieve) && Objects.equals(this.ranking, searchForHits.ranking) && - Objects.equals(this.customRanking, searchForHits.customRanking) && Objects.equals(this.relevancyStrictness, searchForHits.relevancyStrictness) && Objects.equals(this.attributesToHighlight, searchForHits.attributesToHighlight) && Objects.equals(this.attributesToSnippet, searchForHits.attributesToSnippet) && @@ -1544,7 +1492,6 @@ public boolean equals(Object o) { Objects.equals(this.disableTypoToleranceOnAttributes, searchForHits.disableTypoToleranceOnAttributes) && Objects.equals(this.ignorePlurals, searchForHits.ignorePlurals) && Objects.equals(this.removeStopWords, searchForHits.removeStopWords) && - Objects.equals(this.keepDiacriticsOnCharacters, searchForHits.keepDiacriticsOnCharacters) && Objects.equals(this.queryLanguages, searchForHits.queryLanguages) && Objects.equals(this.decompoundQuery, searchForHits.decompoundQuery) && Objects.equals(this.enableRules, searchForHits.enableRules) && @@ -1612,7 +1559,6 @@ public int hashCode() { enableABTest, attributesToRetrieve, ranking, - customRanking, relevancyStrictness, attributesToHighlight, attributesToSnippet, @@ -1628,7 +1574,6 @@ public int hashCode() { disableTypoToleranceOnAttributes, ignorePlurals, removeStopWords, - keepDiacriticsOnCharacters, queryLanguages, decompoundQuery, enableRules, @@ -1697,7 +1642,6 @@ public String toString() { sb.append(" enableABTest: ").append(toIndentedString(enableABTest)).append("\n"); sb.append(" attributesToRetrieve: ").append(toIndentedString(attributesToRetrieve)).append("\n"); sb.append(" ranking: ").append(toIndentedString(ranking)).append("\n"); - sb.append(" customRanking: ").append(toIndentedString(customRanking)).append("\n"); sb.append(" relevancyStrictness: ").append(toIndentedString(relevancyStrictness)).append("\n"); sb.append(" attributesToHighlight: ").append(toIndentedString(attributesToHighlight)).append("\n"); sb.append(" attributesToSnippet: ").append(toIndentedString(attributesToSnippet)).append("\n"); @@ -1713,7 +1657,6 @@ public String toString() { sb.append(" disableTypoToleranceOnAttributes: ").append(toIndentedString(disableTypoToleranceOnAttributes)).append("\n"); sb.append(" ignorePlurals: ").append(toIndentedString(ignorePlurals)).append("\n"); sb.append(" removeStopWords: ").append(toIndentedString(removeStopWords)).append("\n"); - sb.append(" keepDiacriticsOnCharacters: ").append(toIndentedString(keepDiacriticsOnCharacters)).append("\n"); sb.append(" queryLanguages: ").append(toIndentedString(queryLanguages)).append("\n"); sb.append(" decompoundQuery: ").append(toIndentedString(decompoundQuery)).append("\n"); sb.append(" enableRules: ").append(toIndentedString(enableRules)).append("\n"); diff --git a/algoliasearch/src/main/java/com/algolia/model/search/SearchParamsObject.java b/algoliasearch/src/main/java/com/algolia/model/search/SearchParamsObject.java index be6c9e49..e4b92970 100644 --- a/algoliasearch/src/main/java/com/algolia/model/search/SearchParamsObject.java +++ b/algoliasearch/src/main/java/com/algolia/model/search/SearchParamsObject.java @@ -115,9 +115,6 @@ public class SearchParamsObject implements SearchParams { @JsonProperty("ranking") private List ranking; - @JsonProperty("customRanking") - private List customRanking; - @JsonProperty("relevancyStrictness") private Integer relevancyStrictness; @@ -163,9 +160,6 @@ public class SearchParamsObject implements SearchParams { @JsonProperty("removeStopWords") private RemoveStopWords removeStopWords; - @JsonProperty("keepDiacriticsOnCharacters") - private String keepDiacriticsOnCharacters; - @JsonProperty("queryLanguages") private List queryLanguages; @@ -777,36 +771,6 @@ public List getRanking() { return ranking; } - public SearchParamsObject setCustomRanking(List customRanking) { - this.customRanking = customRanking; - return this; - } - - public SearchParamsObject addCustomRanking(String customRankingItem) { - if (this.customRanking == null) { - this.customRanking = new ArrayList<>(); - } - this.customRanking.add(customRankingItem); - return this; - } - - /** - * 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. - */ - @javax.annotation.Nullable - public List getCustomRanking() { - return customRanking; - } - public SearchParamsObject setRelevancyStrictness(Integer relevancyStrictness) { this.relevancyStrictness = relevancyStrictness; return this; @@ -1039,21 +1003,6 @@ public RemoveStopWords getRemoveStopWords() { return removeStopWords; } - public SearchParamsObject setKeepDiacriticsOnCharacters(String keepDiacriticsOnCharacters) { - this.keepDiacriticsOnCharacters = keepDiacriticsOnCharacters; - return this; - } - - /** - * 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. - */ - @javax.annotation.Nullable - public String getKeepDiacriticsOnCharacters() { - return keepDiacriticsOnCharacters; - } - public SearchParamsObject setQueryLanguages(List queryLanguages) { this.queryLanguages = queryLanguages; return this; @@ -1485,7 +1434,6 @@ public boolean equals(Object o) { Objects.equals(this.enableABTest, searchParamsObject.enableABTest) && Objects.equals(this.attributesToRetrieve, searchParamsObject.attributesToRetrieve) && Objects.equals(this.ranking, searchParamsObject.ranking) && - Objects.equals(this.customRanking, searchParamsObject.customRanking) && Objects.equals(this.relevancyStrictness, searchParamsObject.relevancyStrictness) && Objects.equals(this.attributesToHighlight, searchParamsObject.attributesToHighlight) && Objects.equals(this.attributesToSnippet, searchParamsObject.attributesToSnippet) && @@ -1501,7 +1449,6 @@ public boolean equals(Object o) { Objects.equals(this.disableTypoToleranceOnAttributes, searchParamsObject.disableTypoToleranceOnAttributes) && Objects.equals(this.ignorePlurals, searchParamsObject.ignorePlurals) && Objects.equals(this.removeStopWords, searchParamsObject.removeStopWords) && - Objects.equals(this.keepDiacriticsOnCharacters, searchParamsObject.keepDiacriticsOnCharacters) && Objects.equals(this.queryLanguages, searchParamsObject.queryLanguages) && Objects.equals(this.decompoundQuery, searchParamsObject.decompoundQuery) && Objects.equals(this.enableRules, searchParamsObject.enableRules) && @@ -1566,7 +1513,6 @@ public int hashCode() { enableABTest, attributesToRetrieve, ranking, - customRanking, relevancyStrictness, attributesToHighlight, attributesToSnippet, @@ -1582,7 +1528,6 @@ public int hashCode() { disableTypoToleranceOnAttributes, ignorePlurals, removeStopWords, - keepDiacriticsOnCharacters, queryLanguages, decompoundQuery, enableRules, @@ -1648,7 +1593,6 @@ public String toString() { sb.append(" enableABTest: ").append(toIndentedString(enableABTest)).append("\n"); sb.append(" attributesToRetrieve: ").append(toIndentedString(attributesToRetrieve)).append("\n"); sb.append(" ranking: ").append(toIndentedString(ranking)).append("\n"); - sb.append(" customRanking: ").append(toIndentedString(customRanking)).append("\n"); sb.append(" relevancyStrictness: ").append(toIndentedString(relevancyStrictness)).append("\n"); sb.append(" attributesToHighlight: ").append(toIndentedString(attributesToHighlight)).append("\n"); sb.append(" attributesToSnippet: ").append(toIndentedString(attributesToSnippet)).append("\n"); @@ -1664,7 +1608,6 @@ public String toString() { sb.append(" disableTypoToleranceOnAttributes: ").append(toIndentedString(disableTypoToleranceOnAttributes)).append("\n"); sb.append(" ignorePlurals: ").append(toIndentedString(ignorePlurals)).append("\n"); sb.append(" removeStopWords: ").append(toIndentedString(removeStopWords)).append("\n"); - sb.append(" keepDiacriticsOnCharacters: ").append(toIndentedString(keepDiacriticsOnCharacters)).append("\n"); sb.append(" queryLanguages: ").append(toIndentedString(queryLanguages)).append("\n"); sb.append(" decompoundQuery: ").append(toIndentedString(decompoundQuery)).append("\n"); sb.append(" enableRules: ").append(toIndentedString(enableRules)).append("\n"); diff --git a/algoliasearch/src/main/java/com/algolia/model/search/SettingsResponse.java b/algoliasearch/src/main/java/com/algolia/model/search/SettingsResponse.java index afcc2cdb..3be3e315 100644 --- a/algoliasearch/src/main/java/com/algolia/model/search/SettingsResponse.java +++ b/algoliasearch/src/main/java/com/algolia/model/search/SettingsResponse.java @@ -68,15 +68,18 @@ public class SettingsResponse { @JsonProperty("maxFacetHits") private Integer maxFacetHits; + @JsonProperty("keepDiacriticsOnCharacters") + private String keepDiacriticsOnCharacters; + + @JsonProperty("customRanking") + private List customRanking; + @JsonProperty("attributesToRetrieve") private List attributesToRetrieve; @JsonProperty("ranking") private List ranking; - @JsonProperty("customRanking") - private List customRanking; - @JsonProperty("relevancyStrictness") private Integer relevancyStrictness; @@ -122,9 +125,6 @@ public class SettingsResponse { @JsonProperty("removeStopWords") private RemoveStopWords removeStopWords; - @JsonProperty("keepDiacriticsOnCharacters") - private String keepDiacriticsOnCharacters; - @JsonProperty("queryLanguages") private List queryLanguages; @@ -603,6 +603,51 @@ public Integer getMaxFacetHits() { return maxFacetHits; } + public SettingsResponse setKeepDiacriticsOnCharacters(String keepDiacriticsOnCharacters) { + this.keepDiacriticsOnCharacters = keepDiacriticsOnCharacters; + return this; + } + + /** + * 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. + */ + @javax.annotation.Nullable + public String getKeepDiacriticsOnCharacters() { + return keepDiacriticsOnCharacters; + } + + public SettingsResponse setCustomRanking(List customRanking) { + this.customRanking = customRanking; + return this; + } + + public SettingsResponse addCustomRanking(String customRankingItem) { + if (this.customRanking == null) { + this.customRanking = new ArrayList<>(); + } + this.customRanking.add(customRankingItem); + return this; + } + + /** + * 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. + */ + @javax.annotation.Nullable + public List getCustomRanking() { + return customRanking; + } + public SettingsResponse setAttributesToRetrieve(List attributesToRetrieve) { this.attributesToRetrieve = attributesToRetrieve; return this; @@ -660,36 +705,6 @@ public List getRanking() { return ranking; } - public SettingsResponse setCustomRanking(List customRanking) { - this.customRanking = customRanking; - return this; - } - - public SettingsResponse addCustomRanking(String customRankingItem) { - if (this.customRanking == null) { - this.customRanking = new ArrayList<>(); - } - this.customRanking.add(customRankingItem); - return this; - } - - /** - * 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. - */ - @javax.annotation.Nullable - public List getCustomRanking() { - return customRanking; - } - public SettingsResponse setRelevancyStrictness(Integer relevancyStrictness) { this.relevancyStrictness = relevancyStrictness; return this; @@ -922,21 +937,6 @@ public RemoveStopWords getRemoveStopWords() { return removeStopWords; } - public SettingsResponse setKeepDiacriticsOnCharacters(String keepDiacriticsOnCharacters) { - this.keepDiacriticsOnCharacters = keepDiacriticsOnCharacters; - return this; - } - - /** - * 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. - */ - @javax.annotation.Nullable - public String getKeepDiacriticsOnCharacters() { - return keepDiacriticsOnCharacters; - } - public SettingsResponse setQueryLanguages(List queryLanguages) { this.queryLanguages = queryLanguages; return this; @@ -1363,9 +1363,10 @@ public boolean equals(Object o) { Objects.equals(this.customNormalization, settingsResponse.customNormalization) && Objects.equals(this.attributeForDistinct, settingsResponse.attributeForDistinct) && Objects.equals(this.maxFacetHits, settingsResponse.maxFacetHits) && + Objects.equals(this.keepDiacriticsOnCharacters, settingsResponse.keepDiacriticsOnCharacters) && + Objects.equals(this.customRanking, settingsResponse.customRanking) && Objects.equals(this.attributesToRetrieve, settingsResponse.attributesToRetrieve) && Objects.equals(this.ranking, settingsResponse.ranking) && - Objects.equals(this.customRanking, settingsResponse.customRanking) && Objects.equals(this.relevancyStrictness, settingsResponse.relevancyStrictness) && Objects.equals(this.attributesToHighlight, settingsResponse.attributesToHighlight) && Objects.equals(this.attributesToSnippet, settingsResponse.attributesToSnippet) && @@ -1381,7 +1382,6 @@ public boolean equals(Object o) { Objects.equals(this.disableTypoToleranceOnAttributes, settingsResponse.disableTypoToleranceOnAttributes) && Objects.equals(this.ignorePlurals, settingsResponse.ignorePlurals) && Objects.equals(this.removeStopWords, settingsResponse.removeStopWords) && - Objects.equals(this.keepDiacriticsOnCharacters, settingsResponse.keepDiacriticsOnCharacters) && Objects.equals(this.queryLanguages, settingsResponse.queryLanguages) && Objects.equals(this.decompoundQuery, settingsResponse.decompoundQuery) && Objects.equals(this.enableRules, settingsResponse.enableRules) && @@ -1431,9 +1431,10 @@ public int hashCode() { customNormalization, attributeForDistinct, maxFacetHits, + keepDiacriticsOnCharacters, + customRanking, attributesToRetrieve, ranking, - customRanking, relevancyStrictness, attributesToHighlight, attributesToSnippet, @@ -1449,7 +1450,6 @@ public int hashCode() { disableTypoToleranceOnAttributes, ignorePlurals, removeStopWords, - keepDiacriticsOnCharacters, queryLanguages, decompoundQuery, enableRules, @@ -1500,9 +1500,10 @@ public String toString() { sb.append(" customNormalization: ").append(toIndentedString(customNormalization)).append("\n"); sb.append(" attributeForDistinct: ").append(toIndentedString(attributeForDistinct)).append("\n"); sb.append(" maxFacetHits: ").append(toIndentedString(maxFacetHits)).append("\n"); + sb.append(" keepDiacriticsOnCharacters: ").append(toIndentedString(keepDiacriticsOnCharacters)).append("\n"); + sb.append(" customRanking: ").append(toIndentedString(customRanking)).append("\n"); sb.append(" attributesToRetrieve: ").append(toIndentedString(attributesToRetrieve)).append("\n"); sb.append(" ranking: ").append(toIndentedString(ranking)).append("\n"); - sb.append(" customRanking: ").append(toIndentedString(customRanking)).append("\n"); sb.append(" relevancyStrictness: ").append(toIndentedString(relevancyStrictness)).append("\n"); sb.append(" attributesToHighlight: ").append(toIndentedString(attributesToHighlight)).append("\n"); sb.append(" attributesToSnippet: ").append(toIndentedString(attributesToSnippet)).append("\n"); @@ -1518,7 +1519,6 @@ public String toString() { sb.append(" disableTypoToleranceOnAttributes: ").append(toIndentedString(disableTypoToleranceOnAttributes)).append("\n"); sb.append(" ignorePlurals: ").append(toIndentedString(ignorePlurals)).append("\n"); sb.append(" removeStopWords: ").append(toIndentedString(removeStopWords)).append("\n"); - sb.append(" keepDiacriticsOnCharacters: ").append(toIndentedString(keepDiacriticsOnCharacters)).append("\n"); sb.append(" queryLanguages: ").append(toIndentedString(queryLanguages)).append("\n"); sb.append(" decompoundQuery: ").append(toIndentedString(decompoundQuery)).append("\n"); sb.append(" enableRules: ").append(toIndentedString(enableRules)).append("\n");