Skip to content

Commit 1fff7ad

Browse files
fix(specs): remove recommend query params overridden by the API (generated)
algolia/api-clients-automation#6604 Co-authored-by: algolia-api-clients-automation-bot[bot] <288895823+algolia-api-clients-automation-bot[bot]@users.noreply.github.com> Co-authored-by: Raed <raed.chammam@algolia.com>
1 parent 16b9cde commit 1fff7ad

3 files changed

Lines changed: 12 additions & 320 deletions

File tree

algoliasearch/Models/Recommend/FacetFilters.cs

Lines changed: 0 additions & 216 deletions
This file was deleted.

algoliasearch/Models/Recommend/FallbackParams.cs

Lines changed: 1 addition & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Algolia.Search.Models.Recommend;
1313

1414
/// <summary>
15-
/// FallbackParams
15+
/// Search parameters to use for a fallback request if there aren't enough recommendations.
1616
/// </summary>
1717
public partial class FallbackParams
1818
{
@@ -53,12 +53,6 @@ public FallbackParams() { }
5353
[JsonPropertyName("filters")]
5454
public string Filters { get; set; }
5555

56-
/// <summary>
57-
/// Gets or Sets FacetFilters
58-
/// </summary>
59-
[JsonPropertyName("facetFilters")]
60-
public FacetFilters FacetFilters { get; set; }
61-
6256
/// <summary>
6357
/// Gets or Sets OptionalFilters
6458
/// </summary>
@@ -221,13 +215,6 @@ public FallbackParams() { }
221215
[JsonPropertyName("percentileComputation")]
222216
public bool? PercentileComputation { get; set; }
223217

224-
/// <summary>
225-
/// Whether to enable A/B testing for this search.
226-
/// </summary>
227-
/// <value>Whether to enable A/B testing for this search.</value>
228-
[JsonPropertyName("enableABTest")]
229-
public bool? EnableABTest { get; set; }
230-
231218
/// <summary>
232219
/// Search query.
233220
/// </summary>
@@ -382,13 +369,6 @@ public FallbackParams() { }
382369
[JsonPropertyName("attributesToRetrieve")]
383370
public List<string> AttributesToRetrieve { get; set; }
384371

385-
/// <summary>
386-
/// Determines the order in which Algolia returns your results. By default, each entry corresponds to a [ranking criteria](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria). The tie-breaking algorithm sequentially applies each criterion in the order they're specified. If you configure a replica index for [sorting by an attribute](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/how-to/sort-by-attribute), you put the sorting attribute at the top of the list. **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. Before you modify the default setting, test your changes in the dashboard, and by [A/B testing](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing).
387-
/// </summary>
388-
/// <value>Determines the order in which Algolia returns your results. By default, each entry corresponds to a [ranking criteria](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria). The tie-breaking algorithm sequentially applies each criterion in the order they're specified. If you configure a replica index for [sorting by an attribute](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/how-to/sort-by-attribute), you put the sorting attribute at the top of the list. **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. Before you modify the default setting, test your changes in the dashboard, and by [A/B testing](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing). </value>
389-
[JsonPropertyName("ranking")]
390-
public List<string> Ranking { get; set; }
391-
392372
/// <summary>
393373
/// 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.
394374
/// </summary>
@@ -498,13 +478,6 @@ public FallbackParams() { }
498478
[JsonPropertyName("decompoundQuery")]
499479
public bool? DecompoundQuery { get; set; }
500480

501-
/// <summary>
502-
/// Whether to enable rules.
503-
/// </summary>
504-
/// <value>Whether to enable rules.</value>
505-
[JsonPropertyName("enableRules")]
506-
public bool? EnableRules { get; set; }
507-
508481
/// <summary>
509482
/// Whether to enable Personalization.
510483
/// </summary>
@@ -623,7 +596,6 @@ public override string ToString()
623596
sb.Append("class FallbackParams {\n");
624597
sb.Append(" SimilarQuery: ").Append(SimilarQuery).Append("\n");
625598
sb.Append(" Filters: ").Append(Filters).Append("\n");
626-
sb.Append(" FacetFilters: ").Append(FacetFilters).Append("\n");
627599
sb.Append(" OptionalFilters: ").Append(OptionalFilters).Append("\n");
628600
sb.Append(" NumericFilters: ").Append(NumericFilters).Append("\n");
629601
sb.Append(" TagFilters: ").Append(TagFilters).Append("\n");
@@ -648,7 +620,6 @@ public override string ToString()
648620
sb.Append(" Analytics: ").Append(Analytics).Append("\n");
649621
sb.Append(" AnalyticsTags: ").Append(AnalyticsTags).Append("\n");
650622
sb.Append(" PercentileComputation: ").Append(PercentileComputation).Append("\n");
651-
sb.Append(" EnableABTest: ").Append(EnableABTest).Append("\n");
652623
sb.Append(" Query: ").Append(Query).Append("\n");
653624
sb.Append(" AttributesForFaceting: ").Append(AttributesForFaceting).Append("\n");
654625
sb.Append(" Replicas: ").Append(Replicas).Append("\n");
@@ -675,7 +646,6 @@ public override string ToString()
675646
sb.Append(" KeepDiacriticsOnCharacters: ").Append(KeepDiacriticsOnCharacters).Append("\n");
676647
sb.Append(" CustomRanking: ").Append(CustomRanking).Append("\n");
677648
sb.Append(" AttributesToRetrieve: ").Append(AttributesToRetrieve).Append("\n");
678-
sb.Append(" Ranking: ").Append(Ranking).Append("\n");
679649
sb.Append(" RelevancyStrictness: ").Append(RelevancyStrictness).Append("\n");
680650
sb.Append(" AttributesToHighlight: ").Append(AttributesToHighlight).Append("\n");
681651
sb.Append(" AttributesToSnippet: ").Append(AttributesToSnippet).Append("\n");
@@ -696,7 +666,6 @@ public override string ToString()
696666
sb.Append(" RemoveStopWords: ").Append(RemoveStopWords).Append("\n");
697667
sb.Append(" QueryLanguages: ").Append(QueryLanguages).Append("\n");
698668
sb.Append(" DecompoundQuery: ").Append(DecompoundQuery).Append("\n");
699-
sb.Append(" EnableRules: ").Append(EnableRules).Append("\n");
700669
sb.Append(" EnablePersonalization: ").Append(EnablePersonalization).Append("\n");
701670
sb.Append(" QueryType: ").Append(QueryType).Append("\n");
702671
sb.Append(" RemoveWordsIfNoResults: ").Append(RemoveWordsIfNoResults).Append("\n");
@@ -748,10 +717,6 @@ public override bool Equals(object obj)
748717
|| (SimilarQuery != null && SimilarQuery.Equals(input.SimilarQuery))
749718
)
750719
&& (Filters == input.Filters || (Filters != null && Filters.Equals(input.Filters)))
751-
&& (
752-
FacetFilters == input.FacetFilters
753-
|| (FacetFilters != null && FacetFilters.Equals(input.FacetFilters))
754-
)
755720
&& (
756721
OptionalFilters == input.OptionalFilters
757722
|| (OptionalFilters != null && OptionalFilters.Equals(input.OptionalFilters))
@@ -843,7 +808,6 @@ public override bool Equals(object obj)
843808
PercentileComputation == input.PercentileComputation
844809
|| PercentileComputation.Equals(input.PercentileComputation)
845810
)
846-
&& (EnableABTest == input.EnableABTest || EnableABTest.Equals(input.EnableABTest))
847811
&& (Query == input.Query || (Query != null && Query.Equals(input.Query)))
848812
&& (
849813
AttributesForFaceting == input.AttributesForFaceting
@@ -953,10 +917,6 @@ public override bool Equals(object obj)
953917
&& input.AttributesToRetrieve != null
954918
&& AttributesToRetrieve.SequenceEqual(input.AttributesToRetrieve)
955919
)
956-
&& (
957-
Ranking == input.Ranking
958-
|| Ranking != null && input.Ranking != null && Ranking.SequenceEqual(input.Ranking)
959-
)
960920
&& (
961921
RelevancyStrictness == input.RelevancyStrictness
962922
|| RelevancyStrictness.Equals(input.RelevancyStrictness)
@@ -1026,7 +986,6 @@ public override bool Equals(object obj)
1026986
&& QueryLanguages.SequenceEqual(input.QueryLanguages)
1027987
)
1028988
&& (DecompoundQuery == input.DecompoundQuery || DecompoundQuery.Equals(input.DecompoundQuery))
1029-
&& (EnableRules == input.EnableRules || EnableRules.Equals(input.EnableRules))
1030989
&& (
1031990
EnablePersonalization == input.EnablePersonalization
1032991
|| EnablePersonalization.Equals(input.EnablePersonalization)
@@ -1117,10 +1076,6 @@ public override int GetHashCode()
11171076
{
11181077
hashCode = (hashCode * 59) + Filters.GetHashCode();
11191078
}
1120-
if (FacetFilters != null)
1121-
{
1122-
hashCode = (hashCode * 59) + FacetFilters.GetHashCode();
1123-
}
11241079
if (OptionalFilters != null)
11251080
{
11261081
hashCode = (hashCode * 59) + OptionalFilters.GetHashCode();
@@ -1187,7 +1142,6 @@ public override int GetHashCode()
11871142
hashCode = (hashCode * 59) + AnalyticsTags.GetHashCode();
11881143
}
11891144
hashCode = (hashCode * 59) + PercentileComputation.GetHashCode();
1190-
hashCode = (hashCode * 59) + EnableABTest.GetHashCode();
11911145
if (Query != null)
11921146
{
11931147
hashCode = (hashCode * 59) + Query.GetHashCode();
@@ -1267,10 +1221,6 @@ public override int GetHashCode()
12671221
{
12681222
hashCode = (hashCode * 59) + AttributesToRetrieve.GetHashCode();
12691223
}
1270-
if (Ranking != null)
1271-
{
1272-
hashCode = (hashCode * 59) + Ranking.GetHashCode();
1273-
}
12741224
hashCode = (hashCode * 59) + RelevancyStrictness.GetHashCode();
12751225
if (AttributesToHighlight != null)
12761226
{
@@ -1317,7 +1267,6 @@ public override int GetHashCode()
13171267
hashCode = (hashCode * 59) + QueryLanguages.GetHashCode();
13181268
}
13191269
hashCode = (hashCode * 59) + DecompoundQuery.GetHashCode();
1320-
hashCode = (hashCode * 59) + EnableRules.GetHashCode();
13211270
hashCode = (hashCode * 59) + EnablePersonalization.GetHashCode();
13221271
hashCode = (hashCode * 59) + QueryType.GetHashCode();
13231272
hashCode = (hashCode * 59) + RemoveWordsIfNoResults.GetHashCode();

0 commit comments

Comments
 (0)