Skip to content

Commit ee6b86b

Browse files
fix(specs): remove query parameter that are not accepted by the Composition API (generated)
algolia/api-clients-automation#6128 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Clara Muller <5667350+ClaraMuller@users.noreply.github.com>
1 parent 401b918 commit ee6b86b

2 files changed

Lines changed: 0 additions & 60 deletions

File tree

algoliasearch/Models/Composition/BaseInjectionQueryParameters.cs

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,6 @@ public BaseInjectionQueryParameters() { }
6767
[JsonPropertyName("alternativesAsExact")]
6868
public List<AlternativesAsExact> AlternativesAsExact { get; set; }
6969

70-
/// <summary>
71-
/// Whether this search will be included in Analytics.
72-
/// </summary>
73-
/// <value>Whether this search will be included in Analytics.</value>
74-
[JsonPropertyName("analytics")]
75-
public bool? Analytics { get; set; }
76-
7770
/// <summary>
7871
/// Whether the best matching attribute should be determined by minimum proximity This setting only affects ranking if the Attribute ranking criterion comes before Proximity in the `ranking` setting. If true, the best matching attribute is selected based on the minimum proximity of multiple matches. Otherwise, the best matching attribute is determined by the order in the `searchableAttributes` setting.
7972
/// </summary>
@@ -109,13 +102,6 @@ public BaseInjectionQueryParameters() { }
109102
[JsonPropertyName("clickAnalytics")]
110103
public bool? ClickAnalytics { get; set; }
111104

112-
/// <summary>
113-
/// Whether to split compound words in the query into their building blocks For more information, see [Word segmentation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/#splitting-compound-words). Word segmentation is supported for these languages: German, Dutch, Finnish, Swedish, and Norwegian. Decompounding doesn't work for words with [non-spacing mark Unicode characters](https://www.charactercodes.net/category/non-spacing_mark). For example, `Gartenstühle` won't be decompounded if the `ü` consists of `u` (U+0075) and `◌̈` (U+0308).
114-
/// </summary>
115-
/// <value>Whether to split compound words in the query into their building blocks For more information, see [Word segmentation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/#splitting-compound-words). Word segmentation is supported for these languages: German, Dutch, Finnish, Swedish, and Norwegian. Decompounding doesn't work for words with [non-spacing mark Unicode characters](https://www.charactercodes.net/category/non-spacing_mark). For example, `Gartenstühle` won't be decompounded if the `ü` consists of `u` (U+0075) and `◌̈` (U+0308). </value>
116-
[JsonPropertyName("decompoundQuery")]
117-
public bool? DecompoundQuery { get; set; }
118-
119105
/// <summary>
120106
/// Searchable attributes for which you want to [turn off the Exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes). Attribute names are case-sensitive This can be useful for attributes with long values, where the likelihood of an exact match is high, such as product descriptions. Turning off the Exact ranking criterion for these attributes favors exact matching on other attributes. This reduces the impact of individual attributes with a lot of content on ranking.
121107
/// </summary>
@@ -204,13 +190,6 @@ public BaseInjectionQueryParameters() { }
204190
[JsonPropertyName("ignorePlurals")]
205191
public IgnorePlurals IgnorePlurals { get; set; }
206192

