Skip to content

Commit eca627f

Browse files
authored
Merge branch 'main' into chore/renovateBaseBranch
2 parents c81e3fb + 8e9f969 commit eca627f

File tree

232 files changed

+1172
-627
lines changed

Some content is hidden

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

232 files changed

+1172
-627
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ composer.json
66
tsconfig.json
77
vendor
88
builddir
9+
foo

.github/workflows/check.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
runs-on: ubuntu-22.04
4242
timeout-minutes: 10
4343
env:
44-
CACHE_VERSION: 1 # bump this to run all clients on the CI.
44+
CACHE_VERSION: 1.01 # bump this to run all clients on the CI.
4545
steps:
4646
- name: debugging - dump GitHub context
4747
env:
@@ -199,10 +199,10 @@ jobs:
199199
type: specs
200200

201201
- name: Remove generated clients
202-
if: ${{ startsWith(env.head_ref, 'chore/prepare-release-') }}
202+
if: ${{ startsWith(github.head_ref, 'chore/prepare-release-') }}
203203
run: |
204204
cd clients/algoliasearch-client-javascript/packages
205-
ls | grep -v -E "(client-common|requester-*|algoliasearch)" | xargs rm -rf
205+
ls | grep -v -E "(logger-console|client-common|requester-*|algoliasearch)" | xargs rm -rf
206206
cd algoliasearch
207207
ls | grep -v -E "__tests__" | xargs rm -rf
208208
@@ -228,11 +228,11 @@ jobs:
228228
run: cd clients/algoliasearch-client-javascript && yarn test ${{ !contains(fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).toRun, 'algoliasearch') && '--ignore algoliasearch' || '' }}
229229

230230
- name: Test JavaScript bundle size
231-
if: ${{ startsWith(env.head_ref, 'chore/prepare-release-') }}
231+
if: ${{ startsWith(github.head_ref, 'chore/prepare-release-') }}
232232
run: cd clients/algoliasearch-client-javascript && yarn test:size
233233

234234
- name: Test JavaScript bundle and types
235-
if: ${{ startsWith(env.head_ref, 'chore/prepare-release-') }}
235+
if: ${{ startsWith(github.head_ref, 'chore/prepare-release-') }}
236236
run: cd clients/algoliasearch-client-javascript && yarn test:bundle
237237

238238
- name: Remove previous CTS output
@@ -335,7 +335,7 @@ jobs:
335335
run: yarn cli generate ${{ matrix.client.language }} ${{ matrix.client.toRun }}
336336

337337
- name: Update composer.lock
338-
if: ${{ matrix.client.language == 'php' && startsWith(env.head_ref, 'chore/renovateBaseBranch') && matrix.client.isMainVersion }}
338+
if: ${{ matrix.client.language == 'php' && startsWith(github.head_ref, 'chore/renovateBaseBranch') && matrix.client.isMainVersion }}
339339
run: cd ${{ matrix.client.path }} && composer update
340340

341341
- name: Check for file duplicates in Swift

clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/FallbackParams.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,9 @@ public FallbackParams()
267267
public List<string> UnretrievableAttributes { get; set; }
268268

269269
/// <summary>
270-
/// Words for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/). This also turns off [word splitting and concatenation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/splitting-and-concatenation/) for the specified words.
270+
/// Creates a list of [words which require exact matches](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/in-depth/configuring-typo-tolerance/#turn-off-typo-tolerance-for-certain-words). This also turns off [word splitting and concatenation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/splitting-and-concatenation/) for the specified words.
271271
/// </summary>
272-
/// <value>Words for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/). This also turns off [word splitting and concatenation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/splitting-and-concatenation/) for the specified words. </value>
272+
/// <value>Creates a list of [words which require exact matches](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/in-depth/configuring-typo-tolerance/#turn-off-typo-tolerance-for-certain-words). This also turns off [word splitting and concatenation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/splitting-and-concatenation/) for the specified words. </value>
273273
[JsonPropertyName("disableTypoToleranceOnWords")]
274274
public List<string> DisableTypoToleranceOnWords { get; set; }
275275

clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/RecommendHit.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,9 @@ public RecommendHit()
2828
/// Initializes a new instance of the RecommendHit class.
2929
/// </summary>
3030
/// <param name="objectID">Unique record identifier. (required).</param>
31-
/// <param name="score">Recommendation score. (required).</param>
32-
public RecommendHit(string objectID, double score)
31+
public RecommendHit(string objectID)
3332
{
3433
ObjectID = objectID ?? throw new ArgumentNullException(nameof(objectID));
35-
Score = score;
3634
AdditionalProperties = new Dictionary<string, object>();
3735
}
3836

@@ -74,7 +72,7 @@ public RecommendHit(string objectID, double score)
7472
/// </summary>
7573
/// <value>Recommendation score.</value>
7674
[JsonPropertyName("_score")]
77-
public double Score { get; set; }
75+
public double? Score { get; set; }
7876

7977
/// <summary>
8078
/// Gets or Sets additional properties

clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/RecommendSearchParams.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,9 @@ public RecommendSearchParams()
267267
public List<string> UnretrievableAttributes { get; set; }
268268

