@algolia/recommend 5.0.0-alpha.99 → 5.0.0-beta.2

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.
Files changed (275) hide show
  1. package/dist/builds/browser.d.ts +21 -3
  2. package/dist/builds/browser.d.ts.map +1 -1
  3. package/dist/builds/node.d.ts +21 -3
  4. package/dist/builds/node.d.ts.map +1 -1
  5. package/dist/model/aroundPrecision.d.ts +1 -1
  6. package/dist/model/aroundPrecisionFromValueInner.d.ts +9 -0
  7. package/dist/model/aroundPrecisionFromValueInner.d.ts.map +1 -1
  8. package/dist/model/aroundRadius.d.ts +1 -1
  9. package/dist/model/aroundRadiusAll.d.ts +3 -0
  10. package/dist/model/aroundRadiusAll.d.ts.map +1 -1
  11. package/dist/model/autoFacetFilter.d.ts +14 -0
  12. package/dist/model/autoFacetFilter.d.ts.map +1 -0
  13. package/dist/model/baseRecommendRequest.d.ts +6 -4
  14. package/dist/model/baseRecommendRequest.d.ts.map +1 -1
  15. package/dist/model/baseSearchParamsWithoutQuery.d.ts +26 -29
  16. package/dist/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  17. package/dist/model/baseSearchResponse.d.ts +10 -6
  18. package/dist/model/baseSearchResponse.d.ts.map +1 -1
  19. package/dist/model/boughtTogetherQuery.d.ts +4 -0
  20. package/dist/model/boughtTogetherQuery.d.ts.map +1 -0
  21. package/dist/model/clientMethodProps.d.ts +11 -11
  22. package/dist/model/condition.d.ts +6 -9
  23. package/dist/model/condition.d.ts.map +1 -1
  24. package/dist/model/consequence.d.ts +9 -17
  25. package/dist/model/consequence.d.ts.map +1 -1
  26. package/dist/model/deletedAtResponse.d.ts +2 -2
  27. package/dist/model/distinct.d.ts +1 -1
  28. package/dist/model/exactOnSingleWordQuery.d.ts +1 -1
  29. package/dist/model/facetFilters.d.ts +2 -3
  30. package/dist/model/facetFilters.d.ts.map +1 -1
  31. package/dist/model/facetOrdering.d.ts +2 -2
  32. package/dist/model/facets.d.ts +2 -2
  33. package/dist/model/fallbackParams.d.ts +3 -0
  34. package/dist/model/fallbackParams.d.ts.map +1 -0
  35. package/dist/model/fbtModel.d.ts +5 -0
  36. package/dist/model/fbtModel.d.ts.map +1 -0
  37. package/dist/model/frequentlyBoughtTogether.d.ts +9 -0
  38. package/dist/model/frequentlyBoughtTogether.d.ts.map +1 -0
  39. package/dist/model/getRecommendationsParams.d.ts +2 -2
  40. package/dist/model/hideConsequenceObject.d.ts +10 -0
  41. package/dist/model/hideConsequenceObject.d.ts.map +1 -0
  42. package/dist/model/highlightResult.d.ts +1 -1
  43. package/dist/model/highlightResult.d.ts.map +1 -1
  44. package/dist/model/highlightResultOption.d.ts +3 -3
  45. package/dist/model/ignorePlurals.d.ts +3 -2
  46. package/dist/model/ignorePlurals.d.ts.map +1 -1
  47. package/dist/model/index.d.ts +21 -24
  48. package/dist/model/index.d.ts.map +1 -1
  49. package/dist/model/indexSettingsAsSearchParams.d.ts +32 -35
  50. package/dist/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  51. package/dist/model/lookingSimilar.d.ts +11 -0
  52. package/dist/model/lookingSimilar.d.ts.map +1 -0
  53. package/dist/model/lookingSimilarModel.d.ts +5 -0
  54. package/dist/model/lookingSimilarModel.d.ts.map +1 -0
  55. package/dist/model/lookingSimilarQuery.d.ts +4 -0
  56. package/dist/model/lookingSimilarQuery.d.ts.map +1 -0
  57. package/dist/model/matchLevel.d.ts +1 -1
  58. package/dist/model/mode.d.ts +1 -1
  59. package/dist/model/numericFilters.d.ts +2 -3
  60. package/dist/model/numericFilters.d.ts.map +1 -1
  61. package/dist/model/optionalFilters.d.ts +2 -3
  62. package/dist/model/optionalFilters.d.ts.map +1 -1
  63. package/dist/model/paramsConsequence.d.ts +19 -0
  64. package/dist/model/paramsConsequence.d.ts.map +1 -0
  65. package/dist/model/promoteConsequenceObject.d.ts +14 -0
  66. package/dist/model/promoteConsequenceObject.d.ts.map +1 -0
  67. package/dist/model/queryType.d.ts +1 -1
  68. package/dist/model/rankingInfo.d.ts +10 -7
  69. package/dist/model/rankingInfo.d.ts.map +1 -1
  70. package/dist/model/reRankingApplyFilter.d.ts +2 -3
  71. package/dist/model/reRankingApplyFilter.d.ts.map +1 -1
  72. package/dist/model/recommendHit.d.ts +3 -3
  73. package/dist/model/recommendRule.d.ts +24 -0
  74. package/dist/model/recommendRule.d.ts.map +1 -0
  75. package/dist/model/recommendRuleMetadata.d.ts +10 -0
  76. package/dist/model/recommendRuleMetadata.d.ts.map +1 -0
  77. package/dist/model/recommendationsHits.d.ts +0 -8
  78. package/dist/model/recommendationsHits.d.ts.map +1 -1
  79. package/dist/model/recommendationsRequest.d.ts +4 -2
  80. package/dist/model/recommendationsRequest.d.ts.map +1 -1
  81. package/dist/model/recommendedForYou.d.ts +7 -0
  82. package/dist/model/recommendedForYou.d.ts.map +1 -0
  83. package/dist/model/recommendedForYouModel.d.ts +1 -1
  84. package/dist/model/recommendedForYouQuery.d.ts +2 -2
  85. package/dist/model/recommendedForYouQuery.d.ts.map +1 -1
  86. package/dist/model/relatedModel.d.ts +5 -0
  87. package/dist/model/relatedModel.d.ts.map +1 -0
  88. package/dist/model/relatedProducts.d.ts +11 -0
  89. package/dist/model/relatedProducts.d.ts.map +1 -0
  90. package/dist/model/relatedQuery.d.ts +4 -0
  91. package/dist/model/relatedQuery.d.ts.map +1 -0
  92. package/dist/model/removeStopWords.d.ts +3 -2
  93. package/dist/model/removeStopWords.d.ts.map +1 -1
  94. package/dist/model/removeWordsIfNoResults.d.ts +1 -1
  95. package/dist/model/renderingContent.d.ts +1 -1
  96. package/dist/model/searchParams.d.ts +3 -0
  97. package/dist/model/searchParams.d.ts.map +1 -0
  98. package/dist/model/searchParamsObject.d.ts +3 -0
  99. package/dist/model/searchParamsObject.d.ts.map +1 -1
  100. package/dist/model/searchParamsQuery.d.ts +1 -1
  101. package/dist/model/searchRecommendRulesParams.d.ts +18 -6
  102. package/dist/model/searchRecommendRulesParams.d.ts.map +1 -1
  103. package/dist/model/searchRecommendRulesResponse.d.ts +6 -6
  104. package/dist/model/searchRecommendRulesResponse.d.ts.map +1 -1
  105. package/dist/model/semanticSearch.d.ts +2 -2
  106. package/dist/model/snippetResult.d.ts +1 -1
  107. package/dist/model/snippetResult.d.ts.map +1 -1
  108. package/dist/model/snippetResultOption.d.ts +2 -2
  109. package/dist/model/sortRemainingBy.d.ts +1 -1
  110. package/dist/model/supportedLanguage.d.ts +5 -0
  111. package/dist/model/supportedLanguage.d.ts.map +1 -0
  112. package/dist/model/tagFilters.d.ts +2 -3
  113. package/dist/model/tagFilters.d.ts.map +1 -1
  114. package/dist/model/taskStatus.d.ts +1 -1
  115. package/dist/model/trendingFacetHit.d.ts +2 -2
  116. package/dist/model/trendingFacets.d.ts +11 -0
  117. package/dist/model/trendingFacets.d.ts.map +1 -0
  118. package/dist/model/trendingFacetsModel.d.ts +1 -1
  119. package/dist/model/trendingFacetsQuery.d.ts +2 -2
  120. package/dist/model/trendingFacetsQuery.d.ts.map +1 -1
  121. package/dist/model/trendingItems.d.ts +15 -0
  122. package/dist/model/trendingItems.d.ts.map +1 -0
  123. package/dist/model/trendingItemsModel.d.ts +1 -1
  124. package/dist/model/trendingItemsQuery.d.ts +2 -2
  125. package/dist/model/trendingItemsQuery.d.ts.map +1 -1
  126. package/dist/model/typoTolerance.d.ts +1 -1
  127. package/dist/model/typoToleranceEnum.d.ts +3 -0
  128. package/dist/model/typoToleranceEnum.d.ts.map +1 -1
  129. package/dist/model/value.d.ts +1 -1
  130. package/dist/recommend.cjs +54 -45
  131. package/dist/recommend.esm.browser.js +42 -38
  132. package/dist/recommend.esm.node.js +54 -45
  133. package/dist/recommend.umd.js +2 -2
  134. package/dist/src/recommendClient.d.ts +34 -32
  135. package/dist/src/recommendClient.d.ts.map +1 -1
  136. package/model/aroundPrecision.ts +1 -1
  137. package/model/aroundPrecisionFromValueInner.ts +9 -0
  138. package/model/aroundRadius.ts +1 -1
  139. package/model/aroundRadiusAll.ts +3 -0
  140. package/model/autoFacetFilter.ts +16 -0
  141. package/model/baseRecommendRequest.ts +8 -4
  142. package/model/baseSearchParamsWithoutQuery.ts +26 -30
  143. package/model/baseSearchResponse.ts +11 -6
  144. package/model/{recommendationsQuery.ts → boughtTogetherQuery.ts} +3 -3
  145. package/model/clientMethodProps.ts +11 -11
  146. package/model/condition.ts +6 -12
  147. package/model/consequence.ts +9 -19
  148. package/model/deletedAtResponse.ts +2 -2
  149. package/model/distinct.ts +1 -1
  150. package/model/exactOnSingleWordQuery.ts +1 -1
  151. package/model/facetFilters.ts +2 -4
  152. package/model/facetOrdering.ts +2 -2
  153. package/model/facets.ts +2 -2
  154. package/model/{recommendationModels.ts → fallbackParams.ts} +3 -4
  155. package/model/fbtModel.ts +6 -0
  156. package/model/{consequenceHide.ts → frequentlyBoughtTogether.ts} +6 -5
  157. package/model/getRecommendationsParams.ts +2 -2
  158. package/model/{editType.ts → hideConsequenceObject.ts} +7 -2
  159. package/model/highlightResult.ts +1 -0
  160. package/model/highlightResultOption.ts +3 -3
  161. package/model/ignorePlurals.ts +4 -2
  162. package/model/index.ts +21 -24
  163. package/model/indexSettingsAsSearchParams.ts +32 -36
  164. package/model/lookingSimilar.ts +15 -0
  165. package/model/lookingSimilarModel.ts +6 -0
  166. package/model/lookingSimilarQuery.ts +6 -0
  167. package/model/matchLevel.ts +1 -1
  168. package/model/mode.ts +1 -1
  169. package/model/numericFilters.ts +2 -4
  170. package/model/optionalFilters.ts +2 -4
  171. package/model/paramsConsequence.ts +23 -0
  172. package/model/promoteConsequenceObject.ts +16 -0
  173. package/model/queryType.ts +1 -1
  174. package/model/rankingInfo.ts +10 -7
  175. package/model/reRankingApplyFilter.ts +2 -4
  176. package/model/recommendHit.ts +3 -3
  177. package/model/{ruleResponse.ts → recommendRule.ts} +7 -10
  178. package/model/{ruleResponseMetadata.ts → recommendRuleMetadata.ts} +5 -2
  179. package/model/recommendationsHits.ts +0 -10
  180. package/model/recommendationsRequest.ts +6 -2
  181. package/model/{baseRecommendedForYouQuery.ts → recommendedForYou.ts} +3 -5
  182. package/model/recommendedForYouModel.ts +1 -1
  183. package/model/recommendedForYouQuery.ts +2 -3
  184. package/model/relatedModel.ts +6 -0
  185. package/model/relatedProducts.ts +15 -0
  186. package/model/relatedQuery.ts +6 -0
  187. package/model/removeStopWords.ts +4 -2
  188. package/model/removeWordsIfNoResults.ts +1 -1
  189. package/model/renderingContent.ts +1 -1
  190. package/model/{mixedSearchFilters.ts → searchParams.ts} +3 -1
  191. package/model/searchParamsObject.ts +3 -0
  192. package/model/searchParamsQuery.ts +1 -1
  193. package/model/searchRecommendRulesParams.ts +21 -6
  194. package/model/searchRecommendRulesResponse.ts +6 -6
  195. package/model/semanticSearch.ts +2 -2
  196. package/model/snippetResult.ts +2 -1
  197. package/model/snippetResultOption.ts +2 -2
  198. package/model/sortRemainingBy.ts +1 -1
  199. package/model/supportedLanguage.ts +74 -0
  200. package/model/tagFilters.ts +2 -4
  201. package/model/taskStatus.ts +1 -1
  202. package/model/trendingFacetHit.ts +2 -2
  203. package/model/{baseTrendingFacetsQuery.ts → trendingFacets.ts} +7 -4
  204. package/model/trendingFacetsModel.ts +1 -1
  205. package/model/trendingFacetsQuery.ts +2 -3
  206. package/model/trendingItems.ts +20 -0
  207. package/model/trendingItemsModel.ts +1 -1
  208. package/model/trendingItemsQuery.ts +2 -2
  209. package/model/typoTolerance.ts +1 -1
  210. package/model/typoToleranceEnum.ts +3 -0
  211. package/model/value.ts +1 -1
  212. package/package.json +7 -7
  213. package/dist/model/anchoring.d.ts +0 -5
  214. package/dist/model/anchoring.d.ts.map +0 -1
  215. package/dist/model/automaticFacetFilter.d.ts +0 -18
  216. package/dist/model/automaticFacetFilter.d.ts.map +0 -1
  217. package/dist/model/automaticFacetFilters.d.ts +0 -6
  218. package/dist/model/automaticFacetFilters.d.ts.map +0 -1
  219. package/dist/model/baseRecommendationsQuery.d.ts +0 -12
  220. package/dist/model/baseRecommendationsQuery.d.ts.map +0 -1
  221. package/dist/model/baseRecommendedForYouQuery.d.ts +0 -8
  222. package/dist/model/baseRecommendedForYouQuery.d.ts.map +0 -1
  223. package/dist/model/baseRecommendedForYouQueryParameters.d.ts +0 -7
  224. package/dist/model/baseRecommendedForYouQueryParameters.d.ts.map +0 -1
  225. package/dist/model/baseTrendingFacetsQuery.d.ts +0 -9
  226. package/dist/model/baseTrendingFacetsQuery.d.ts.map +0 -1
  227. package/dist/model/baseTrendingItemsQuery.d.ts +0 -16
  228. package/dist/model/baseTrendingItemsQuery.d.ts.map +0 -1
  229. package/dist/model/consequenceHide.d.ts +0 -10
  230. package/dist/model/consequenceHide.d.ts.map +0 -1
  231. package/dist/model/consequenceParams.d.ts +0 -5
  232. package/dist/model/consequenceParams.d.ts.map +0 -1
  233. package/dist/model/consequenceQuery.d.ts +0 -6
  234. package/dist/model/consequenceQuery.d.ts.map +0 -1
  235. package/dist/model/consequenceQueryObject.d.ts +0 -12
  236. package/dist/model/consequenceQueryObject.d.ts.map +0 -1
  237. package/dist/model/edit.d.ts +0 -13
  238. package/dist/model/edit.d.ts.map +0 -1
  239. package/dist/model/editType.d.ts +0 -5
  240. package/dist/model/editType.d.ts.map +0 -1
  241. package/dist/model/mixedSearchFilters.d.ts +0 -2
  242. package/dist/model/mixedSearchFilters.d.ts.map +0 -1
  243. package/dist/model/params.d.ts +0 -13
  244. package/dist/model/params.d.ts.map +0 -1
  245. package/dist/model/promote.d.ts +0 -4
  246. package/dist/model/promote.d.ts.map +0 -1
  247. package/dist/model/promoteObjectID.d.ts +0 -14
  248. package/dist/model/promoteObjectID.d.ts.map +0 -1
  249. package/dist/model/promoteObjectIDs.d.ts +0 -14
  250. package/dist/model/promoteObjectIDs.d.ts.map +0 -1
  251. package/dist/model/recommendationModels.d.ts +0 -5
  252. package/dist/model/recommendationModels.d.ts.map +0 -1
  253. package/dist/model/recommendationsQuery.d.ts +0 -4
  254. package/dist/model/recommendationsQuery.d.ts.map +0 -1
  255. package/dist/model/recommendedForYouQueryParameters.d.ts +0 -4
  256. package/dist/model/recommendedForYouQueryParameters.d.ts.map +0 -1
  257. package/dist/model/ruleResponse.d.ts +0 -27
  258. package/dist/model/ruleResponse.d.ts.map +0 -1
  259. package/dist/model/ruleResponseMetadata.d.ts +0 -7
  260. package/dist/model/ruleResponseMetadata.d.ts.map +0 -1
  261. package/model/anchoring.ts +0 -6
  262. package/model/automaticFacetFilter.ts +0 -21
  263. package/model/automaticFacetFilters.ts +0 -8
  264. package/model/baseRecommendationsQuery.ts +0 -17
  265. package/model/baseRecommendedForYouQueryParameters.ts +0 -8
  266. package/model/baseTrendingItemsQuery.ts +0 -22
  267. package/model/consequenceParams.ts +0 -9
  268. package/model/consequenceQuery.ts +0 -8
  269. package/model/consequenceQueryObject.ts +0 -15
  270. package/model/edit.ts +0 -17
  271. package/model/params.ts +0 -18
  272. package/model/promote.ts +0 -6
  273. package/model/promoteObjectID.ts +0 -16
  274. package/model/promoteObjectIDs.ts +0 -16
  275. package/model/recommendedForYouQueryParameters.ts +0 -7
