Skip to content

Commit e669812

Browse files
algolia-botFluf22aallam
committed
chore: generated code for commit daa9867c. [skip ci]
algolia/api-clients-automation@daa9867 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Thomas Raffray <[email protected]> Co-authored-by: Mouaad Aallam <[email protected]>
1 parent b0de729 commit e669812

File tree

10 files changed

+114
-24
lines changed

10 files changed

+114
-24
lines changed

packages/algoliasearch/lite/model/baseSearchResponse.ts

+22-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
22

3-
import type { BaseSearchResponseRedirect } from './baseSearchResponseRedirect';
3+
import type { Exhaustive } from './exhaustive';
44
import type { FacetsStats } from './facetsStats';
5+
import type { Redirect } from './redirect';
56
import type { RenderingContent } from './renderingContent';
67

7-
export type BaseSearchResponse = {
8+
export type BaseSearchResponse = Record<string, any> & {
89
/**
910
* A/B test ID. This is only included in the response for indices that are part of an A/B test.
1011
*/
@@ -25,18 +26,20 @@ export type BaseSearchResponse = {
2526
*/
2627
automaticRadius?: string;
2728

29+
exhaustive?: Exhaustive;
30+
2831
/**
29-
* Indicates whether the facet count is exhaustive (exact) or approximate.
32+
* See the `facetsCount` field of the `exhaustive` object in the response.
3033
*/
3134
exhaustiveFacetsCount?: boolean;
3235

3336
/**
34-
* Indicates whether the number of hits `nbHits` is exhaustive (exact) or approximate.
37+
* See the `nbHits` field of the `exhaustive` object in the response.
3538
*/
3639
exhaustiveNbHits?: boolean;
3740

3841
/**
39-
* Indicates whether the search for typos was exhaustive (exact) or approximate.
42+
* See the `typo` field of the `exhaustive` object in the response.
4043
*/
4144
exhaustiveTypo?: boolean;
4245

@@ -90,8 +93,6 @@ export type BaseSearchResponse = {
9093
*/
9194
page: number;
9295

93-
redirect?: BaseSearchResponseRedirect;
94-
9596
/**
9697
* Post-[normalization](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/#what-does-normalization-mean) query string that will be searched.
9798
*/
@@ -102,11 +103,25 @@ export type BaseSearchResponse = {
102103
*/
103104
processingTimeMS: number;
104105

106+
/**
107+
* Experimental. List of processing steps and their times, in milliseconds. You can use this list to investigate performance issues.
108+
*/
109+
processingTimingsMS?: Record<string, any>;
110+
105111
/**
106112
* Markup text indicating which parts of the original query have been removed to retrieve a non-empty result set.
107113
*/
108114
queryAfterRemoval?: string;
109115

116+
redirect?: Redirect;
117+
118+
renderingContent?: RenderingContent;
119+
120+
/**
121+
* Time the server took to process the request, in milliseconds.
122+
*/
123+
serverTimeMS?: number;
124+
110125
/**
111126
* Host name of the server that processed the request.
112127
*/
@@ -116,6 +131,4 @@ export type BaseSearchResponse = {
116131
* Lets you store custom data in your indices.
117132
*/
118133
userData?: any | null;
119-
120-
renderingContent?: RenderingContent;
121134
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2+
3+
/**
4+
* Whether certain properties of the search response are calculated exhaustive (exact) or approximated.
5+
*/
6+
export type Exhaustive = {
7+
/**
8+
* Whether the facet count is exhaustive (`true`) or approximate (`false`). See the [related discussion](https://support.algolia.com/hc/en-us/articles/4406975248145-Why-are-my-facet-and-hit-counts-not-accurate-).
9+
*/
10+
facetsCount?: boolean;
11+
12+
/**
13+
* The value is `false` if not all facet values are retrieved.
14+
*/
15+
facetValues?: boolean;
16+
17+
/**
18+
* Whether the `nbHits` is exhaustive (`true`) or approximate (`false`). When the query takes more than 50ms to be processed, the engine makes an approximation. This can happen when using complex filters on millions of records, when typo-tolerance was not exhaustive, or when enough hits have been retrieved (for example, after the engine finds 10,000 exact matches). `nbHits` is reported as non-exhaustive whenever an approximation is made, even if the approximation didn’t, in the end, impact the exhaustivity of the query.
19+
*/
20+
nbHits?: boolean;
21+
22+
/**
23+
* Rules matching exhaustivity. The value is `false` if rules were enable for this query, and could not be fully processed due a timeout. This is generally caused by the number of alternatives (such as typos) which is too large.
24+
*/
25+
rulesMatch?: boolean;
26+
27+
/**
28+
* Whether the typo search was exhaustive (`true`) or approximate (`false`). An approximation is done when the typo search query part takes more than 10% of the query budget (ie. 5ms by default) to be processed (this can happen when a lot of typo alternatives exist for the query). This field will not be included when typo-tolerance is entirely disabled.
29+
*/
30+
typo?: boolean;
31+
};

packages/algoliasearch/lite/model/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export * from './baseIndexSettings';
1919
export * from './baseSearchParams';
2020
export * from './baseSearchParamsWithoutQuery';
2121
export * from './baseSearchResponse';
22-
export * from './baseSearchResponseRedirect';
2322
export * from './browseParams';
2423
export * from './browseParamsObject';
2524
export * from './browseResponse';
@@ -43,6 +42,7 @@ export * from './edit';
4342
export * from './editType';
4443
export * from './errorBase';
4544
export * from './exactOnSingleWordQuery';
45+
export * from './exhaustive';
4646
export * from './facetFilters';
4747
export * from './facetHits';
4848
export * from './facetOrdering';
@@ -74,6 +74,7 @@ export * from './promoteObjectIDs';
7474
export * from './queryType';
7575
export * from './rankingInfo';
7676
export * from './reRankingApplyFilter';
77+
export * from './redirect';
7778
export * from './redirectRuleIndexMetadata';
7879
export * from './redirectRuleIndexMetadataData';
7980
export * from './removeStopWords';

packages/algoliasearch/lite/model/baseSearchResponseRedirect.ts renamed to packages/algoliasearch/lite/model/redirect.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ import type { RedirectRuleIndexMetadata } from './redirectRuleIndexMetadata';
55
/**
66
* [Redirect results to a URL](https://www.algolia.com/doc/guides/managing-results/rules/merchandising-and-promoting/how-to/redirects/).
77
*/
8-
export type BaseSearchResponseRedirect = {
8+
export type Redirect = {
99
index?: RedirectRuleIndexMetadata[];
1010
};

packages/algoliasearch/lite/model/searchHits.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import type { Hit } from './hit';
44

5-
export type SearchHits<T = Record<string, any>> = {
5+
export type SearchHits<T = Record<string, any>> = Record<string, any> & {
66
hits: Array<Hit<T>>;
77

88
/**

packages/client-search/model/baseSearchResponse.ts

+22-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
22

3-
import type { BaseSearchResponseRedirect } from './baseSearchResponseRedirect';
3+
import type { Exhaustive } from './exhaustive';
44
import type { FacetsStats } from './facetsStats';
5+
import type { Redirect } from './redirect';
56
import type { RenderingContent } from './renderingContent';
67

7-
export type BaseSearchResponse = {
8+
export type BaseSearchResponse = Record<string, any> & {
89
/**
910
* A/B test ID. This is only included in the response for indices that are part of an A/B test.
1011
*/
@@ -25,18 +26,20 @@ export type BaseSearchResponse = {
2526
*/
2627
automaticRadius?: string;
2728

29+
exhaustive?: Exhaustive;
30+
2831
/**
29-
* Indicates whether the facet count is exhaustive (exact) or approximate.
32+
* See the `facetsCount` field of the `exhaustive` object in the response.
3033
*/
3134
exhaustiveFacetsCount?: boolean;
3235

3336
/**
34-
* Indicates whether the number of hits `nbHits` is exhaustive (exact) or approximate.
37+
* See the `nbHits` field of the `exhaustive` object in the response.
3538
*/
3639
exhaustiveNbHits?: boolean;
3740

3841
/**
39-
* Indicates whether the search for typos was exhaustive (exact) or approximate.
42+
* See the `typo` field of the `exhaustive` object in the response.
4043
*/
4144
exhaustiveTypo?: boolean;
4245

@@ -90,8 +93,6 @@ export type BaseSearchResponse = {
9093
*/
9194
page: number;
9295

93-
redirect?: BaseSearchResponseRedirect;
94-
9596
/**
9697
* Post-[normalization](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/#what-does-normalization-mean) query string that will be searched.
9798
*/
@@ -102,11 +103,25 @@ export type BaseSearchResponse = {
102103
*/
103104
processingTimeMS: number;
104105

106+
/**
107+
* Experimental. List of processing steps and their times, in milliseconds. You can use this list to investigate performance issues.
108+
*/
109+
processingTimingsMS?: Record<string, any>;
110+
105111
/**
106112
* Markup text indicating which parts of the original query have been removed to retrieve a non-empty result set.
107113
*/
108114
queryAfterRemoval?: string;
109115

116+
redirect?: Redirect;
117+
118+
renderingContent?: RenderingContent;
119+
120+
/**
121+
* Time the server took to process the request, in milliseconds.
122+
*/
123+
serverTimeMS?: number;
124+
110125
/**
111126
* Host name of the server that processed the request.
112127
*/
@@ -116,6 +131,4 @@ export type BaseSearchResponse = {
116131
* Lets you store custom data in your indices.
117132
*/
118133
userData?: any | null;
119-
120-
renderingContent?: RenderingContent;
121134
};
+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2+
3+
/**
4+
* Whether certain properties of the search response are calculated exhaustive (exact) or approximated.
5+
*/
6+
export type Exhaustive = {
7+
/**
8+
* Whether the facet count is exhaustive (`true`) or approximate (`false`). See the [related discussion](https://support.algolia.com/hc/en-us/articles/4406975248145-Why-are-my-facet-and-hit-counts-not-accurate-).
9+
*/
10+
facetsCount?: boolean;
11+
12+
/**
13+
* The value is `false` if not all facet values are retrieved.
14+
*/
15+
facetValues?: boolean;
16+
17+
/**
18+
* Whether the `nbHits` is exhaustive (`true`) or approximate (`false`). When the query takes more than 50ms to be processed, the engine makes an approximation. This can happen when using complex filters on millions of records, when typo-tolerance was not exhaustive, or when enough hits have been retrieved (for example, after the engine finds 10,000 exact matches). `nbHits` is reported as non-exhaustive whenever an approximation is made, even if the approximation didn’t, in the end, impact the exhaustivity of the query.
19+
*/
20+
nbHits?: boolean;
21+
22+
/**
23+
* Rules matching exhaustivity. The value is `false` if rules were enable for this query, and could not be fully processed due a timeout. This is generally caused by the number of alternatives (such as typos) which is too large.
24+
*/
25+
rulesMatch?: boolean;
26+
27+
/**
28+
* Whether the typo search was exhaustive (`true`) or approximate (`false`). An approximation is done when the typo search query part takes more than 10% of the query budget (ie. 5ms by default) to be processed (this can happen when a lot of typo alternatives exist for the query). This field will not be included when typo-tolerance is entirely disabled.
29+
*/
30+
typo?: boolean;
31+
};

packages/client-search/model/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export * from './baseIndexSettings';
2020
export * from './baseSearchParams';
2121
export * from './baseSearchParamsWithoutQuery';
2222
export * from './baseSearchResponse';
23-
export * from './baseSearchResponseRedirect';
2423
export * from './batchAssignUserIdsParams';
2524
export * from './batchDictionaryEntriesParams';
2625
export * from './batchDictionaryEntriesRequest';
@@ -56,6 +55,7 @@ export * from './edit';
5655
export * from './editType';
5756
export * from './errorBase';
5857
export * from './exactOnSingleWordQuery';
58+
export * from './exhaustive';
5959
export * from './facetFilters';
6060
export * from './facetHits';
6161
export * from './facetOrdering';
@@ -103,6 +103,7 @@ export * from './promoteObjectIDs';
103103
export * from './queryType';
104104
export * from './rankingInfo';
105105
export * from './reRankingApplyFilter';
106+
export * from './redirect';
106107
export * from './redirectRuleIndexMetadata';
107108
export * from './redirectRuleIndexMetadataData';
108109
export * from './removeStopWords';

packages/client-search/model/baseSearchResponseRedirect.ts renamed to packages/client-search/model/redirect.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ import type { RedirectRuleIndexMetadata } from './redirectRuleIndexMetadata';
55
/**
66
* [Redirect results to a URL](https://www.algolia.com/doc/guides/managing-results/rules/merchandising-and-promoting/how-to/redirects/).
77
*/
8-
export type BaseSearchResponseRedirect = {
8+
export type Redirect = {
99
index?: RedirectRuleIndexMetadata[];
1010
};

packages/client-search/model/searchHits.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import type { Hit } from './hit';
44

5-
export type SearchHits<T = Record<string, any>> = {
5+
export type SearchHits<T = Record<string, any>> = Record<string, any> & {
66
hits: Array<Hit<T>>;
77

88
/**

0 commit comments

Comments
 (0)