@algolia/recommend 5.0.0-alpha.110 → 5.0.0-alpha.112
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builds/browser.d.ts +1 -1
- package/dist/builds/node.d.ts +1 -1
- package/dist/model/autoFacetFilter.d.ts +14 -0
- package/dist/model/autoFacetFilter.d.ts.map +1 -0
- package/dist/model/baseRecommendRequest.d.ts +6 -4
- package/dist/model/baseRecommendRequest.d.ts.map +1 -1
- package/dist/model/baseSearchParamsWithoutQuery.d.ts +5 -4
- package/dist/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
- package/dist/model/boughtTogetherQuery.d.ts +4 -0
- package/dist/model/boughtTogetherQuery.d.ts.map +1 -0
- package/dist/model/clientMethodProps.d.ts +5 -5
- package/dist/model/condition.d.ts +5 -12
- package/dist/model/condition.d.ts.map +1 -1
- package/dist/model/consequence.d.ts +9 -17
- package/dist/model/consequence.d.ts.map +1 -1
- package/dist/model/deletedAtResponse.d.ts +1 -1
- package/dist/model/exactOnSingleWordQuery.d.ts +1 -1
- package/dist/model/fallbackParams.d.ts +3 -0
- package/dist/model/fallbackParams.d.ts.map +1 -0
- package/dist/model/fbtModel.d.ts +5 -0
- package/dist/model/fbtModel.d.ts.map +1 -0
- package/dist/model/frequentlyBoughtTogether.d.ts +9 -0
- package/dist/model/frequentlyBoughtTogether.d.ts.map +1 -0
- package/dist/model/getRecommendationsParams.d.ts +2 -2
- package/dist/model/hideConsequenceObject.d.ts +10 -0
- package/dist/model/hideConsequenceObject.d.ts.map +1 -0
- package/dist/model/index.d.ts +20 -23
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/indexSettingsAsSearchParams.d.ts +10 -10
- package/dist/model/lookingSimilar.d.ts +11 -0
- package/dist/model/lookingSimilar.d.ts.map +1 -0
- package/dist/model/lookingSimilarModel.d.ts +5 -0
- package/dist/model/lookingSimilarModel.d.ts.map +1 -0
- package/dist/model/lookingSimilarQuery.d.ts +4 -0
- package/dist/model/lookingSimilarQuery.d.ts.map +1 -0
- package/dist/model/paramsConsequence.d.ts +19 -0
- package/dist/model/paramsConsequence.d.ts.map +1 -0
- package/dist/model/promoteConsequenceObject.d.ts +14 -0
- package/dist/model/promoteConsequenceObject.d.ts.map +1 -0
- package/dist/model/reRankingApplyFilter.d.ts +1 -1
- package/dist/model/recommendRule.d.ts +24 -0
- package/dist/model/recommendRule.d.ts.map +1 -0
- package/dist/model/recommendRuleMetadata.d.ts +10 -0
- package/dist/model/recommendRuleMetadata.d.ts.map +1 -0
- package/dist/model/recommendationsHits.d.ts +0 -8
- package/dist/model/recommendationsHits.d.ts.map +1 -1
- package/dist/model/recommendationsRequest.d.ts +4 -2
- package/dist/model/recommendationsRequest.d.ts.map +1 -1
- package/dist/model/recommendedForYou.d.ts +7 -0
- package/dist/model/recommendedForYou.d.ts.map +1 -0
- package/dist/model/recommendedForYouModel.d.ts +1 -1
- package/dist/model/recommendedForYouQuery.d.ts +2 -2
- package/dist/model/recommendedForYouQuery.d.ts.map +1 -1
- package/dist/model/relatedModel.d.ts +5 -0
- package/dist/model/relatedModel.d.ts.map +1 -0
- package/dist/model/relatedProducts.d.ts +11 -0
- package/dist/model/relatedProducts.d.ts.map +1 -0
- package/dist/model/relatedQuery.d.ts +4 -0
- package/dist/model/relatedQuery.d.ts.map +1 -0
- package/dist/model/removeWordsIfNoResults.d.ts +1 -1
- package/dist/model/searchParams.d.ts +3 -0
- package/dist/model/searchParams.d.ts.map +1 -0
- package/dist/model/searchParamsObject.d.ts +3 -0
- package/dist/model/searchParamsObject.d.ts.map +1 -1
- package/dist/model/searchRecommendRulesParams.d.ts +16 -4
- package/dist/model/searchRecommendRulesParams.d.ts.map +1 -1
- package/dist/model/searchRecommendRulesResponse.d.ts +3 -3
- package/dist/model/searchRecommendRulesResponse.d.ts.map +1 -1
- package/dist/model/sortRemainingBy.d.ts +1 -1
- package/dist/model/trendingFacetHit.d.ts +2 -2
- package/dist/model/trendingFacets.d.ts +11 -0
- package/dist/model/trendingFacets.d.ts.map +1 -0
- package/dist/model/trendingFacetsModel.d.ts +1 -1
- package/dist/model/trendingFacetsQuery.d.ts +2 -2
- package/dist/model/trendingFacetsQuery.d.ts.map +1 -1
- package/dist/model/trendingItems.d.ts +15 -0
- package/dist/model/trendingItems.d.ts.map +1 -0
- package/dist/model/trendingItemsModel.d.ts +1 -1
- package/dist/model/trendingItemsQuery.d.ts +2 -2
- package/dist/model/trendingItemsQuery.d.ts.map +1 -1
- package/dist/recommend.cjs +11 -11
- package/dist/recommend.esm.browser.js +13 -16
- package/dist/recommend.esm.node.js +11 -11
- package/dist/recommend.umd.js +2 -2
- package/dist/src/recommendClient.d.ts +13 -13
- package/dist/src/recommendClient.d.ts.map +1 -1
- package/model/autoFacetFilter.ts +16 -0
- package/model/baseRecommendRequest.ts +8 -4
- package/model/baseSearchParamsWithoutQuery.ts +5 -4
- package/model/{recommendationsQuery.ts → boughtTogetherQuery.ts} +3 -3
- package/model/clientMethodProps.ts +5 -5
- package/model/condition.ts +5 -16
- package/model/consequence.ts +9 -19
- package/model/deletedAtResponse.ts +1 -1
- package/model/exactOnSingleWordQuery.ts +1 -1
- package/model/{editType.ts → fallbackParams.ts} +3 -4
- package/model/fbtModel.ts +6 -0
- package/model/{consequenceHide.ts → frequentlyBoughtTogether.ts} +5 -4
- package/model/getRecommendationsParams.ts +2 -2
- package/model/{promoteObjectID.ts → hideConsequenceObject.ts} +3 -8
- package/model/index.ts +20 -23
- package/model/indexSettingsAsSearchParams.ts +10 -10
- package/model/lookingSimilar.ts +15 -0
- package/model/lookingSimilarModel.ts +6 -0
- package/model/lookingSimilarQuery.ts +6 -0
- package/model/paramsConsequence.ts +23 -0
- package/model/promoteConsequenceObject.ts +16 -0
- package/model/reRankingApplyFilter.ts +1 -1
- package/model/{ruleResponse.ts → recommendRule.ts} +7 -10
- package/model/{ruleResponseMetadata.ts → recommendRuleMetadata.ts} +5 -2
- package/model/recommendationsHits.ts +0 -10
- package/model/recommendationsRequest.ts +6 -2
- package/model/{baseRecommendedForYouQuery.ts → recommendedForYou.ts} +3 -5
- package/model/recommendedForYouModel.ts +1 -1
- package/model/recommendedForYouQuery.ts +2 -3
- package/model/relatedModel.ts +6 -0
- package/model/relatedProducts.ts +15 -0
- package/model/relatedQuery.ts +6 -0
- package/model/removeWordsIfNoResults.ts +1 -1
- package/model/{recommendationModels.ts → searchParams.ts} +3 -4
- package/model/searchParamsObject.ts +3 -0
- package/model/searchRecommendRulesParams.ts +19 -4
- package/model/searchRecommendRulesResponse.ts +3 -3
- package/model/sortRemainingBy.ts +1 -1
- package/model/trendingFacetHit.ts +2 -2
- package/model/{baseTrendingFacetsQuery.ts → trendingFacets.ts} +7 -4
- package/model/trendingFacetsModel.ts +1 -1
- package/model/trendingFacetsQuery.ts +2 -3
- package/model/trendingItems.ts +20 -0
- package/model/trendingItemsModel.ts +1 -1
- package/model/trendingItemsQuery.ts +2 -2
- package/package.json +7 -7
- package/dist/model/anchoring.d.ts +0 -5
- package/dist/model/anchoring.d.ts.map +0 -1
- package/dist/model/automaticFacetFilter.d.ts +0 -18
- package/dist/model/automaticFacetFilter.d.ts.map +0 -1
- package/dist/model/automaticFacetFilters.d.ts +0 -6
- package/dist/model/automaticFacetFilters.d.ts.map +0 -1
- package/dist/model/baseRecommendationsQuery.d.ts +0 -12
- package/dist/model/baseRecommendationsQuery.d.ts.map +0 -1
- package/dist/model/baseRecommendedForYouQuery.d.ts +0 -8
- package/dist/model/baseRecommendedForYouQuery.d.ts.map +0 -1
- package/dist/model/baseRecommendedForYouQueryParameters.d.ts +0 -7
- package/dist/model/baseRecommendedForYouQueryParameters.d.ts.map +0 -1
- package/dist/model/baseTrendingFacetsQuery.d.ts +0 -9
- package/dist/model/baseTrendingFacetsQuery.d.ts.map +0 -1
- package/dist/model/baseTrendingItemsQuery.d.ts +0 -16
- package/dist/model/baseTrendingItemsQuery.d.ts.map +0 -1
- package/dist/model/consequenceHide.d.ts +0 -10
- package/dist/model/consequenceHide.d.ts.map +0 -1
- package/dist/model/consequenceParams.d.ts +0 -5
- package/dist/model/consequenceParams.d.ts.map +0 -1
- package/dist/model/consequenceQuery.d.ts +0 -6
- package/dist/model/consequenceQuery.d.ts.map +0 -1
- package/dist/model/consequenceQueryObject.d.ts +0 -12
- package/dist/model/consequenceQueryObject.d.ts.map +0 -1
- package/dist/model/edit.d.ts +0 -13
- package/dist/model/edit.d.ts.map +0 -1
- package/dist/model/editType.d.ts +0 -5
- package/dist/model/editType.d.ts.map +0 -1
- package/dist/model/params.d.ts +0 -13
- package/dist/model/params.d.ts.map +0 -1
- package/dist/model/promote.d.ts +0 -4
- package/dist/model/promote.d.ts.map +0 -1
- package/dist/model/promoteObjectID.d.ts +0 -14
- package/dist/model/promoteObjectID.d.ts.map +0 -1
- package/dist/model/promoteObjectIDs.d.ts +0 -14
- package/dist/model/promoteObjectIDs.d.ts.map +0 -1
- package/dist/model/recommendationModels.d.ts +0 -5
- package/dist/model/recommendationModels.d.ts.map +0 -1
- package/dist/model/recommendationsQuery.d.ts +0 -4
- package/dist/model/recommendationsQuery.d.ts.map +0 -1
- package/dist/model/recommendedForYouQueryParameters.d.ts +0 -4
- package/dist/model/recommendedForYouQueryParameters.d.ts.map +0 -1
- package/dist/model/ruleResponse.d.ts +0 -27
- package/dist/model/ruleResponse.d.ts.map +0 -1
- package/dist/model/ruleResponseMetadata.d.ts +0 -7
- package/dist/model/ruleResponseMetadata.d.ts.map +0 -1
- package/model/anchoring.ts +0 -6
- package/model/automaticFacetFilter.ts +0 -21
- package/model/automaticFacetFilters.ts +0 -8
- package/model/baseRecommendationsQuery.ts +0 -17
- package/model/baseRecommendedForYouQueryParameters.ts +0 -8
- package/model/baseTrendingItemsQuery.ts +0 -22
- package/model/consequenceParams.ts +0 -9
- package/model/consequenceQuery.ts +0 -8
- package/model/consequenceQueryObject.ts +0 -15
- package/model/edit.ts +0 -17
- package/model/params.ts +0 -18
- package/model/promote.ts +0 -6
- package/model/promoteObjectIDs.ts +0 -16
- package/model/recommendedForYouQueryParameters.ts +0 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
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
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Determines how 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) is computed when the search query has only one word.
|
|
4
|
+
* Determines how 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) is computed when the search query has only one word. - `attribute`. The Exact ranking criterion is 1 if the query word and attribute value are the same. For example, a search for \"road\" will match the value \"road\", but not \"road trip\". - `none`. The Exact ranking criterion is ignored on single-word searches. - `word`. The Exact ranking criterion is 1 if the query word is found in the attribute value. The query word must have at least 3 characters and must not be a stop word. Only exact matches will be highlighted, partial and prefix matches won\'t.
|
|
5
5
|
*/
|
|
6
6
|
export type ExactOnSingleWordQuery = 'attribute' | 'none' | 'word';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
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
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export type EditType = 'remove' | 'replace';
|
|
3
|
+
import type { SearchParamsObject } from './searchParamsObject';
|
|
4
|
+
|
|
5
|
+
export type FallbackParams = Record<string, any> & SearchParamsObject;
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
* Frequently bought together model. This model recommends items that have been purchased within 1 day with the item with the ID `objectID`.
|
|
5
|
+
*/
|
|
6
|
+
export type FbtModel = 'bought-together';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
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
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import type { FbtModel } from './fbtModel';
|
|
4
|
+
|
|
5
|
+
export type FrequentlyBoughtTogether = {
|
|
6
|
+
model: FbtModel;
|
|
7
|
+
|
|
7
8
|
/**
|
|
8
9
|
* Unique record identifier.
|
|
9
10
|
*/
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import type { RecommendationsRequest } from './recommendationsRequest';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Recommend
|
|
6
|
+
* Recommend request body.
|
|
7
7
|
*/
|
|
8
8
|
export type GetRecommendationsParams = {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Recommendation request with parameters depending on the requested model.
|
|
11
11
|
*/
|
|
12
12
|
requests: RecommendationsRequest[];
|
|
13
13
|
};
|
|
@@ -1,16 +1,11 @@
|
|
|
1
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
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Object ID of the recommendation you want to exclude.
|
|
5
5
|
*/
|
|
6
|
-
export type
|
|
6
|
+
export type HideConsequenceObject = {
|
|
7
7
|
/**
|
|
8
8
|
* Unique record identifier.
|
|
9
9
|
*/
|
|
10
|
-
objectID
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Position in the search results where you want to show the promoted records.
|
|
14
|
-
*/
|
|
15
|
-
position: number;
|
|
10
|
+
objectID?: string;
|
|
16
11
|
};
|
package/model/index.ts
CHANGED
|
@@ -2,32 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
export * from './advancedSyntaxFeatures';
|
|
4
4
|
export * from './alternativesAsExact';
|
|
5
|
-
export * from './anchoring';
|
|
6
5
|
export * from './aroundPrecision';
|
|
7
6
|
export * from './aroundPrecisionFromValueInner';
|
|
8
7
|
export * from './aroundRadius';
|
|
9
8
|
export * from './aroundRadiusAll';
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './automaticFacetFilters';
|
|
9
|
+
export * from './autoFacetFilter';
|
|
12
10
|
export * from './baseRecommendRequest';
|
|
13
|
-
export * from './baseRecommendationsQuery';
|
|
14
|
-
export * from './baseRecommendedForYouQuery';
|
|
15
|
-
export * from './baseRecommendedForYouQueryParameters';
|
|
16
11
|
export * from './baseSearchParams';
|
|
17
12
|
export * from './baseSearchParamsWithoutQuery';
|
|
18
13
|
export * from './baseSearchResponse';
|
|
19
|
-
export * from './
|
|
20
|
-
export * from './baseTrendingItemsQuery';
|
|
14
|
+
export * from './boughtTogetherQuery';
|
|
21
15
|
export * from './condition';
|
|
22
16
|
export * from './consequence';
|
|
23
|
-
export * from './consequenceHide';
|
|
24
|
-
export * from './consequenceParams';
|
|
25
|
-
export * from './consequenceQuery';
|
|
26
|
-
export * from './consequenceQueryObject';
|
|
27
17
|
export * from './deletedAtResponse';
|
|
28
18
|
export * from './distinct';
|
|
29
|
-
export * from './edit';
|
|
30
|
-
export * from './editType';
|
|
31
19
|
export * from './errorBase';
|
|
32
20
|
export * from './exactOnSingleWordQuery';
|
|
33
21
|
export * from './exhaustive';
|
|
@@ -35,46 +23,53 @@ export * from './facetFilters';
|
|
|
35
23
|
export * from './facetOrdering';
|
|
36
24
|
export * from './facets';
|
|
37
25
|
export * from './facetsStats';
|
|
26
|
+
export * from './fallbackParams';
|
|
27
|
+
export * from './fbtModel';
|
|
28
|
+
export * from './frequentlyBoughtTogether';
|
|
38
29
|
export * from './getRecommendTaskResponse';
|
|
39
30
|
export * from './getRecommendationsParams';
|
|
40
31
|
export * from './getRecommendationsResponse';
|
|
32
|
+
export * from './hideConsequenceObject';
|
|
41
33
|
export * from './highlightResult';
|
|
42
34
|
export * from './highlightResultOption';
|
|
43
35
|
export * from './ignorePlurals';
|
|
44
36
|
export * from './indexSettingsAsSearchParams';
|
|
37
|
+
export * from './lookingSimilar';
|
|
38
|
+
export * from './lookingSimilarModel';
|
|
39
|
+
export * from './lookingSimilarQuery';
|
|
45
40
|
export * from './matchLevel';
|
|
46
41
|
export * from './matchedGeoLocation';
|
|
47
42
|
export * from './mixedSearchFilters';
|
|
48
43
|
export * from './mode';
|
|
49
44
|
export * from './numericFilters';
|
|
50
45
|
export * from './optionalFilters';
|
|
51
|
-
export * from './
|
|
46
|
+
export * from './paramsConsequence';
|
|
52
47
|
export * from './personalization';
|
|
53
|
-
export * from './
|
|
54
|
-
export * from './promoteObjectID';
|
|
55
|
-
export * from './promoteObjectIDs';
|
|
48
|
+
export * from './promoteConsequenceObject';
|
|
56
49
|
export * from './queryType';
|
|
57
50
|
export * from './rankingInfo';
|
|
58
51
|
export * from './reRankingApplyFilter';
|
|
59
52
|
export * from './recommendHit';
|
|
60
53
|
export * from './recommendModels';
|
|
61
|
-
export * from './
|
|
54
|
+
export * from './recommendRule';
|
|
55
|
+
export * from './recommendRuleMetadata';
|
|
62
56
|
export * from './recommendationsHit';
|
|
63
57
|
export * from './recommendationsHits';
|
|
64
|
-
export * from './recommendationsQuery';
|
|
65
58
|
export * from './recommendationsRequest';
|
|
66
59
|
export * from './recommendationsResults';
|
|
60
|
+
export * from './recommendedForYou';
|
|
67
61
|
export * from './recommendedForYouModel';
|
|
68
62
|
export * from './recommendedForYouQuery';
|
|
69
|
-
export * from './recommendedForYouQueryParameters';
|
|
70
63
|
export * from './redirect';
|
|
71
64
|
export * from './redirectRuleIndexMetadata';
|
|
72
65
|
export * from './redirectRuleIndexMetadataData';
|
|
66
|
+
export * from './relatedModel';
|
|
67
|
+
export * from './relatedProducts';
|
|
68
|
+
export * from './relatedQuery';
|
|
73
69
|
export * from './removeStopWords';
|
|
74
70
|
export * from './removeWordsIfNoResults';
|
|
75
71
|
export * from './renderingContent';
|
|
76
|
-
export * from './
|
|
77
|
-
export * from './ruleResponseMetadata';
|
|
72
|
+
export * from './searchParams';
|
|
78
73
|
export * from './searchParamsObject';
|
|
79
74
|
export * from './searchParamsQuery';
|
|
80
75
|
export * from './searchRecommendRulesParams';
|
|
@@ -87,8 +82,10 @@ export * from './supportedLanguage';
|
|
|
87
82
|
export * from './tagFilters';
|
|
88
83
|
export * from './taskStatus';
|
|
89
84
|
export * from './trendingFacetHit';
|
|
85
|
+
export * from './trendingFacets';
|
|
90
86
|
export * from './trendingFacetsModel';
|
|
91
87
|
export * from './trendingFacetsQuery';
|
|
88
|
+
export * from './trendingItems';
|
|
92
89
|
export * from './trendingItemsModel';
|
|
93
90
|
export * from './trendingItemsQuery';
|
|
94
91
|
export * from './typoTolerance';
|
|
@@ -17,17 +17,17 @@ import type { TypoTolerance } from './typoTolerance';
|
|
|
17
17
|
|
|
18
18
|
export type IndexSettingsAsSearchParams = {
|
|
19
19
|
/**
|
|
20
|
-
* Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. - `*` retrieves all attributes, except attributes included in the `customRanking` and `unretrievableAttributes` settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the `*`: `[\"*\", \"-ATTRIBUTE\"]`. - The `objectID` attribute is always included.
|
|
20
|
+
* Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. Attribute names are case-sensitive. - `*` retrieves all attributes, except attributes included in the `customRanking` and `unretrievableAttributes` settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the `*`: `[\"*\", \"-ATTRIBUTE\"]`. - The `objectID` attribute is always included.
|
|
21
21
|
*/
|
|
22
22
|
attributesToRetrieve?: string[];
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
* 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**
|
|
25
|
+
* 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, you should test your changes in the dashboard, and by [A/B testing](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing/).
|
|
26
26
|
*/
|
|
27
27
|
ranking?: string[];
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers**
|
|
30
|
+
* Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **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. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
|
|
31
31
|
*/
|
|
32
32
|
customRanking?: string[];
|
|
33
33
|
|
|
@@ -37,12 +37,12 @@ export type IndexSettingsAsSearchParams = {
|
|
|
37
37
|
relevancyStrictness?: number;
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
|
-
* Attributes to highlight. By default, all searchable attributes are highlighted. Use `*` to highlight all attributes or use an empty array `[]` to turn off highlighting. With highlighting, strings that match the search query are surrounded by HTML tags defined by `highlightPreTag` and `highlightPostTag`. You can use this to visually highlight matching parts of a search query in your UI. For more information, see [Highlighting and snippeting](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/highlighting-snippeting/js/).
|
|
40
|
+
* Attributes to highlight. By default, all searchable attributes are highlighted. Use `*` to highlight all attributes or use an empty array `[]` to turn off highlighting. Attribute names are case-sensitive. With highlighting, strings that match the search query are surrounded by HTML tags defined by `highlightPreTag` and `highlightPostTag`. You can use this to visually highlight matching parts of a search query in your UI. For more information, see [Highlighting and snippeting](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/highlighting-snippeting/js/).
|
|
41
41
|
*/
|
|
42
42
|
attributesToHighlight?: string[];
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
|
-
* Attributes for which to enable snippets. Snippets provide additional context to matched words. If you enable snippets, they include 10 words, including the matched word. The matched word will also be wrapped by HTML tags for highlighting. You can adjust the number of words with the following notation: `ATTRIBUTE:NUMBER`, where `NUMBER` is the number of words to be extracted.
|
|
45
|
+
* Attributes for which to enable snippets. Attribute names are case-sensitive. Snippets provide additional context to matched words. If you enable snippets, they include 10 words, including the matched word. The matched word will also be wrapped by HTML tags for highlighting. You can adjust the number of words with the following notation: `ATTRIBUTE:NUMBER`, where `NUMBER` is the number of words to be extracted.
|
|
46
46
|
*/
|
|
47
47
|
attributesToSnippet?: string[];
|
|
48
48
|
|
|
@@ -89,7 +89,7 @@ export type IndexSettingsAsSearchParams = {
|
|
|
89
89
|
allowTyposOnNumericTokens?: boolean;
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
|
-
* Attributes for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/). Returning only exact matches can help when: - [Searching in hyphenated attributes](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/how-to/how-to-search-in-hyphenated-attributes/). - Reducing the number of matches when you have too many. This can happen with attributes that are long blocks of text, such as product descriptions. Consider alternatives such as `disableTypoToleranceOnWords` or adding synonyms if your attributes have intentional unusual spellings that might look like typos.
|
|
92
|
+
* Attributes for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/). Attribute names are case-sensitive. Returning only exact matches can help when: - [Searching in hyphenated attributes](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/how-to/how-to-search-in-hyphenated-attributes/). - Reducing the number of matches when you have too many. This can happen with attributes that are long blocks of text, such as product descriptions. Consider alternatives such as `disableTypoToleranceOnWords` or adding synonyms if your attributes have intentional unusual spellings that might look like typos.
|
|
93
93
|
*/
|
|
94
94
|
disableTypoToleranceOnAttributes?: string[];
|
|
95
95
|
|
|
@@ -141,19 +141,19 @@ export type IndexSettingsAsSearchParams = {
|
|
|
141
141
|
optionalWords?: string[];
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
|
-
* 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). This can be useful for attributes with long values, where the likelyhood 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.
|
|
144
|
+
* 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 likelyhood 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.
|
|
145
145
|
*/
|
|
146
146
|
disableExactOnAttributes?: string[];
|
|
147
147
|
|
|
148
148
|
exactOnSingleWordQuery?: ExactOnSingleWordQuery;
|
|
149
149
|
|
|
150
150
|
/**
|
|
151
|
-
* Alternatives of query words that should be considered as exact matches by the Exact ranking criterion.
|
|
151
|
+
* Alternatives of query words that should be considered as exact matches by the Exact ranking criterion. - `ignorePlurals`. Plurals and similar declensions added by the `ignorePlurals` setting are considered exact matches. - `singleWordSynonym`. Single-word synonyms, such as \"NY/NYC\" are considered exact matches. - `multiWordsSynonym`. Multi-word synonyms, such as \"NY/New York\" are considered exact matches.
|
|
152
152
|
*/
|
|
153
153
|
alternativesAsExact?: AlternativesAsExact[];
|
|
154
154
|
|
|
155
155
|
/**
|
|
156
|
-
* Advanced search syntax features you want to support.
|
|
156
|
+
* Advanced search syntax features you want to support. - `exactPhrase`. Phrases in quotes must match exactly. For example, `sparkly blue \"iPhone case\"` only returns records with the exact string \"iPhone case\". - `excludeWords`. Query words prefixed with a `-` must not occur in a record. For example, `search -engine` matches records that contain \"search\" but not \"engine\". This setting only has an effect if `advancedSyntax` is true.
|
|
157
157
|
*/
|
|
158
158
|
advancedSyntaxFeatures?: AdvancedSyntaxFeatures[];
|
|
159
159
|
|
|
@@ -185,7 +185,7 @@ export type IndexSettingsAsSearchParams = {
|
|
|
185
185
|
maxValuesPerFacet?: number;
|
|
186
186
|
|
|
187
187
|
/**
|
|
188
|
-
* Order in which to retrieve facet values.
|
|
188
|
+
* Order in which to retrieve facet values. - `count`. Facet values are retrieved by decreasing count. The count is the number of matching records containing this facet value. - `alpha`. Retrieve facet values alphabetically. This setting doesn\'t influence how facet values are displayed in your UI (see `renderingContent`). For more information, see [facet value display](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/facet-display/js/).
|
|
189
189
|
*/
|
|
190
190
|
sortFacetValuesBy?: string;
|
|
191
191
|
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
import type { FallbackParams } from './fallbackParams';
|
|
4
|
+
import type { LookingSimilarModel } from './lookingSimilarModel';
|
|
5
|
+
|
|
6
|
+
export type LookingSimilar = {
|
|
7
|
+
model: LookingSimilarModel;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Unique record identifier.
|
|
11
|
+
*/
|
|
12
|
+
objectID: string;
|
|
13
|
+
|
|
14
|
+
fallbackParameters?: FallbackParams;
|
|
15
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
* Looking similar model. This model recommends items that look similar to the item with the ID `objectID` based on image attributes in your index.
|
|
5
|
+
*/
|
|
6
|
+
export type LookingSimilarModel = 'looking-similar';
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
import type { BaseRecommendRequest } from './baseRecommendRequest';
|
|
4
|
+
import type { LookingSimilar } from './lookingSimilar';
|
|
5
|
+
|
|
6
|
+
export type LookingSimilarQuery = BaseRecommendRequest & LookingSimilar;
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
import type { AutoFacetFilter } from './autoFacetFilter';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Filter or boost recommendations matching a facet filter.
|
|
7
|
+
*/
|
|
8
|
+
export type ParamsConsequence = {
|
|
9
|
+
/**
|
|
10
|
+
* Filter recommendations that match or don\'t match the same `facet:facet_value` combination as the viewed item.
|
|
11
|
+
*/
|
|
12
|
+
automaticFacetFilters?: AutoFacetFilter[];
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Filter expression to only include items that match the filter criteria in the response. You can use these filter expressions: - **Numeric filters.** `<facet> <op> <number>`, where `<op>` is one of `<`, `<=`, `=`, `!=`, `>`, `>=`. - **Ranges.** `<facet>:<lower> TO <upper>` where `<lower>` and `<upper>` are the lower and upper limits of the range (inclusive). - **Facet filters.** `<facet>:<value>` where `<facet>` is a facet attribute (case-sensitive) and `<value>` a facet value. - **Tag filters.** `_tags:<value>` or just `<value>` (case-sensitive). - **Boolean filters.** `<facet>: true | false`. You can combine filters with `AND`, `OR`, and `NOT` operators with the following restrictions: - You can only combine filters of the same type with `OR`. **Not supported:** `facet:value OR num > 3`. - You can\'t use `NOT` with combinations of filters. **Not supported:** `NOT(facet:value OR facet:value)` - You can\'t combine conjunctions (`AND`) with `OR`. **Not supported:** `facet:value OR (facet:value AND facet:value)` Use quotes around your filters, if the facet attribute name or facet value has spaces, keywords (`OR`, `AND`, `NOT`), or quotes. If a facet attribute is an array, the filter matches if it matches at least one element of the array. For more information, see [Filters](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/).
|
|
16
|
+
*/
|
|
17
|
+
filters?: string;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Filters to promote or demote records in the search results. Optional filters work like facet filters, but they don\'t exclude records from the search results. Records that match the optional filter rank before records that don\'t match. Matches with higher weights (`<score=N>`) rank before matches with lower weights. If you\'re using a negative filter `facet:-value`, matching records rank after records that don\'t match.
|
|
21
|
+
*/
|
|
22
|
+
optionalFilters?: string[];
|
|
23
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
* Object ID and position of the recommendation you want to pin.
|
|
5
|
+
*/
|
|
6
|
+
export type PromoteConsequenceObject = {
|
|
7
|
+
/**
|
|
8
|
+
* Unique record identifier.
|
|
9
|
+
*/
|
|
10
|
+
objectID?: string;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Index in the list of recommendations where to place this item.
|
|
14
|
+
*/
|
|
15
|
+
position?: number;
|
|
16
|
+
};
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
import type { MixedSearchFilters } from './mixedSearchFilters';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Restrict [Dynamic Re-
|
|
6
|
+
* Restrict [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/) to records that match these filters.
|
|
7
7
|
*/
|
|
8
8
|
export type ReRankingApplyFilter = MixedSearchFilters[] | string;
|
|
@@ -2,23 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
import type { Condition } from './condition';
|
|
4
4
|
import type { Consequence } from './consequence';
|
|
5
|
-
import type {
|
|
5
|
+
import type { RecommendRuleMetadata } from './recommendRuleMetadata';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Recommend rule.
|
|
9
9
|
*/
|
|
10
|
-
export type
|
|
11
|
-
_metadata?:
|
|
10
|
+
export type RecommendRule = {
|
|
11
|
+
_metadata?: RecommendRuleMetadata;
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
* Unique identifier
|
|
14
|
+
* Unique identifier of a rule object.
|
|
15
15
|
*/
|
|
16
|
-
objectID
|
|
16
|
+
objectID?: string;
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
* [Conditions](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#conditions) required to activate a rule. You can use up to 25 conditions per rule.
|
|
20
|
-
*/
|
|
21
|
-
conditions?: Condition[];
|
|
18
|
+
condition?: Condition;
|
|
22
19
|
|
|
23
20
|
consequence?: Consequence;
|
|
24
21
|
|
|
@@ -1,8 +1,11 @@
|
|
|
1
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
2
|
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Rule metadata.
|
|
5
|
+
*/
|
|
6
|
+
export type RecommendRuleMetadata = {
|
|
4
7
|
/**
|
|
5
|
-
*
|
|
8
|
+
* Date and time when the object was updated, in RFC 3339 format.
|
|
6
9
|
*/
|
|
7
10
|
lastUpdate?: string;
|
|
8
11
|
};
|
|
@@ -4,14 +4,4 @@ import type { RecommendationsHit } from './recommendationsHit';
|
|
|
4
4
|
|
|
5
5
|
export type RecommendationsHits = {
|
|
6
6
|
hits: RecommendationsHit[];
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Search query.
|
|
10
|
-
*/
|
|
11
|
-
query?: string;
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* URL-encoded string of all search parameters.
|
|
15
|
-
*/
|
|
16
|
-
params?: string;
|
|
17
7
|
};
|
|
@@ -1,12 +1,16 @@
|
|
|
1
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
2
|
|
|
3
|
-
import type {
|
|
3
|
+
import type { BoughtTogetherQuery } from './boughtTogetherQuery';
|
|
4
|
+
import type { LookingSimilarQuery } from './lookingSimilarQuery';
|
|
4
5
|
import type { RecommendedForYouQuery } from './recommendedForYouQuery';
|
|
6
|
+
import type { RelatedQuery } from './relatedQuery';
|
|
5
7
|
import type { TrendingFacetsQuery } from './trendingFacetsQuery';
|
|
6
8
|
import type { TrendingItemsQuery } from './trendingItemsQuery';
|
|
7
9
|
|
|
8
10
|
export type RecommendationsRequest =
|
|
9
|
-
|
|
|
11
|
+
| BoughtTogetherQuery
|
|
12
|
+
| LookingSimilarQuery
|
|
10
13
|
| RecommendedForYouQuery
|
|
14
|
+
| RelatedQuery
|
|
11
15
|
| TrendingFacetsQuery
|
|
12
16
|
| TrendingItemsQuery;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
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
2
|
|
|
3
|
+
import type { FallbackParams } from './fallbackParams';
|
|
3
4
|
import type { RecommendedForYouModel } from './recommendedForYouModel';
|
|
4
|
-
import type { RecommendedForYouQueryParameters } from './recommendedForYouQueryParameters';
|
|
5
5
|
|
|
6
|
-
export type
|
|
6
|
+
export type RecommendedForYou = {
|
|
7
7
|
model: RecommendedForYouModel;
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
fallbackParameters?: RecommendedForYouQueryParameters;
|
|
9
|
+
fallbackParameters?: FallbackParams;
|
|
12
10
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* \"Recommened for you\" model.
|
|
5
5
|
*/
|
|
6
6
|
export type RecommendedForYouModel = 'recommended-for-you';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
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
2
|
|
|
3
3
|
import type { BaseRecommendRequest } from './baseRecommendRequest';
|
|
4
|
-
import type {
|
|
4
|
+
import type { RecommendedForYou } from './recommendedForYou';
|
|
5
5
|
|
|
6
|
-
export type RecommendedForYouQuery =
|
|
7
|
-
BaseRecommendRequest;
|
|
6
|
+
export type RecommendedForYouQuery = BaseRecommendRequest & RecommendedForYou;
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
* Related products or similar content model. This model recommends items that are similar to the item with the ID `objectID`. Similarity is determined from the user interactions and attributes.
|
|
5
|
+
*/
|
|
6
|
+
export type RelatedModel = 'related-products';
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
import type { FallbackParams } from './fallbackParams';
|
|
4
|
+
import type { RelatedModel } from './relatedModel';
|
|
5
|
+
|
|
6
|
+
export type RelatedProducts = {
|
|
7
|
+
model: RelatedModel;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Unique record identifier.
|
|
11
|
+
*/
|
|
12
|
+
objectID: string;
|
|
13
|
+
|
|
14
|
+
fallbackParameters?: FallbackParams;
|
|
15
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
import type { BaseRecommendRequest } from './baseRecommendRequest';
|
|
4
|
+
import type { RelatedProducts } from './relatedProducts';
|
|
5
|
+
|
|
6
|
+
export type RelatedQuery = BaseRecommendRequest & RelatedProducts;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Strategy for removing words from the query when it doesn\'t return any results. This helps to avoid returning empty search results.
|
|
4
|
+
* Strategy for removing words from the query when it doesn\'t return any results. This helps to avoid returning empty search results. - `none`. No words are removed when a query doesn\'t return results. - `lastWords`. Treat the last (then second to last, then third to last) word as optional, until there are results or at most 5 words have been removed. - `firstWords`. Treat the first (then second, then third) word as optional, until there are results or at most 5 words have been removed. - `allOptional`. Treat all words as optional. For more information, see [Remove words to improve results](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/in-depth/why-use-remove-words-if-no-results/).
|
|
5
5
|
*/
|
|
6
6
|
export type RemoveWordsIfNoResults =
|
|
7
7
|
| 'allOptional'
|
|
@@ -1,6 +1,5 @@
|
|
|
1
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
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export type RecommendationModels = 'bought-together' | 'related-products';
|
|
3
|
+
import type { SearchParamsObject } from './searchParamsObject';
|
|
4
|
+
|
|
5
|
+
export type SearchParams = Record<string, any> & SearchParamsObject;
|
|
@@ -3,4 +3,7 @@
|
|
|
3
3
|
import type { BaseSearchParams } from './baseSearchParams';
|
|
4
4
|
import type { IndexSettingsAsSearchParams } from './indexSettingsAsSearchParams';
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Each parameter value, including the `query` must not be larger than 512 bytes.
|
|
8
|
+
*/
|
|
6
9
|
export type SearchParamsObject = BaseSearchParams & IndexSettingsAsSearchParams;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Recommend rules
|
|
4
|
+
* Recommend rules parameters.
|
|
5
5
|
*/
|
|
6
6
|
export type SearchRecommendRulesParams = {
|
|
7
7
|
/**
|
|
@@ -10,7 +10,7 @@ export type SearchRecommendRulesParams = {
|
|
|
10
10
|
query?: string;
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Only search for rules with matching context.
|
|
14
14
|
*/
|
|
15
15
|
context?: string;
|
|
16
16
|
|
|
@@ -25,7 +25,22 @@ export type SearchRecommendRulesParams = {
|
|
|
25
25
|
hitsPerPage?: number;
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Whether to only show rules where the value of their `enabled` property matches this parameter. If absent, show all rules, regardless of their `enabled` property.
|
|
29
29
|
*/
|
|
30
|
-
enabled?: boolean
|
|
30
|
+
enabled?: boolean;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Filter expression. This only searches for rules matching the filter expression.
|
|
34
|
+
*/
|
|
35
|
+
filters?: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Include facets and facet values in the response. Use `[\'*\']` to include all facets.
|
|
39
|
+
*/
|
|
40
|
+
facets?: string[];
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Maximum number of values to return for each facet.
|
|
44
|
+
*/
|
|
45
|
+
maxValuesPerFacet?: number;
|
|
31
46
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
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
2
|
|
|
3
|
-
import type {
|
|
3
|
+
import type { RecommendRule } from './recommendRule';
|
|
4
4
|
|
|
5
5
|
export type SearchRecommendRulesResponse = {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Recommend rules that match the search criteria.
|
|
8
8
|
*/
|
|
9
|
-
hits:
|
|
9
|
+
hits: RecommendRule[];
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Number of results (hits).
|