207-
/// <summary>
208-
/// Maximum number of facet values to return when [searching for facet values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values).
209-
/// </summary>
210-
/// <value>Maximum number of facet values to return when [searching for facet values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values).</value>
211-
[JsonPropertyName("maxFacetHits")]
212-
public int? MaxFacetHits { get; set; }
213-
214193
/// <summary>
215194
/// Minimum proximity score for two matching words This adjusts the [Proximity ranking criterion](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#proximity) by equally scoring matches that are farther apart For example, if `minProximity` is 2, neighboring matches and matches with one word between them would have the same score.
216195
/// </summary>
@@ -351,15 +330,13 @@ public override string ToString()
351330
sb.Append(" AdvancedSyntaxFeatures: ").Append(AdvancedSyntaxFeatures).Append("\n");
352331
sb.Append(" AllowTyposOnNumericTokens: ").Append(AllowTyposOnNumericTokens).Append("\n");
353332
sb.Append(" AlternativesAsExact: ").Append(AlternativesAsExact).Append("\n");
354-
sb.Append(" Analytics: ").Append(Analytics).Append("\n");
355333
sb.Append(" AttributeCriteriaComputedByMinProximity: ")
356334
.Append(AttributeCriteriaComputedByMinProximity)
357335
.Append("\n");
358336
sb.Append(" AttributesToHighlight: ").Append(AttributesToHighlight).Append("\n");
359337
sb.Append(" AttributesToRetrieve: ").Append(AttributesToRetrieve).Append("\n");
360338
sb.Append(" AttributesToSnippet: ").Append(AttributesToSnippet).Append("\n");
361339
sb.Append(" ClickAnalytics: ").Append(ClickAnalytics).Append("\n");
362-
sb.Append(" DecompoundQuery: ").Append(DecompoundQuery).Append("\n");
363340
sb.Append(" DisableExactOnAttributes: ").Append(DisableExactOnAttributes).Append("\n");
364341
sb.Append(" DisableTypoToleranceOnAttributes: ")
365342
.Append(DisableTypoToleranceOnAttributes)
@@ -376,7 +353,6 @@ public override string ToString()
376353
sb.Append(" HighlightPostTag: ").Append(HighlightPostTag).Append("\n");
377354
sb.Append(" HighlightPreTag: ").Append(HighlightPreTag).Append("\n");
378355
sb.Append(" IgnorePlurals: ").Append(IgnorePlurals).Append("\n");
379-
sb.Append(" MaxFacetHits: ").Append(MaxFacetHits).Append("\n");
380356
sb.Append(" MinProximity: ").Append(MinProximity).Append("\n");
381357
sb.Append(" MinWordSizefor1Typo: ").Append(MinWordSizefor1Typo).Append("\n");
382358
sb.Append(" MinWordSizefor2Typos: ").Append(MinWordSizefor2Typos).Append("\n");
@@ -442,7 +418,6 @@ public override bool Equals(object obj)
442418
&& input.AlternativesAsExact != null
443419
&& AlternativesAsExact.SequenceEqual(input.AlternativesAsExact)
444420
)
445-
&& (Analytics == input.Analytics || Analytics.Equals(input.Analytics))
446421
&& (
447422
AttributeCriteriaComputedByMinProximity == input.AttributeCriteriaComputedByMinProximity
448423
|| AttributeCriteriaComputedByMinProximity.Equals(
@@ -468,7 +443,6 @@ public override bool Equals(object obj)
468443
&& AttributesToSnippet.SequenceEqual(input.AttributesToSnippet)
469444
)
470445
&& (ClickAnalytics == input.ClickAnalytics || ClickAnalytics.Equals(input.ClickAnalytics))
471-
&& (DecompoundQuery == input.DecompoundQuery || DecompoundQuery.Equals(input.DecompoundQuery))
472446
&& (
473447
DisableExactOnAttributes == input.DisableExactOnAttributes
474448
|| DisableExactOnAttributes != null
@@ -511,7 +485,6 @@ public override bool Equals(object obj)
511485
IgnorePlurals == input.IgnorePlurals
512486
|| (IgnorePlurals != null && IgnorePlurals.Equals(input.IgnorePlurals))
513487
)
514-
&& (MaxFacetHits == input.MaxFacetHits || MaxFacetHits.Equals(input.MaxFacetHits))
515488
&& (MinProximity == input.MinProximity || MinProximity.Equals(input.MinProximity))
516489
&& (
517490
MinWordSizefor1Typo == input.MinWordSizefor1Typo
@@ -618,7 +591,6 @@ public override int GetHashCode()
618591
{
619592
hashCode = (hashCode * 59) + AlternativesAsExact.GetHashCode();
620593
}
621-
hashCode = (hashCode * 59) + Analytics.GetHashCode();
622594
hashCode = (hashCode * 59) + AttributeCriteriaComputedByMinProximity.GetHashCode();
623595
if (AttributesToHighlight != null)
624596
{
@@ -633,7 +605,6 @@ public override int GetHashCode()
633605
hashCode = (hashCode * 59) + AttributesToSnippet.GetHashCode();
634606
}
635607
hashCode = (hashCode * 59) + ClickAnalytics.GetHashCode();
636-
hashCode = (hashCode * 59) + DecompoundQuery.GetHashCode();
637608
if (DisableExactOnAttributes != null)
638609
{
639610
hashCode = (hashCode * 59) + DisableExactOnAttributes.GetHashCode();
@@ -672,7 +643,6 @@ public override int GetHashCode()
672643
{
673644
hashCode = (hashCode * 59) + IgnorePlurals.GetHashCode();
674645
}
675-
hashCode = (hashCode * 59) + MaxFacetHits.GetHashCode();
676646
hashCode = (hashCode * 59) + MinProximity.GetHashCode();
677647
hashCode = (hashCode * 59) + MinWordSizefor1Typo.GetHashCode();
678648
hashCode = (hashCode * 59) + MinWordSizefor2Typos.GetHashCode();

algoliasearch/Models/Composition/MainInjectionQueryParameters.cs

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,6 @@ public MainInjectionQueryParameters() { }
6767
[JsonPropertyName("alternativesAsExact")]
6868
public List<AlternativesAsExact> AlternativesAsExact { get; set; }
6969

70-
/// <summary>
71-
/// Whether this search will be included in Analytics.
72-
/// </summary>
73-
/// <value>Whether this search will be included in Analytics.</value>
74-
[JsonPropertyName("analytics")]
75-
public bool? Analytics { get; set; }
76-
7770
/// <summary>
7871
/// Whether the best matching attribute should be determined by minimum proximity This setting only affects ranking if the Attribute ranking criterion comes before Proximity in the `ranking` setting. If true, the best matching attribute is selected based on the minimum proximity of multiple matches. Otherwise, the best matching attribute is determined by the order in the `searchableAttributes` setting.
7972
/// </summary>
@@ -109,13 +102,6 @@ public MainInjectionQueryParameters() { }
109102
[JsonPropertyName("clickAnalytics")]
110103
public bool? ClickAnalytics { get; set; }
111104

112-
/// <summary>
113-
/// Whether to split compound words in the query into their building blocks For more information, see [Word segmentation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/#splitting-compound-words). Word segmentation is supported for these languages: German, Dutch, Finnish, Swedish, and Norwegian. Decompounding doesn't work for words with [non-spacing mark Unicode characters](https://www.charactercodes.net/category/non-spacing_mark). For example, `Gartenstühle` won't be decompounded if the `ü` consists of `u` (U+0075) and `◌̈` (U+0308).
114-
/// </summary>
115-
/// <value>Whether to split compound words in the query into their building blocks For more information, see [Word segmentation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/#splitting-compound-words). Word segmentation is supported for these languages: German, Dutch, Finnish, Swedish, and Norwegian. Decompounding doesn't work for words with [non-spacing mark Unicode characters](https://www.charactercodes.net/category/non-spacing_mark). For example, `Gartenstühle` won't be decompounded if the `ü` consists of `u` (U+0075) and `◌̈` (U+0308). </value>
116-
[JsonPropertyName("decompoundQuery")]
117-
public bool? DecompoundQuery { get; set; }
118-
119105
/// <summary>
120106
/// Searchable attributes for which you want to [turn off the Exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes). Attribute names are case-sensitive This can be useful for attributes with long values, where the likelihood of an exact match is high, such as product descriptions. Turning off the Exact ranking criterion for these attributes favors exact matching on other attributes. This reduces the impact of individual attributes with a lot of content on ranking.
121107
/// </summary>
@@ -204,13 +190,6 @@ public MainInjectionQueryParameters() { }
204190
[JsonPropertyName("ignorePlurals")]
205191
public IgnorePlurals IgnorePlurals { get; set; }
206192

207-
/// <summary>
208-
/// Maximum number of facet values to return when [searching for facet values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values).
209-
/// </summary>
210-
/// <value>Maximum number of facet values to return when [searching for facet values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values).</value>
211-
[JsonPropertyName("maxFacetHits")]
212-
public int? MaxFacetHits { get; set; }
213-
214193
/// <summary>
215194
/// Minimum proximity score for two matching words This adjusts the [Proximity ranking criterion](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#proximity) by equally scoring matches that are farther apart For example, if `minProximity` is 2, neighboring matches and matches with one word between them would have the same score.
216195
/// </summary>
@@ -399,15 +378,13 @@ public override string ToString()
399378
sb.Append(" AdvancedSyntaxFeatures: ").Append(AdvancedSyntaxFeatures).Append("\n");
400379
sb.Append(" AllowTyposOnNumericTokens: ").Append(AllowTyposOnNumericTokens).Append("\n");
401380
sb.Append(" AlternativesAsExact: ").Append(AlternativesAsExact).Append("\n");
402-
sb.Append(" Analytics: ").Append(Analytics).Append("\n");
403381
sb.Append(" AttributeCriteriaComputedByMinProximity: ")
404382
.Append(AttributeCriteriaComputedByMinProximity)
405383
.Append("\n");
406384
sb.Append(" AttributesToHighlight: ").Append(AttributesToHighlight).Append("\n");
407385
sb.Append(" AttributesToRetrieve: ").Append(AttributesToRetrieve).Append("\n");
408386
sb.Append(" AttributesToSnippet: ").Append(AttributesToSnippet).Append("\n");
409387
sb.Append(" ClickAnalytics: ").Append(ClickAnalytics).Append("\n");
410-
sb.Append(" DecompoundQuery: ").Append(DecompoundQuery).Append("\n");
411388
sb.Append(" DisableExactOnAttributes: ").Append(DisableExactOnAttributes).Append("\n");
412389
sb.Append(" DisableTypoToleranceOnAttributes: ")
413390
.Append(DisableTypoToleranceOnAttributes)
@@ -424,7 +401,6 @@ public override string ToString()
424401
sb.Append(" HighlightPostTag: ").Append(HighlightPostTag).Append("\n");
425402
sb.Append(" HighlightPreTag: ").Append(HighlightPreTag).Append("\n");
426403
sb.Append(" IgnorePlurals: ").Append(IgnorePlurals).Append("\n");
427-
sb.Append(" MaxFacetHits: ").Append(MaxFacetHits).Append("\n");
428404
sb.Append(" MinProximity: ").Append(MinProximity).Append("\n");
429405
sb.Append(" MinWordSizefor1Typo: ").Append(MinWordSizefor1Typo).Append("\n");
430406
sb.Append(" MinWordSizefor2Typos: ").Append(MinWordSizefor2Typos).Append("\n");
@@ -497,7 +473,6 @@ public override bool Equals(object obj)
497473
&& input.AlternativesAsExact != null
498474
&& AlternativesAsExact.SequenceEqual(input.AlternativesAsExact)
499475
)
500-
&& (Analytics == input.Analytics || Analytics.Equals(input.Analytics))
501476
&& (
502477
AttributeCriteriaComputedByMinProximity == input.AttributeCriteriaComputedByMinProximity
503478
|| AttributeCriteriaComputedByMinProximity.Equals(
@@ -523,7 +498,6 @@ public override bool Equals(object obj)
523498
&& AttributesToSnippet.SequenceEqual(input.AttributesToSnippet)
524499
)
525500
&& (ClickAnalytics == input.ClickAnalytics || ClickAnalytics.Equals(input.ClickAnalytics))
526-
&& (DecompoundQuery == input.DecompoundQuery || DecompoundQuery.Equals(input.DecompoundQuery))
527501
&& (
528502
DisableExactOnAttributes == input.DisableExactOnAttributes
529503
|| DisableExactOnAttributes != null
@@ -566,7 +540,6 @@ public override bool Equals(object obj)
566540
IgnorePlurals == input.IgnorePlurals
567541
|| (IgnorePlurals != null && IgnorePlurals.Equals(input.IgnorePlurals))
568542
)
569-
&& (MaxFacetHits == input.MaxFacetHits || MaxFacetHits.Equals(input.MaxFacetHits))
570543
&& (MinProximity == input.MinProximity || MinProximity.Equals(input.MinProximity))
571544
&& (
572545
MinWordSizefor1Typo == input.MinWordSizefor1Typo
@@ -698,7 +671,6 @@ public override int GetHashCode()
698671
{
699672
hashCode = (hashCode * 59) + AlternativesAsExact.GetHashCode();
700673
}
701-
hashCode = (hashCode * 59) + Analytics.GetHashCode();
702674
hashCode = (hashCode * 59) + AttributeCriteriaComputedByMinProximity.GetHashCode();
703675
if (AttributesToHighlight != null)
704676
{
@@ -713,7 +685,6 @@ public override int GetHashCode()
713685
hashCode = (hashCode * 59) + AttributesToSnippet.GetHashCode();
714686
}
715687
hashCode = (hashCode * 59) + ClickAnalytics.GetHashCode();
716-
hashCode = (hashCode * 59) + DecompoundQuery.GetHashCode();
717688
if (DisableExactOnAttributes != null)
718689
{
719690
hashCode = (hashCode * 59) + DisableExactOnAttributes.GetHashCode();
@@ -752,7 +723,6 @@ public override int GetHashCode()
752723
{
753724
hashCode = (hashCode * 59) + IgnorePlurals.GetHashCode();
754725
}
755-
hashCode = (hashCode * 59) + MaxFacetHits.GetHashCode();
756726
hashCode = (hashCode * 59) + MinProximity.GetHashCode();
757727
hashCode = (hashCode * 59) + MinWordSizefor1Typo.GetHashCode();
758728
hashCode = (hashCode * 59) + MinWordSizefor2Typos.GetHashCode();

0 commit comments

Comments
 (0)