269269
/// <summary>
270-
/// Words for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/). This also turns off [word splitting and concatenation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/splitting-and-concatenation/) for the specified words.
270+
/// Creates a list of [words which require exact matches](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/in-depth/configuring-typo-tolerance/#turn-off-typo-tolerance-for-certain-words). This also turns off [word splitting and concatenation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/splitting-and-concatenation/) for the specified words.
271271
/// </summary>
272-
/// <value>Words for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/). This also turns off [word splitting and concatenation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/splitting-and-concatenation/) for the specified words. </value>
272+
/// <value>Creates a list of [words which require exact matches](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/in-depth/configuring-typo-tolerance/#turn-off-typo-tolerance-for-certain-words). This also turns off [word splitting and concatenation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/splitting-and-concatenation/) for the specified words. </value>
273273
[JsonPropertyName("disableTypoToleranceOnWords")]
274274
public List<string> DisableTypoToleranceOnWords { get; set; }
275275

clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/SearchRecommendRulesParams.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ public SearchRecommendRulesParams()
3838
public string Context { get; set; }
3939

4040
/// <summary>
41-
/// Requested page of the API response.
41+
/// Requested page of the API response. Algolia uses `page` and `hitsPerPage` to control how search results are displayed ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)). - `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`: specifies the page number of the search results you want to retrieve. Page numbering starts at 0, so the first page is `page=0`, the second is `page=1`, and so on. For example, to display 10 results per page starting from the third page, set `hitsPerPage` to 10 and `page` to 2.
4242
/// </summary>
43-
/// <value>Requested page of the API response.</value>
43+
/// <value>Requested page of the API response. Algolia uses `page` and `hitsPerPage` to control how search results are displayed ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)). - `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`: specifies the page number of the search results you want to retrieve. Page numbering starts at 0, so the first page is `page=0`, the second is `page=1`, and so on. For example, to display 10 results per page starting from the third page, set `hitsPerPage` to 10 and `page` to 2. </value>
4444
[JsonPropertyName("page")]
4545
public int? Page { get; set; }
4646

4747
/// <summary>
48-
/// Maximum number of hits per page.
48+
/// Maximum number of hits per page. Algolia uses `page` and `hitsPerPage` to control how search results are displayed ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)). - `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`: specifies the page number of the search results you want to retrieve. Page numbering starts at 0, so the first page is `page=0`, the second is `page=1`, and so on. For example, to display 10 results per page starting from the third page, set `hitsPerPage` to 10 and `page` to 2.
4949
/// </summary>
50-
/// <value>Maximum number of hits per page.</value>
50+
/// <value>Maximum number of hits per page. Algolia uses `page` and `hitsPerPage` to control how search results are displayed ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)). - `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`: specifies the page number of the search results you want to retrieve. Page numbering starts at 0, so the first page is `page=0`, the second is `page=1`, and so on. For example, to display 10 results per page starting from the third page, set `hitsPerPage` to 10 and `page` to 2. </value>
5151
[JsonPropertyName("hitsPerPage")]
5252
public int? HitsPerPage { get; set; }
5353

clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/TrendingFacetHit.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,10 @@ public TrendingFacetHit() { }
2424
/// <summary>
2525
/// Initializes a new instance of the TrendingFacetHit class.
2626
/// </summary>
27-
/// <param name="score">Recommendation score. (required).</param>
2827
/// <param name="facetName">Facet attribute. To be used in combination with &#x60;facetValue&#x60;. If specified, only recommendations matching the facet filter will be returned. (required).</param>
2928
/// <param name="facetValue">Facet value. To be used in combination with &#x60;facetName&#x60;. If specified, only recommendations matching the facet filter will be returned. (required).</param>
30-
public TrendingFacetHit(double score, string facetName, string facetValue)
29+
public TrendingFacetHit(string facetName, string facetValue)
3130
{
32-
Score = score;
3331
FacetName = facetName ?? throw new ArgumentNullException(nameof(facetName));
3432
FacetValue = facetValue ?? throw new ArgumentNullException(nameof(facetValue));
3533
}
@@ -39,7 +37,7 @@ public TrendingFacetHit(double score, string facetName, string facetValue)
3937
/// </summary>
4038
/// <value>Recommendation score.</value>
4139
[JsonPropertyName("_score")]
42-
public double Score { get; set; }
40+
public double? Score { get; set; }
4341

4442
/// <summary>
4543
/// Facet attribute. To be used in combination with `facetValue`. If specified, only recommendations matching the facet filter will be returned.

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ public IndexSettings()
7676
public List<string> UnretrievableAttributes { get; set; }
7777