@@ -5,16 +5,17 @@ import type { AroundRadius } from './aroundRadius';
5
5
  import type { FacetFilters } from './facetFilters';
6
6
  import type { NumericFilters } from './numericFilters';
7
7
  import type { OptionalFilters } from './optionalFilters';
8
+ import type { SupportedLanguage } from './supportedLanguage';
8
9
  import type { TagFilters } from './tagFilters';
9
10
 
10
11
  export type BaseSearchParamsWithoutQuery = {
11
12
  /**
12
- * Overrides the query parameter and performs a more generic search.
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.
13
14
  */
14
15
  similarQuery?: string;
15
16
 
16
17
  /**
17
- * [Filter](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/) the query with numeric, facet, or tag filters.
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/).
18
19
  */
19
20
  filters?: string;
20
21
 
@@ -27,47 +28,47 @@ export type BaseSearchParamsWithoutQuery = {
27
28
  tagFilters?: TagFilters;
28
29
 
29
30
  /**
30
- * Determines how to calculate [filter scores](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/in-depth/filter-scoring/#accumulating-scores-with-sumorfiltersscores). If `false`, maximum score is kept. If `true`, score is summed.
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).
31
32
  */
32
33
  sumOrFiltersScores?: boolean;
33
34
 
34
35
  /**
35
- * Restricts a query to only look at a subset of your [searchable attributes](https://www.algolia.com/doc/guides/managing-results/must-do/searchable-attributes/).
36
+ * Restricts a search to a subset of your searchable attributes. Attribute names are case-sensitive.
36
37
  */
37
38
  restrictSearchableAttributes?: string[];
38
39
 
39
40
  /**
40
- * Returns [facets](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#contextual-facet-values-and-counts), their facet values, and the number of matching facet values.
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).
41
42
  */
42
43
  facets?: string[];
43
44
 
44
45
  /**
45
- * Forces faceting to be applied after [de-duplication](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/) (with the distinct feature). Alternatively, the `afterDistinct` [modifier](https://www.algolia.com/doc/api-reference/api-parameters/attributesForFaceting/#modifiers) of `attributesForFaceting` allows for more granular control.
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`.
46
47
  */
47
48
  facetingAfterDistinct?: boolean;
48
49
 
49
50
  /**
50
- * Page to retrieve (the first page is `0`, not `1`).
51
+ * Page of search results to retrieve.
51
52
  */
52
53
  page?: number;
53
54
 
54
55
  /**
55
- * Specifies the offset of the first hit to return. > **Note**: Using `page` and `hitsPerPage` is the recommended method for [paging results](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/). However, you can use `offset` and `length` to implement [an alternative approach to paging](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/#retrieving-a-subset-of-records-with-offset-and-length).
56
+ * Position of the first hit to retrieve.
56
57
  */
57
58
  offset?: number;
58
59
 
59
60
  /**
60
- * Sets the number of hits to retrieve (for use with `offset`). > **Note**: Using `page` and `hitsPerPage` is the recommended method for [paging results](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/). However, you can use `offset` and `length` to implement [an alternative approach to paging](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/#retrieving-a-subset-of-records-with-offset-and-length).
61
+ * Number of hits to retrieve (used in combination with `offset`).
61
62
  */
62
63
  length?: number;
63
64
 
64
65
  /**
65
- * Search for entries [around a central location](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filter-around-a-central-point), enabling a geographical search within a circular area.
66
+ * Coordinates for the center of a circle, expressed as a comma-separated string of latitude and longitude. Only records included within 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`.
66
67
  */
67
68
  aroundLatLng?: string;
68
69
 
69
70
  /**
70
- * Search for entries around a location. The location is automatically computed from the requester\'s IP address.
71
+ * Whether to obtain the coordinates from the request\'s IP address.
71
72
  */
72
73
  aroundLatLngViaIP?: boolean;
73
74
 
@@ -76,62 +77,57 @@ export type BaseSearchParamsWithoutQuery = {
76
77
  aroundPrecision?: AroundPrecision;
77
78
 
78
79
  /**
79
- * Minimum radius (in meters) used for a geographical search when `aroundRadius` isn\'t set.
80
+ * Minimum radius (in meters) for a search around a location when `aroundRadius` isn\'t set.
80
81
  */
81
82
  minimumAroundRadius?: number;
82
83
 
83
84
  /**
84
- * Search inside a [rectangular area](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas) (in geographical coordinates).
85
+ * 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).
85
86
  */
86
87
  insideBoundingBox?: number[][];
87
88
 
88
89
  /**
89
- * Search inside a [polygon](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas) (in geographical coordinates).
90
+ * 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`.
90
91
  */
91
92
  insidePolygon?: number[][];
92
93
 
93
94
  /**
94
- * Changes the default values of parameters that work best for a natural language query, such as `ignorePlurals`, `removeStopWords`, `removeWordsIfNoResults`, `analyticsTags`, and `ruleContexts`. These parameters work well together when the query consists of fuller natural language strings instead of keywords, for example when processing voice search queries.
95
+ * 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`.
95
96
  */
96
- naturalLanguages?: string[];
97
+ naturalLanguages?: SupportedLanguage[];
97
98
 
98
99
  /**
99
- * Assigns [rule contexts](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/how-to/customize-search-results-by-platform/#whats-a-context) to search queries.
100
+ * 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.
100
101
  */
101
102
  ruleContexts?: string[];
102
103
 
103
104
  /**
104
- * Defines how much [Personalization affects results](https://www.algolia.com/doc/guides/personalization/personalizing-results/in-depth/configuring-personalization/#understanding-personalization-impact).
105
+ * 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).
105
106
  */
106
107
  personalizationImpact?: number;
107
108
 
108
109
  /**
109
- * Associates a [user token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/) with the current search.
110
+ * 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/).
110
111
  */
111
112
  userToken?: string;
112
113
 
113
114
  /**
114
- * Incidates whether the search response includes [detailed ranking information](https://www.algolia.com/doc/guides/building-search-ui/going-further/backend-search/in-depth/understanding-the-api-response/#ranking-information).
115
+ * Whether the search response should include detailed ranking information.
115
116
  */
116
117
  getRankingInfo?: boolean;
117
118
 
118
119
  /**
119
- * Enriches the API\'s response with information about how the query was processed.
120
- */
121
- explain?: string[];
122
-
123
- /**
124
- * Whether to take into account an index\'s synonyms for a particular search.
120
+ * Whether to take into account an index\'s synonyms for this search.
125
121
  */
126
122
  synonyms?: boolean;
127
123
 
128
124
  /**
129
- * Indicates whether a query ID parameter is included in the search response. This is required for [tracking click and conversion events](https://www.algolia.com/doc/guides/sending-events/concepts/event-types/#events-related-to-algolia-requests).
125
+ * 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/).
130
126
  */
131
127
  clickAnalytics?: boolean;
132
128
 
133
129
  /**
134
- * Indicates whether this query will be included in [analytics](https://www.algolia.com/doc/guides/search-analytics/guides/exclude-queries/).
130
+ * Whether this search will be included in Analytics.
135
131
  */
136
132
  analytics?: boolean;
137
133
 
@@ -141,12 +137,12 @@ export type BaseSearchParamsWithoutQuery = {
141
137
  analyticsTags?: string[];
142
138
 
143
139
  /**
144
- * Whether to include or exclude a query from the processing-time percentile computation.
140
+ * Whether to include this search when calculating processing-time percentiles.
145
141
  */
146
142
  percentileComputation?: boolean;
147
143
 
148
144
  /**
149
- * Incidates whether this search will be considered in A/B testing.
145
+ * Whether to enable A/B testing for this search.
150
146
  */
151
147
  enableABTest?: boolean;
152
148
  };
@@ -22,7 +22,7 @@ export type BaseSearchResponse = Record<string, any> & {
22
22
  aroundLatLng?: string;
23
23
 
24
24
  /**
25
- * Automatically-computed radius.
25
+ * Distance from a central coordinate provided by `aroundLatLng`.
26
26
  */
27
27
  automaticRadius?: string;
28
28
 
@@ -44,7 +44,7 @@ export type BaseSearchResponse = Record<string, any> & {
44
44
  exhaustiveTypo?: boolean;
45
45
 
46
46
  /**
47
- * Mapping of each facet name to the corresponding facet counts.
47
+ * Facet counts.
48
48
  */
49
49
  facets?: Record<string, Record<string, number>>;
50
50
 
@@ -74,12 +74,12 @@ export type BaseSearchResponse = Record<string, any> & {
74
74
  message?: string;
75
75
 
76
76
  /**
77
- * Number of hits the search query matched.
77
+ * Number of results (hits).
78
78
  */
79
79
  nbHits: number;
80
80
 
81
81
  /**
82
- * Number of pages of results for the current query.
82
+ * Number of pages of results.
83
83
  */
84
84
  nbPages: number;
85
85
 
@@ -89,7 +89,7 @@ export type BaseSearchResponse = Record<string, any> & {
89
89
  nbSortedHits?: number;
90
90
 
91
91
  /**
92
- * Page to retrieve (the first page is `0`, not `1`).
92
+ * Page of search results to retrieve.
93
93
  */
94
94
  page: number;
95
95
 
@@ -128,7 +128,12 @@ export type BaseSearchResponse = Record<string, any> & {
128
128
  serverUsed?: string;
129
129
 
130
130
  /**
131
- * Lets you store custom data in your indices.
131
+ * An object with custom data. You can store up to 32&nbsp;kB as custom data.
132
132
  */
133
133
  userData?: any | null;
134
+
135
+ /**
136
+ * Unique identifier for the query. This is used for [click analytics](https://www.algolia.com/doc/guides/analytics/click-analytics/).
137
+ */
138
+ queryID?: string;
134
139
  };
@@ -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
  import type { BaseRecommendRequest } from './baseRecommendRequest';
4
- import type { BaseRecommendationsQuery } from './baseRecommendationsQuery';
4
+ import type { FrequentlyBoughtTogether } from './frequentlyBoughtTogether';
5
5
 
6
- export type RecommendationsQuery = BaseRecommendationsQuery &
7
- BaseRecommendRequest;
6
+ export type BoughtTogetherQuery = BaseRecommendRequest &
7
+ FrequentlyBoughtTogether;
@@ -72,15 +72,15 @@ export type CustomPutProps = {
72
72
  */
73
73
  export type DeleteRecommendRuleProps = {
74
74
  /**
75
- * Index on which to perform the request.
75
+ * Name of the index on which to perform the operation.
76
76
  */
77
77
  indexName: string;
78
78
  /**
79
- * [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
79
+ * [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
80
80
  */
81
81
  model: RecommendModels;
82
82
  /**
83
- * Unique record (object) identifier.
83
+ * Unique record identifier.
84
84
  */
85
85
  objectID: string;
86
86
  };
@@ -90,15 +90,15 @@ export type DeleteRecommendRuleProps = {
90
90
  */
91
91
  export type GetRecommendRuleProps = {
92
92
  /**
93
- * Index on which to perform the request.
93
+ * Name of the index on which to perform the operation.
94
94
  */
95
95
  indexName: string;
96
96
  /**
97
- * [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
97
+ * [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
98
98
  */
99
99
  model: RecommendModels;
100
100
  /**
101
- * Unique record (object) identifier.
101
+ * Unique record identifier.
102
102
  */
103
103
  objectID: string;
104
104
  };
@@ -108,15 +108,15 @@ export type GetRecommendRuleProps = {
108
108
  */
109
109
  export type GetRecommendStatusProps = {
110
110
  /**
111
- * Index on which to perform the request.
111
+ * Name of the index on which to perform the operation.
112
112
  */
113
113
  indexName: string;
114
114
  /**
115
- * [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
115
+ * [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
116
116
  */
117
117
  model: RecommendModels;
118
118
  /**
119
- * Unique identifier of a task. Numeric value (up to 64bits).
119
+ * Unique task identifier.
120
120
  */
121
121
  taskID: number;
122
122
  };
@@ -126,11 +126,11 @@ export type GetRecommendStatusProps = {
126
126
  */
127
127
  export type SearchRecommendRulesProps = {
128
128
  /**
129
- * Index on which to perform the request.
129
+ * Name of the index on which to perform the operation.
130
130
  */
131
131
  indexName: string;
132
132
  /**
133
- * [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
133
+ * [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
134
134
  */
135
135
  model: RecommendModels;
136
136
  searchRecommendRulesParams?: SearchRecommendRulesParams;
@@ -1,22 +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 { Anchoring } from './anchoring';
4
-
3
+ /**
4
+ * Condition that triggers the rule. If not specified, the rule is triggered for all recommendations.
5
+ */
5
6
  export type Condition = {
6
7
  /**
7
- * Query pattern syntax.
8
- */
9
- pattern?: string;
10
-
11
- anchoring?: Anchoring;
12
-
13
- /**
14
- * Whether the pattern matches on plurals, synonyms, and typos.
8
+ * 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/).
15
9
  */
16
- alternatives?: boolean;
10
+ filters?: string;
17
11
 
18
12
  /**
19
- * Rule context format: [A-Za-z0-9_-]+).
13
+ * An additional restriction that only triggers the rule, when the search has the same value as `ruleContexts` parameter. For example, if `context: mobile`, the rule is only triggered when the search request has a matching `ruleContexts: mobile`. A rule context must only contain alphanumeric characters.
20
14
  */
21
15
  context?: string;
22
16
  };
@@ -1,32 +1,22 @@
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 { ConsequenceHide } from './consequenceHide';
4
- import type { ConsequenceParams } from './consequenceParams';
5
- import type { Promote } from './promote';
3
+ import type { HideConsequenceObject } from './hideConsequenceObject';
4
+ import type { ParamsConsequence } from './paramsConsequence';
5
+ import type { PromoteConsequenceObject } from './promoteConsequenceObject';
6
6
 
7
7
  /**
8
- * [Consequences](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#consequences) of a rule.
8
+ * Effect of the rule.
9
9
  */
10
10
  export type Consequence = {
11
- params?: ConsequenceParams;
12
-
13
- /**
14
- * Records to promote.
15
- */
16
- promote?: Promote[];
17
-
18
11
  /**
19
- * Only use in combination with the `promote` consequence. When `true`, promoted results will be restricted to match the filters of the current search. When `false`, the promoted results will show up regardless of the filters.
12
+ * Exclude items from recommendations.
20
13
  */
21
- filterPromotes?: boolean;
14
+ hide?: HideConsequenceObject[];
22
15
 
23
16
  /**
24
- * Records to hide. By default, you can hide up to 50 records per rule.
17
+ * Place items at specific positions in the list of recommendations.
25
18
  */
26
- hide?: ConsequenceHide[];
19
+ promote?: PromoteConsequenceObject[];
27
20
 
28
- /**
29
- * Custom JSON object that will be appended to the userData array in the response. This object isn\'t interpreted by the API. It\'s limited to 1kB of minified JSON.
30
- */
31
- userData?: any | null;
21
+ params?: ParamsConsequence;
32
22
  };
@@ -5,12 +5,12 @@
5
5
  */
6
6
  export type DeletedAtResponse = {
7
7
  /**
8
- * Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run immediately. You can check the task\'s progress with the `task` operation and this `taskID`.
8
+ * Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run immediately. You can check the task\'s progress with the [`task` operation](#tag/Indices/operation/getTask) and this `taskID`.
9
9
  */
10
10
  taskID: number;
11
11
 
12
12
  /**
13
- * Timestamp of deletion in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
13
+ * Date and time when the object was deleted, in RFC 3339 format.
14
14
  */
15
15
  deletedAt: string;
16
16
  };
package/model/distinct.ts CHANGED
@@ -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
- * Enables [deduplication or grouping of results (Algolia\'s _distinct_ feature](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/#introducing-algolias-distinct-feature)).
4
+ * Determines how many records of a group are included in the search results. Records with the same value for the `attributeForDistinct` attribute are considered a group. The `distinct` setting controls how many members of the group are returned. This is useful for [deduplication and grouping](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/#introducing-algolias-distinct-feature). The `distinct` setting is ignored if `attributeForDistinct` is not set.
5
5
  */
6
6
  export type Distinct = boolean | number;
@@ -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 query contains 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,8 +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
- import type { MixedSearchFilters } from './mixedSearchFilters';
4
-
5
3
  /**
6
- * [Filter hits by facet value](https://www.algolia.com/doc/api-reference/api-parameters/facetFilters/).
4
+ * Filter the search by facet values, so that only records with the same facet values are retrieved. **Prefer using the `filters` parameter, which supports all filter types and combinations with boolean operators.** - `[filter1, filter2]` is interpreted as `filter1 AND filter2`. - `[[filter1, filter2], filter3]` is interpreted as `filter1 OR filter2 AND filter3`. - `facet:-value` is interpreted as `NOT facet:value`. While it\'s best to avoid attributes that start with a `-`, you can still filter them by escaping with a backslash: `facet:\\-value`.
7
5
  */
8
- export type FacetFilters = MixedSearchFilters[] | string;
6
+ export type FacetFilters = FacetFilters[] | string;
@@ -4,13 +4,13 @@ import type { Facets } from './facets';
4
4
  import type { Value } from './value';
5
5
 
6
6
  /**
7
- * Defines the ordering of facets (widgets).
7
+ * Order of facet names and facet values in your UI.
8
8
  */
9
9
  export type FacetOrdering = {
10
10
  facets?: Facets;
11
11
 
12
12
  /**
13
- * Ordering of facet values within an individual facet.
13
+ * Order of facet values. One object for each facet.
14
14
  */
15
15
  values?: Record<string, Value>;
16
16
  };
package/model/facets.ts CHANGED
@@ -1,11 +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
- * Ordering of facets (widgets).
4
+ * Order of facet names.
5
5
  */
6
6
  export type Facets = {
7
7
  /**
8
- * Pinned order of facet lists.
8
+ * Explicit order of facets or facet values. This setting lets you always show specific facets or facet values at the top of the list.
9
9
  */
10
10
  order?: string[];
11
11
  };
@@ -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
- * Recommendation model.
5
- */
6
- export type RecommendationModels = 'bought-together' | 'related-products';
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,11 +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
- /**
4
- * Unique identifier of the record to hide.
5
- */
6
- export type ConsequenceHide = {
3
+ import type { FbtModel } from './fbtModel';
4
+
5
+ export type FrequentlyBoughtTogether = {
6
+ model: FbtModel;
7
+
7
8
  /**
8
- * Unique object identifier.
9
+ * Unique record identifier.
9
10
  */
10
11
  objectID: string;
11
12
  };
@@ -3,11 +3,11 @@
3
3
  import type { RecommendationsRequest } from './recommendationsRequest';
4
4
 
5
5
  /**
6
- * Recommend parameters.
6
+ * Recommend request body.
7
7
  */
8
8
  export type GetRecommendationsParams = {
9
9
  /**
10
- * Request parameters depend on the model (recommendations or trending).
10
+ * Recommendation request with parameters depending on the requested model.
11
11
  */
12
12
  requests: RecommendationsRequest[];
13
13
  };
@@ -1,6 +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
- * Type of edit.
4
+ * Object ID of the recommendation you want to exclude.
5
5
  */
6
- export type EditType = 'remove' | 'replace';
6
+ export type HideConsequenceObject = {
7
+ /**
8
+ * Unique record identifier.
9
+ */
10
+ objectID?: string;
11
+ };
@@ -4,4 +4,5 @@ import type { HighlightResultOption } from './highlightResultOption';
4
4
 
5
5
  export type HighlightResult =
6
6
  | HighlightResultOption
7
+ | HighlightResultOption[]
7
8
  | Record<string, HighlightResultOption>;
@@ -3,18 +3,18 @@
3
3
  import type { MatchLevel } from './matchLevel';
4
4
 
5
5
  /**
6
- * Show highlighted section and words matched on a query.
6
+ * Surround words that match the query with HTML tags for highlighting.
7
7
  */
8
8
  export type HighlightResultOption = {
9
9
  /**
10
- * Markup text with `facetQuery` matches highlighted.
10
+ * Highlighted attribute value, including HTML tags.
11
11
  */
12
12
  value: string;
13
13
 
14
14
  matchLevel: MatchLevel;
15
15
 
16
16
  /**
17
- * List of words from the query that matched the object.
17
+ * List of matched words from the search query.
18
18
  */
19
19
  matchedWords: string[];
20
20
 
@@ -1,6 +1,8 @@
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 { SupportedLanguage } from './supportedLanguage';
4
+
3
5
  /**
4
- * Treats singular, plurals, and other forms of declensions as matching terms. `ignorePlurals` is used in conjunction with the `queryLanguages` setting. _list_: language ISO codes for which ignoring plurals should be enabled. This list will override any values that you may have set in `queryLanguages`. _true_: enables the ignore plurals feature, where singulars and plurals are considered equivalent (\"foot\" = \"feet\"). The languages supported here are either [every language](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/) (this is the default) or those set by `queryLanguages`. _false_: turns off the ignore plurals feature, so that singulars and plurals aren\'t considered to be the same (\"foot\" will not find \"feet\").
6
+ * Treat singular, plurals, and other forms of declensions as equivalent. You should only use this feature for the languages used in your index.
5
7
  */
6
- export type IgnorePlurals = string[] | boolean;
8
+ export type IgnorePlurals = SupportedLanguage[] | boolean;