Skip to content

Commit 7899ba0

Browse files
algolia-botmillotp
andcommitted
chore: generated code for commit c251dc8. [skip ci]
Co-authored-by: Pierre Millot <[email protected]>
1 parent c251dc8 commit 7899ba0

File tree

41 files changed

+213
-212
lines changed

Some content is hidden

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

41 files changed

+213
-212
lines changed

clients/algoliasearch-client-csharp/algoliasearch/Models/Search/RankingInfo.cs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,32 +24,26 @@ public RankingInfo() { }
2424
/// <summary>
2525
/// Initializes a new instance of the RankingInfo class.
2626
/// </summary>
27-
/// <param name="filters">Whether a filter matched the query. (required).</param>
2827
/// <param name="firstMatchedWord">Position of the first matched word in the best matching attribute of the record. (required).</param>
2928
/// <param name="geoDistance">Distance between the geo location in the search query and the best matching geo location in the record, divided by the geo precision (in meters). (required).</param>
3029
/// <param name="nbExactWords">Number of exactly matched words. (required).</param>
3130
/// <param name="nbTypos">Number of typos encountered when matching the record. (required).</param>
32-
/// <param name="promoted">Whether the record was promoted by a rule. (required).</param>
3331
/// <param name="userScore">Overall ranking of the record, expressed as a single integer. This attribute is internal. (required).</param>
34-
/// <param name="words">Number of matched words. (required).</param>
35-
public RankingInfo(int filters, int firstMatchedWord, int geoDistance, int nbExactWords, int nbTypos, bool promoted, int userScore, int words)
32+
public RankingInfo(int firstMatchedWord, int geoDistance, int nbExactWords, int nbTypos, int userScore)
3633
{
37-
Filters = filters;
3834
FirstMatchedWord = firstMatchedWord;
3935
GeoDistance = geoDistance;
4036
NbExactWords = nbExactWords;
4137
NbTypos = nbTypos;
42-
Promoted = promoted;
4338
UserScore = userScore;
44-
Words = words;
4539
}
4640

4741
/// <summary>
4842
/// Whether a filter matched the query.
4943
/// </summary>
5044
/// <value>Whether a filter matched the query.</value>
5145
[JsonPropertyName("filters")]
52-
public int Filters { get; set; }
46+
public int? Filters { get; set; }
5347

5448
/// <summary>
5549
/// Position of the first matched word in the best matching attribute of the record.
@@ -103,7 +97,7 @@ public RankingInfo(int filters, int firstMatchedWord, int geoDistance, int nbExa
10397
/// </summary>
10498
/// <value>Whether the record was promoted by a rule.</value>
10599
[JsonPropertyName("promoted")]
106-
public bool Promoted { get; set; }
100+
public bool? Promoted { get; set; }
107101

108102
/// <summary>
109103
/// Number of words between multiple matches in the query plus 1. For single word queries, `proximityDistance` is 0.
@@ -124,7 +118,7 @@ public RankingInfo(int filters, int firstMatchedWord, int geoDistance, int nbExa
124118
/// </summary>
125119
/// <value>Number of matched words.</value>
126120
[JsonPropertyName("words")]
127-
public int Words { get; set; }
121+
public int? Words { get; set; }
128122

129123
/// <summary>
130124
/// Whether the record is re-ranked.

clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/ranking_info.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,25 @@ part 'ranking_info.g.dart';
1111
final class RankingInfo {
1212
/// Returns a new [RankingInfo] instance.
1313
const RankingInfo({
14-
required this.filters,
14+
this.filters,
1515
required this.firstMatchedWord,
1616
required this.geoDistance,
1717
this.geoPrecision,
1818
this.matchedGeoLocation,
1919
this.personalization,
2020
required this.nbExactWords,
2121
required this.nbTypos,
22-
required this.promoted,
22+
this.promoted,
2323
this.proximityDistance,
2424
required this.userScore,
25-
required this.words,
25+
this.words,
2626
this.promotedByReRanking,
2727
});
2828

2929
/// Whether a filter matched the query.
3030
// minimum: 0
3131
@JsonKey(name: r'filters')
32-
final int filters;
32+
final int? filters;
3333

3434
/// Position of the first matched word in the best matching attribute of the record.
3535
// minimum: 0
@@ -64,7 +64,7 @@ final class RankingInfo {
6464

6565
/// Whether the record was promoted by a rule.
6666
@JsonKey(name: r'promoted')
67-
final bool promoted;
67+
final bool? promoted;
6868

6969
/// Number of words between multiple matches in the query plus 1. For single word queries, `proximityDistance` is 0.
7070
// minimum: 0
@@ -78,7 +78,7 @@ final class RankingInfo {
7878
/// Number of matched words.
7979
// minimum: 1
8080
@JsonKey(name: r'words')
81-
final int words;
81+
final int? words;
8282

8383
/// Whether the record is re-ranked.
8484
@JsonKey(name: r'promotedByReRanking')

clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/ranking_info.g.dart

Lines changed: 9 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/algoliasearch-client-dart/packages/client_search/lib/src/model/ranking_info.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,25 @@ part 'ranking_info.g.dart';
1111
final class RankingInfo {
1212
/// Returns a new [RankingInfo] instance.
1313
const RankingInfo({
14-
required this.filters,
14+
this.filters,
1515
required this.firstMatchedWord,
1616
required this.geoDistance,
1717
this.geoPrecision,
1818
this.matchedGeoLocation,
1919
this.personalization,
2020
required this.nbExactWords,
2121
required this.nbTypos,
22-
required this.promoted,
22+
this.promoted,
2323
this.proximityDistance,
2424
required this.userScore,
25-
required this.words,
25+
this.words,
2626
this.promotedByReRanking,
2727
});
2828

2929
/// Whether a filter matched the query.
3030
// minimum: 0
3131
@JsonKey(name: r'filters')
32-
final int filters;
32+
final int? filters;
3333

3434
/// Position of the first matched word in the best matching attribute of the record.
3535
// minimum: 0
@@ -64,7 +64,7 @@ final class RankingInfo {
6464

6565
/// Whether the record was promoted by a rule.
6666
@JsonKey(name: r'promoted')
67-
final bool promoted;
67+
final bool? promoted;
6868

6969
/// Number of words between multiple matches in the query plus 1. For single word queries, `proximityDistance` is 0.
7070
// minimum: 0
@@ -78,7 +78,7 @@ final class RankingInfo {
7878
/// Number of matched words.
7979
// minimum: 1
8080
@JsonKey(name: r'words')
81-
final int words;
81+
final int? words;
8282

8383
/// Whether the record is re-ranked.
8484
@JsonKey(name: r'promotedByReRanking')

clients/algoliasearch-client-dart/packages/client_search/lib/src/model/ranking_info.g.dart

Lines changed: 9 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/algoliasearch-client-go/algolia/abtesting/client.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/algoliasearch-client-go/algolia/analytics/client.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/algoliasearch-client-go/algolia/ingestion/client.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/algoliasearch-client-go/algolia/insights/client.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/algoliasearch-client-go/algolia/monitoring/client.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/algoliasearch-client-go/algolia/personalization/client.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/algoliasearch-client-go/algolia/query-suggestions/client.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/algoliasearch-client-go/algolia/recommend/client.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)