7878
/// <summary>
79-
/// Words for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/). This also turns off [word splitting and concatenation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/splitting-and-concatenation/) for the specified words.
79+
/// Creates a list of [words which require exact matches](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/in-depth/configuring-typo-tolerance/#turn-off-typo-tolerance-for-certain-words). This also turns off [word splitting and concatenation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/splitting-and-concatenation/) for the specified words.
8080
/// </summary>
81-
/// <value>Words for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/). This also turns off [word splitting and concatenation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/splitting-and-concatenation/) for the specified words. </value>
81+
/// <value>Creates a list of [words which require exact matches](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/in-depth/configuring-typo-tolerance/#turn-off-typo-tolerance-for-certain-words). This also turns off [word splitting and concatenation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/splitting-and-concatenation/) for the specified words. </value>
8282
[JsonPropertyName("disableTypoToleranceOnWords")]
8383
public List<string> DisableTypoToleranceOnWords { get; set; }
8484

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public SearchDictionaryEntriesResponse() { }
2525
/// Initializes a new instance of the SearchDictionaryEntriesResponse class.
2626
/// </summary>
2727
/// <param name="hits">Dictionary entries matching the search criteria. (required).</param>
28-
/// <param name="page">Requested page of the API response. (required).</param>
28+
/// <param name="page">Requested page of the API response. Algolia uses &#x60;page&#x60; and &#x60;hitsPerPage&#x60; to control how search results are displayed ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)). - &#x60;hitsPerPage&#x60;: sets the number of search results (_hits_) displayed per page. - &#x60;page&#x60;: specifies the page number of the search results you want to retrieve. Page numbering starts at 0, so the first page is &#x60;page&#x3D;0&#x60;, the second is &#x60;page&#x3D;1&#x60;, and so on. For example, to display 10 results per page starting from the third page, set &#x60;hitsPerPage&#x60; to 10 and &#x60;page&#x60; to 2. (required).</param>
2929
/// <param name="nbHits">Number of results (hits). (required).</param>
3030
/// <param name="nbPages">Number of pages of results. (required).</param>
3131
public SearchDictionaryEntriesResponse(List<DictionaryEntry> hits, int page, int nbHits, int nbPages)
@@ -44,9 +44,9 @@ public SearchDictionaryEntriesResponse(List<DictionaryEntry> hits, int page, int
4444
public List<DictionaryEntry> Hits { get; set; }
4545

4646
/// <summary>
47-
/// Requested page of the API response.
47+
/// Requested page of the API response. Algolia uses `page` and `hitsPerPage` to control how search results are displayed ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)). - `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`: specifies the page number of the search results you want to retrieve. Page numbering starts at 0, so the first page is `page=0`, the second is `page=1`, and so on. For example, to display 10 results per page starting from the third page, set `hitsPerPage` to 10 and `page` to 2.
4848
/// </summary>
49-
/// <value>Requested page of the API response.</value>
49+
/// <value>Requested page of the API response. Algolia uses `page` and `hitsPerPage` to control how search results are displayed ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)). - `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`: specifies the page number of the search results you want to retrieve. Page numbering starts at 0, so the first page is `page=0`, the second is `page=1`, and so on. For example, to display 10 results per page starting from the third page, set `hitsPerPage` to 10 and `page` to 2. </value>
5050
[JsonPropertyName("page")]
5151
public int Page { get; set; }
5252

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,16 @@ public SearchRulesParams()
4444
public string Context { get; set; }
4545

4646
/// <summary>
47-
/// Requested page of the API response.
47+
/// Requested page of the API response. Algolia uses `page` and `hitsPerPage` to control how search results are displayed ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)). - `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`: specifies the page number of the search results you want to retrieve. Page numbering starts at 0, so the first page is `page=0`, the second is `page=1`, and so on. For example, to display 10 results per page starting from the third page, set `hitsPerPage` to 10 and `page` to 2.
4848
/// </summary>
49-
/// <value>Requested page of the API response.</value>
49+
/// <value>Requested page of the API response. Algolia uses `page` and `hitsPerPage` to control how search results are displayed ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)). - `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`: specifies the page number of the search results you want to retrieve. Page numbering starts at 0, so the first page is `page=0`, the second is `page=1`, and so on. For example, to display 10 results per page starting from the third page, set `hitsPerPage` to 10 and `page` to 2. </value>
5050
[JsonPropertyName("page")]
5151
public int? Page { get; set; }
5252

5353
/// <summary>
54-
/// Maximum number of hits per page.
54+
/// Maximum number of hits per page. Algolia uses `page` and `hitsPerPage` to control how search results are displayed ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)). - `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`: specifies the page number of the search results you want to retrieve. Page numbering starts at 0, so the first page is `page=0`, the second is `page=1`, and so on. For example, to display 10 results per page starting from the third page, set `hitsPerPage` to 10 and `page` to 2.
5555
/// </summary>
56-
/// <value>Maximum number of hits per page.</value>
56+
/// <value>Maximum number of hits per page. Algolia uses `page` and `hitsPerPage` to control how search results are displayed ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)). - `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`: specifies the page number of the search results you want to retrieve. Page numbering starts at 0, so the first page is `page=0`, the second is `page=1`, and so on. For example, to display 10 results per page starting from the third page, set `hitsPerPage` to 10 and `page` to 2. </value>
5757
[JsonPropertyName("hitsPerPage")]
5858
public int? HitsPerPage { get; set; }
5959

0 commit comments

Comments
 (0)