@algolia/recommend 5.9.1 → 5.10.0-beta.1
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/README.md +4 -4
- package/dist/browser.d.ts +1 -1
- package/dist/builds/browser.js +1 -1
- package/dist/builds/browser.js.map +1 -1
- package/dist/builds/browser.min.js +1 -1
- package/dist/builds/browser.min.js.map +1 -1
- package/dist/builds/browser.umd.js +1 -1
- package/dist/builds/fetch.js +1 -1
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +1 -1
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +1 -1
- package/dist/builds/node.js.map +1 -1
- package/dist/fetch.d.ts +1 -1
- package/dist/node.d.cts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/src/recommendClient.cjs +1 -1
- package/dist/src/recommendClient.cjs.map +1 -1
- package/dist/src/recommendClient.js +1 -1
- package/dist/src/recommendClient.js.map +1 -1
- package/package.json +6 -7
- package/model/advancedSyntaxFeatures.ts +0 -3
- package/model/alternativesAsExact.ts +0 -3
- package/model/aroundPrecision.ts +0 -8
- package/model/aroundRadius.ts +0 -8
- package/model/aroundRadiusAll.ts +0 -6
- package/model/autoFacetFilter.ts +0 -16
- package/model/banner.ts +0 -13
- package/model/bannerImage.ts +0 -12
- package/model/bannerImageUrl.ts +0 -8
- package/model/bannerLink.ts +0 -8
- package/model/baseIndexSettings.ts +0 -90
- package/model/baseRecommendIndexSettings.ts +0 -184
- package/model/baseRecommendRequest.ts +0 -22
- package/model/baseRecommendSearchParams.ts +0 -133
- package/model/baseSearchResponse.ts +0 -129
- package/model/booleanString.ts +0 -3
- package/model/boughtTogetherQuery.ts +0 -6
- package/model/clientMethodProps.ts +0 -163
- package/model/condition.ts +0 -16
- package/model/consequence.ts +0 -22
- package/model/deletedAtResponse.ts +0 -16
- package/model/distinct.ts +0 -6
- package/model/errorBase.ts +0 -8
- package/model/exactOnSingleWordQuery.ts +0 -6
- package/model/exhaustive.ts +0 -31
- package/model/facetFilters.ts +0 -6
- package/model/facetOrdering.ts +0 -16
- package/model/facetStats.ts +0 -23
- package/model/fallbackParams.ts +0 -5
- package/model/fbtModel.ts +0 -6
- package/model/frequentlyBoughtTogether.ts +0 -12
- package/model/getRecommendTaskResponse.ts +0 -7
- package/model/getRecommendationsParams.ts +0 -13
- package/model/getRecommendationsResponse.ts +0 -7
- package/model/hideConsequenceObject.ts +0 -11
- package/model/highlightResult.ts +0 -5
- package/model/highlightResultOption.ts +0 -25
- package/model/ignorePlurals.ts +0 -9
- package/model/index.ts +0 -101
- package/model/indexSettingsFacets.ts +0 -11
- package/model/lookingSimilar.ts +0 -15
- package/model/lookingSimilarModel.ts +0 -6
- package/model/lookingSimilarQuery.ts +0 -6
- package/model/matchLevel.ts +0 -6
- package/model/matchedGeoLocation.ts +0 -18
- package/model/numericFilters.ts +0 -6
- package/model/optionalFilters.ts +0 -6
- package/model/paramsConsequence.ts +0 -23
- package/model/personalization.ts +0 -18
- package/model/promoteConsequenceObject.ts +0 -16
- package/model/queryType.ts +0 -6
- package/model/range.ts +0 -16
- package/model/rankingInfo.ts +0 -68
- package/model/reRankingApplyFilter.ts +0 -6
- package/model/recommendHit.ts +0 -34
- package/model/recommendIndexSettings.ts +0 -9
- package/model/recommendModels.ts +0 -3
- package/model/recommendRule.ts +0 -37
- package/model/recommendSearchParams.ts +0 -10
- package/model/recommendUpdatedAtResponse.ts +0 -16
- package/model/recommendationsHit.ts +0 -7
- package/model/recommendationsHits.ts +0 -7
- package/model/recommendationsRequest.ts +0 -18
- package/model/recommendationsResults.ts +0 -7
- package/model/recommendedForYou.ts +0 -10
- package/model/recommendedForYouModel.ts +0 -6
- package/model/recommendedForYouQuery.ts +0 -6
- package/model/redirect.ts +0 -10
- package/model/redirectRuleIndexData.ts +0 -8
- package/model/redirectRuleIndexMetadata.ts +0 -27
- package/model/redirectURL.ts +0 -8
- package/model/relatedModel.ts +0 -6
- package/model/relatedProducts.ts +0 -15
- package/model/relatedQuery.ts +0 -6
- package/model/removeStopWords.ts +0 -8
- package/model/removeWordsIfNoResults.ts +0 -6
- package/model/renderingContent.ts +0 -16
- package/model/ruleMetadata.ts +0 -11
- package/model/searchPagination.ts +0 -23
- package/model/searchParamsQuery.ts +0 -8
- package/model/searchRecommendRulesParams.ts +0 -46
- package/model/searchRecommendRulesResponse.ts +0 -25
- package/model/snippetResult.ts +0 -5
- package/model/snippetResultOption.ts +0 -15
- package/model/sortRemainingBy.ts +0 -6
- package/model/supportedLanguage.ts +0 -74
- package/model/tagFilters.ts +0 -6
- package/model/taskStatus.ts +0 -6
- package/model/timeRange.ts +0 -13
- package/model/trendingFacetHit.ts +0 -21
- package/model/trendingFacets.ts +0 -15
- package/model/trendingFacetsModel.ts +0 -6
- package/model/trendingFacetsQuery.ts +0 -6
- package/model/trendingItems.ts +0 -20
- package/model/trendingItemsModel.ts +0 -6
- package/model/trendingItemsQuery.ts +0 -6
- package/model/typoTolerance.ts +0 -8
- package/model/typoToleranceEnum.ts +0 -6
- package/model/value.ts +0 -17
- package/model/widgets.ts +0 -13
|
@@ -1,184 +0,0 @@
|
|
|
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 { AdvancedSyntaxFeatures } from './advancedSyntaxFeatures';
|
|
4
|
-
import type { AlternativesAsExact } from './alternativesAsExact';
|
|
5
|
-
import type { Distinct } from './distinct';
|
|
6
|
-
import type { ExactOnSingleWordQuery } from './exactOnSingleWordQuery';
|
|
7
|
-
import type { IgnorePlurals } from './ignorePlurals';
|
|
8
|
-
import type { QueryType } from './queryType';
|
|
9
|
-
import type { ReRankingApplyFilter } from './reRankingApplyFilter';
|
|
10
|
-
import type { RemoveStopWords } from './removeStopWords';
|
|
11
|
-
import type { RemoveWordsIfNoResults } from './removeWordsIfNoResults';
|
|
12
|
-
import type { RenderingContent } from './renderingContent';
|
|
13
|
-
import type { SupportedLanguage } from './supportedLanguage';
|
|
14
|
-
import type { TypoTolerance } from './typoTolerance';
|
|
15
|
-
|
|
16
|
-
export type BaseRecommendIndexSettings = {
|
|
17
|
-
/**
|
|
18
|
-
* 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.
|
|
19
|
-
*/
|
|
20
|
-
attributesToRetrieve?: Array<string>;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* 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/).
|
|
24
|
-
*/
|
|
25
|
-
ranking?: Array<string>;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Relevancy threshold below which less relevant results aren\'t included in the results. You can only set `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas). Use this setting to strike a balance between the relevance and number of returned results.
|
|
29
|
-
*/
|
|
30
|
-
relevancyStrictness?: number;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* 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/).
|
|
34
|
-
*/
|
|
35
|
-
attributesToHighlight?: Array<string>;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* 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.
|
|
39
|
-
*/
|
|
40
|
-
attributesToSnippet?: Array<string>;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* HTML tag to insert before the highlighted parts in all highlighted results and snippets.
|
|
44
|
-
*/
|
|
45
|
-
highlightPreTag?: string;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* HTML tag to insert after the highlighted parts in all highlighted results and snippets.
|
|
49
|
-
*/
|
|
50
|
-
highlightPostTag?: string;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* String used as an ellipsis indicator when a snippet is truncated.
|
|
54
|
-
*/
|
|
55
|
-
snippetEllipsisText?: string;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Whether to restrict highlighting and snippeting to items that at least partially matched the search query. By default, all items are highlighted and snippeted.
|
|
59
|
-
*/
|
|
60
|
-
restrictHighlightAndSnippetArrays?: boolean;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Minimum number of characters a word in the search query must contain to accept matches with [one typo](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/in-depth/configuring-typo-tolerance/#configuring-word-length-for-typos).
|
|
64
|
-
*/
|
|
65
|
-
minWordSizefor1Typo?: number;
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Minimum number of characters a word in the search query must contain to accept matches with [two typos](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/in-depth/configuring-typo-tolerance/#configuring-word-length-for-typos).
|
|
69
|
-
*/
|
|
70
|
-
minWordSizefor2Typos?: number;
|
|
71
|
-
|
|
72
|
-
typoTolerance?: TypoTolerance;
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Whether to allow typos on numbers in the search query. Turn off this setting to reduce the number of irrelevant matches when searching in large sets of similar numbers.
|
|
76
|
-
*/
|
|
77
|
-
allowTyposOnNumericTokens?: boolean;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* 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.
|
|
81
|
-
*/
|
|
82
|
-
disableTypoToleranceOnAttributes?: Array<string>;
|
|
83
|
-
|
|
84
|
-
ignorePlurals?: IgnorePlurals;
|
|
85
|
-
|
|
86
|
-
removeStopWords?: RemoveStopWords;
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` settings. This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) languages. To support this, you must place the CJK language **first**. **You should always specify a query language.** If you don\'t specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/), or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/).
|
|
90
|
-
*/
|
|
91
|
-
queryLanguages?: Array<SupportedLanguage>;
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* 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).
|
|
95
|
-
*/
|
|
96
|
-
decompoundQuery?: boolean;
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Whether to enable rules.
|
|
100
|
-
*/
|
|
101
|
-
enableRules?: boolean;
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* Whether to enable Personalization.
|
|
105
|
-
*/
|
|
106
|
-
enablePersonalization?: boolean;
|
|
107
|
-
|
|
108
|
-
queryType?: QueryType;
|
|
109
|
-
|
|
110
|
-
removeWordsIfNoResults?: RemoveWordsIfNoResults;
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Whether to support phrase matching and excluding words from search queries. Use the `advancedSyntaxFeatures` parameter to control which feature is supported.
|
|
114
|
-
*/
|
|
115
|
-
advancedSyntax?: boolean;
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Words that should be considered optional when found in the query. By default, records must match all words in the search query to be included in the search results. Adding optional words can help to increase the number of search results by running an additional search query that doesn\'t include the optional words. For example, if the search query is \"action video\" and \"video\" is an optional word, the search engine runs two queries. One for \"action video\" and one for \"action\". Records that match all words are ranked higher. For a search query with 4 or more words **and** all its words are optional, the number of matched words required for a record to be included in the search results increases for every 1,000 records: - If `optionalWords` has less than 10 words, the required number of matched words increases by 1: results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 2 matched words. - If `optionalWords` has 10 or more words, the number of required matched words increases by the number of optional words divided by 5 (rounded down). For example, with 18 optional words: results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 4 matched words. For more information, see [Optional words](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/#creating-a-list-of-optional-words).
|
|
119
|
-
*/
|
|
120
|
-
optionalWords?: Array<string>;
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* 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.
|
|
124
|
-
*/
|
|
125
|
-
disableExactOnAttributes?: Array<string>;
|
|
126
|
-
|
|
127
|
-
exactOnSingleWordQuery?: ExactOnSingleWordQuery;
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* Determine which plurals and synonyms should be considered an exact matches. By default, Algolia treats singular and plural forms of a word, and single-word synonyms, as [exact](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#exact) matches when searching. For example: - \"swimsuit\" and \"swimsuits\" are treated the same - \"swimsuit\" and \"swimwear\" are treated the same (if they are [synonyms](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/adding-synonyms/#regular-synonyms)). - `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.
|
|
131
|
-
*/
|
|
132
|
-
alternativesAsExact?: Array<AlternativesAsExact>;
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* 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.
|
|
136
|
-
*/
|
|
137
|
-
advancedSyntaxFeatures?: Array<AdvancedSyntaxFeatures>;
|
|
138
|
-
|
|
139
|
-
distinct?: Distinct;
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Whether to replace a highlighted word with the matched synonym. By default, the original words are highlighted even if a synonym matches. For example, with `home` as a synonym for `house` and a search for `home`, records matching either \"home\" or \"house\" are included in the search results, and either \"home\" or \"house\" are highlighted. With `replaceSynonymsInHighlight` set to `true`, a search for `home` still matches the same records, but all occurrences of \"house\" are replaced by \"home\" in the highlighted response.
|
|
143
|
-
*/
|
|
144
|
-
replaceSynonymsInHighlight?: boolean;
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* 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.
|
|
148
|
-
*/
|
|
149
|
-
minProximity?: number;
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Properties to include in the API response of `search` and `browse` requests. By default, all response properties are included. To reduce the response size, you can select, which attributes should be included. You can\'t exclude these properties: `message`, `warning`, `cursor`, `serverUsed`, `indexUsed`, `abTestVariantID`, `parsedQuery`, or any property triggered by the `getRankingInfo` parameter. Don\'t exclude properties that you might need in your search UI.
|
|
153
|
-
*/
|
|
154
|
-
responseFields?: Array<string>;
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* 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).
|
|
158
|
-
*/
|
|
159
|
-
maxFacetHits?: number;
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* Maximum number of facet values to return for each facet.
|
|
163
|
-
*/
|
|
164
|
-
maxValuesPerFacet?: number;
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* 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/).
|
|
168
|
-
*/
|
|
169
|
-
sortFacetValuesBy?: string;
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* 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.
|
|
173
|
-
*/
|
|
174
|
-
attributeCriteriaComputedByMinProximity?: boolean;
|
|
175
|
-
|
|
176
|
-
renderingContent?: RenderingContent;
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* Whether this search will use [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/). This setting only has an effect if you activated Dynamic Re-Ranking for this index in the Algolia dashboard.
|
|
180
|
-
*/
|
|
181
|
-
enableReRanking?: boolean;
|
|
182
|
-
|
|
183
|
-
reRankingApplyFilter?: ReRankingApplyFilter | null;
|
|
184
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
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 { RecommendSearchParams } from './recommendSearchParams';
|
|
4
|
-
|
|
5
|
-
export type BaseRecommendRequest = {
|
|
6
|
-
/**
|
|
7
|
-
* Index name (case-sensitive).
|
|
8
|
-
*/
|
|
9
|
-
indexName: string;
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Minimum score a recommendation must have to be included in the response.
|
|
13
|
-
*/
|
|
14
|
-
threshold: number;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Maximum number of recommendations to retrieve. By default, all recommendations are returned and no fallback request is made. Depending on the available recommendations and the other request parameters, the actual number of recommendations may be lower than this value.
|
|
18
|
-
*/
|
|
19
|
-
maxRecommendations?: number;
|
|
20
|
-
|
|
21
|
-
queryParameters?: RecommendSearchParams;
|
|
22
|
-
};
|
|
@@ -1,133 +0,0 @@
|
|
|
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 { AroundPrecision } from './aroundPrecision';
|
|
4
|
-
import type { AroundRadius } from './aroundRadius';
|
|
5
|
-
import type { FacetFilters } from './facetFilters';
|
|
6
|
-
import type { NumericFilters } from './numericFilters';
|
|
7
|
-
import type { OptionalFilters } from './optionalFilters';
|
|
8
|
-
import type { SupportedLanguage } from './supportedLanguage';
|
|
9
|
-
import type { TagFilters } from './tagFilters';
|
|
10
|
-
|
|
11
|
-
export type BaseRecommendSearchParams = {
|
|
12
|
-
/**
|
|
13
|
-
* Keywords to be used instead of the search query to conduct a more broader search. Using the `similarQuery` parameter changes other settings: - `queryType` is set to `prefixNone`. - `removeStopWords` is set to true. - `words` is set as the first ranking criterion. - All remaining words are treated as `optionalWords`. Since the `similarQuery` is supposed to do a broad search, they usually return many results. Combine it with `filters` to narrow down the list of results.
|
|
14
|
-
*/
|
|
15
|
-
similarQuery?: string;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* 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/).
|
|
19
|
-
*/
|
|
20
|
-
filters?: string;
|
|
21
|
-
|
|
22
|
-
facetFilters?: FacetFilters;
|
|
23
|
-
|
|
24
|
-
optionalFilters?: OptionalFilters;
|
|
25
|
-
|
|
26
|
-
numericFilters?: NumericFilters;
|
|
27
|
-
|
|
28
|
-
tagFilters?: TagFilters;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Whether to sum all filter scores. If true, all filter scores are summed. Otherwise, the maximum filter score is kept. For more information, see [filter scores](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/in-depth/filter-scoring/#accumulating-scores-with-sumorfiltersscores).
|
|
32
|
-
*/
|
|
33
|
-
sumOrFiltersScores?: boolean;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Restricts a search to a subset of your searchable attributes. Attribute names are case-sensitive.
|
|
37
|
-
*/
|
|
38
|
-
restrictSearchableAttributes?: Array<string>;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Facets for which to retrieve facet values that match the search criteria and the number of matching facet values. To retrieve all facets, use the wildcard character `*`. For more information, see [facets](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#contextual-facet-values-and-counts).
|
|
42
|
-
*/
|
|
43
|
-
facets?: Array<string>;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Whether faceting should be applied after deduplication with `distinct`. This leads to accurate facet counts when using faceting in combination with `distinct`. It\'s usually better to use `afterDistinct` modifiers in the `attributesForFaceting` setting, as `facetingAfterDistinct` only computes correct facet counts if all records have the same facet values for the `attributeForDistinct`.
|
|
47
|
-
*/
|
|
48
|
-
facetingAfterDistinct?: boolean;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Coordinates for the center of a circle, expressed as a comma-separated string of latitude and longitude. Only records included within a circle around this central location are included in the results. The radius of the circle is determined by the `aroundRadius` and `minimumAroundRadius` settings. This parameter is ignored if you also specify `insidePolygon` or `insideBoundingBox`.
|
|
52
|
-
*/
|
|
53
|
-
aroundLatLng?: string;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Whether to obtain the coordinates from the request\'s IP address.
|
|
57
|
-
*/
|
|
58
|
-
aroundLatLngViaIP?: boolean;
|
|
59
|
-
|
|
60
|
-
aroundRadius?: AroundRadius;
|
|
61
|
-
|
|
62
|
-
aroundPrecision?: AroundPrecision;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Minimum radius (in meters) for a search around a location when `aroundRadius` isn\'t set.
|
|
66
|
-
*/
|
|
67
|
-
minimumAroundRadius?: number;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Coordinates for a rectangular area in which to search. Each bounding box is defined by the two opposite points of its diagonal, and expressed as latitude and longitude pair: `[p1 lat, p1 long, p2 lat, p2 long]`. Provide multiple bounding boxes as nested arrays. For more information, see [rectangular area](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas).
|
|
71
|
-
*/
|
|
72
|
-
insideBoundingBox?: Array<Array<number>>;
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Coordinates of a polygon in which to search. Polygons are defined by 3 to 10,000 points. Each point is represented by its latitude and longitude. Provide multiple polygons as nested arrays. For more information, see [filtering inside polygons](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas). This parameter is ignored if you also specify `insideBoundingBox`.
|
|
76
|
-
*/
|
|
77
|
-
insidePolygon?: Array<Array<number>>;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* ISO language codes that adjust settings that are useful for processing natural language queries (as opposed to keyword searches): - Sets `removeStopWords` and `ignorePlurals` to the list of provided languages. - Sets `removeWordsIfNoResults` to `allOptional`. - Adds a `natural_language` attribute to `ruleContexts` and `analyticsTags`.
|
|
81
|
-
*/
|
|
82
|
-
naturalLanguages?: Array<SupportedLanguage>;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Assigns a rule context to the search query. [Rule contexts](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/how-to/customize-search-results-by-platform/#whats-a-context) are strings that you can use to trigger matching rules.
|
|
86
|
-
*/
|
|
87
|
-
ruleContexts?: Array<string>;
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Impact that Personalization should have on this search. The higher this value is, the more Personalization determines the ranking compared to other factors. For more information, see [Understanding Personalization impact](https://www.algolia.com/doc/guides/personalization/personalizing-results/in-depth/configuring-personalization/#understanding-personalization-impact).
|
|
91
|
-
*/
|
|
92
|
-
personalizationImpact?: number;
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Unique pseudonymous or anonymous user identifier. This helps with analytics and click and conversion events. For more information, see [user token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/).
|
|
96
|
-
*/
|
|
97
|
-
userToken?: string;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Whether the search response should include detailed ranking information.
|
|
101
|
-
*/
|
|
102
|
-
getRankingInfo?: boolean;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Whether to take into account an index\'s synonyms for this search.
|
|
106
|
-
*/
|
|
107
|
-
synonyms?: boolean;
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Whether to include a `queryID` attribute in the response. The query ID is a unique identifier for a search query and is required for tracking [click and conversion events](https://www.algolia.com/guides/sending-events/getting-started/).
|
|
111
|
-
*/
|
|
112
|
-
clickAnalytics?: boolean;
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Whether this search will be included in Analytics.
|
|
116
|
-
*/
|
|
117
|
-
analytics?: boolean;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* Tags to apply to the query for [segmenting analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
|
|
121
|
-
*/
|
|
122
|
-
analyticsTags?: Array<string>;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Whether to include this search when calculating processing-time percentiles.
|
|
126
|
-
*/
|
|
127
|
-
percentileComputation?: boolean;
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* Whether to enable A/B testing for this search.
|
|
131
|
-
*/
|
|
132
|
-
enableABTest?: boolean;
|
|
133
|
-
};
|
|
@@ -1,129 +0,0 @@
|
|
|
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 { Exhaustive } from './exhaustive';
|
|
4
|
-
import type { FacetStats } from './facetStats';
|
|
5
|
-
import type { Redirect } from './redirect';
|
|
6
|
-
import type { RenderingContent } from './renderingContent';
|
|
7
|
-
|
|
8
|
-
export type BaseSearchResponse = Record<string, any> & {
|
|
9
|
-
/**
|
|
10
|
-
* A/B test ID. This is only included in the response for indices that are part of an A/B test.
|
|
11
|
-
*/
|
|
12
|
-
abTestID?: number;
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Variant ID. This is only included in the response for indices that are part of an A/B test.
|
|
16
|
-
*/
|
|
17
|
-
abTestVariantID?: number;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Computed geographical location.
|
|
21
|
-
*/
|
|
22
|
-
aroundLatLng?: string;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Distance from a central coordinate provided by `aroundLatLng`.
|
|
26
|
-
*/
|
|
27
|
-
automaticRadius?: string;
|
|
28
|
-
|
|
29
|
-
exhaustive?: Exhaustive;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Rules applied to the query.
|
|
33
|
-
*/
|
|
34
|
-
appliedRules?: Array<Record<string, unknown>>;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* See the `facetsCount` field of the `exhaustive` object in the response.
|
|
38
|
-
*/
|
|
39
|
-
exhaustiveFacetsCount?: boolean;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* See the `nbHits` field of the `exhaustive` object in the response.
|
|
43
|
-
*/
|
|
44
|
-
exhaustiveNbHits?: boolean;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* See the `typo` field of the `exhaustive` object in the response.
|
|
48
|
-
*/
|
|
49
|
-
exhaustiveTypo?: boolean;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Facet counts.
|
|
53
|
-
*/
|
|
54
|
-
facets?: { [key: string]: { [key: string]: number } };
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Statistics for numerical facets.
|
|
58
|
-
*/
|
|
59
|
-
facets_stats?: { [key: string]: FacetStats };
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Index name used for the query.
|
|
63
|
-
*/
|
|
64
|
-
index?: string;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Index name used for the query. During A/B testing, the targeted index isn\'t always the index used by the query.
|
|
68
|
-
*/
|
|
69
|
-
indexUsed?: string;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Warnings about the query.
|
|
73
|
-
*/
|
|
74
|
-
message?: string;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Number of hits selected and sorted by the relevant sort algorithm.
|
|
78
|
-
*/
|
|
79
|
-
nbSortedHits?: number;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* 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.
|
|
83
|
-
*/
|
|
84
|
-
parsedQuery?: string;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Time the server took to process the request, in milliseconds.
|
|
88
|
-
*/
|
|
89
|
-
processingTimeMS: number;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Experimental. List of processing steps and their times, in milliseconds. You can use this list to investigate performance issues.
|
|
93
|
-
*/
|
|
94
|
-
processingTimingsMS?: Record<string, unknown>;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Markup text indicating which parts of the original query have been removed to retrieve a non-empty result set.
|
|
98
|
-
*/
|
|
99
|
-
queryAfterRemoval?: string;
|
|
100
|
-
|
|
101
|
-
redirect?: Redirect;
|
|
102
|
-
|
|
103
|
-
renderingContent?: RenderingContent;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Time the server took to process the request, in milliseconds.
|
|
107
|
-
*/
|
|
108
|
-
serverTimeMS?: number;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Host name of the server that processed the request.
|
|
112
|
-
*/
|
|
113
|
-
serverUsed?: string;
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* An object with custom data. You can store up to 32kB as custom data.
|
|
117
|
-
*/
|
|
118
|
-
userData?: Record<string, unknown>;
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Unique identifier for the query. This is used for [click analytics](https://www.algolia.com/doc/guides/analytics/click-analytics/).
|
|
122
|
-
*/
|
|
123
|
-
queryID?: string;
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Whether automatic events collection is enabled for the application.
|
|
127
|
-
*/
|
|
128
|
-
_automaticInsights?: boolean;
|
|
129
|
-
};
|
package/model/booleanString.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
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 { FrequentlyBoughtTogether } from './frequentlyBoughtTogether';
|
|
5
|
-
|
|
6
|
-
export type BoughtTogetherQuery = BaseRecommendRequest & FrequentlyBoughtTogether;
|
|
@@ -1,163 +0,0 @@
|
|
|
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 { RecommendModels } from '../model/recommendModels';
|
|
4
|
-
import { RecommendRule } from '../model/recommendRule';
|
|
5
|
-
|
|
6
|
-
import { SearchRecommendRulesParams } from '../model/searchRecommendRulesParams';
|
|
7
|
-
|
|
8
|
-
import type { RecommendationsRequest } from './recommendationsRequest';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Properties for the `batchRecommendRules` method.
|
|
12
|
-
*/
|
|
13
|
-
export type BatchRecommendRulesProps = {
|
|
14
|
-
/**
|
|
15
|
-
* Name of the index on which to perform the operation.
|
|
16
|
-
*/
|
|
17
|
-
indexName: string;
|
|
18
|
-
/**
|
|
19
|
-
* [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
|
|
20
|
-
*/
|
|
21
|
-
model: RecommendModels;
|
|
22
|
-
recommendRule?: Array<RecommendRule>;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Properties for the `customDelete` method.
|
|
27
|
-
*/
|
|
28
|
-
export type CustomDeleteProps = {
|
|
29
|
-
/**
|
|
30
|
-
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
31
|
-
*/
|
|
32
|
-
path: string;
|
|
33
|
-
/**
|
|
34
|
-
* Query parameters to apply to the current query.
|
|
35
|
-
*/
|
|
36
|
-
parameters?: { [key: string]: any };
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Properties for the `customGet` method.
|
|
41
|
-
*/
|
|
42
|
-
export type CustomGetProps = {
|
|
43
|
-
/**
|
|
44
|
-
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
45
|
-
*/
|
|
46
|
-
path: string;
|
|
47
|
-
/**
|
|
48
|
-
* Query parameters to apply to the current query.
|
|
49
|
-
*/
|
|
50
|
-
parameters?: { [key: string]: any };
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Properties for the `customPost` method.
|
|
55
|
-
*/
|
|
56
|
-
export type CustomPostProps = {
|
|
57
|
-
/**
|
|
58
|
-
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
59
|
-
*/
|
|
60
|
-
path: string;
|
|
61
|
-
/**
|
|
62
|
-
* Query parameters to apply to the current query.
|
|
63
|
-
*/
|
|
64
|
-
parameters?: { [key: string]: any };
|
|
65
|
-
/**
|
|
66
|
-
* Parameters to send with the custom request.
|
|
67
|
-
*/
|
|
68
|
-
body?: Record<string, unknown>;
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Properties for the `customPut` method.
|
|
73
|
-
*/
|
|
74
|
-
export type CustomPutProps = {
|
|
75
|
-
/**
|
|
76
|
-
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
77
|
-
*/
|
|
78
|
-
path: string;
|
|
79
|
-
/**
|
|
80
|
-
* Query parameters to apply to the current query.
|
|
81
|
-
*/
|
|
82
|
-
parameters?: { [key: string]: any };
|
|
83
|
-
/**
|
|
84
|
-
* Parameters to send with the custom request.
|
|
85
|
-
*/
|
|
86
|
-
body?: Record<string, unknown>;
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Properties for the `deleteRecommendRule` method.
|
|
91
|
-
*/
|
|
92
|
-
export type DeleteRecommendRuleProps = {
|
|
93
|
-
/**
|
|
94
|
-
* Name of the index on which to perform the operation.
|
|
95
|
-
*/
|
|
96
|
-
indexName: string;
|
|
97
|
-
/**
|
|
98
|
-
* [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
|
|
99
|
-
*/
|
|
100
|
-
model: RecommendModels;
|
|
101
|
-
/**
|
|
102
|
-
* Unique record identifier.
|
|
103
|
-
*/
|
|
104
|
-
objectID: string;
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Properties for the `getRecommendRule` method.
|
|
109
|
-
*/
|
|
110
|
-
export type GetRecommendRuleProps = {
|
|
111
|
-
/**
|
|
112
|
-
* Name of the index on which to perform the operation.
|
|
113
|
-
*/
|
|
114
|
-
indexName: string;
|
|
115
|
-
/**
|
|
116
|
-
* [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
|
|
117
|
-
*/
|
|
118
|
-
model: RecommendModels;
|
|
119
|
-
/**
|
|
120
|
-
* Unique record identifier.
|
|
121
|
-
*/
|
|
122
|
-
objectID: string;
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Properties for the `getRecommendStatus` method.
|
|
127
|
-
*/
|
|
128
|
-
export type GetRecommendStatusProps = {
|
|
129
|
-
/**
|
|
130
|
-
* Name of the index on which to perform the operation.
|
|
131
|
-
*/
|
|
132
|
-
indexName: string;
|
|
133
|
-
/**
|
|
134
|
-
* [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
|
|
135
|
-
*/
|
|
136
|
-
model: RecommendModels;
|
|
137
|
-
/**
|
|
138
|
-
* Unique task identifier.
|
|
139
|
-
*/
|
|
140
|
-
taskID: number;
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Recommend method signature compatible with the `algoliasearch` v4 package. When using this signature, extra computation will be required to make it match the new signature.
|
|
145
|
-
*
|
|
146
|
-
* @deprecated This signature will be removed from the next major version, we recommend using the `GetRecommendationsParams` type for performances and future proof reasons.
|
|
147
|
-
*/
|
|
148
|
-
export type LegacyGetRecommendationsParams = RecommendationsRequest[];
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Properties for the `searchRecommendRules` method.
|
|
152
|
-
*/
|
|
153
|
-
export type SearchRecommendRulesProps = {
|
|
154
|
-
/**
|
|
155
|
-
* Name of the index on which to perform the operation.
|
|
156
|
-
*/
|
|
157
|
-
indexName: string;
|
|
158
|
-
/**
|
|
159
|
-
* [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
|
|
160
|
-
*/
|
|
161
|
-
model: RecommendModels;
|
|
162
|
-
searchRecommendRulesParams?: SearchRecommendRulesParams;
|
|
163
|
-
};
|