@algolia/recommend 5.0.0-alpha.11 → 5.0.0-alpha.111

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 (316) hide show
  1. package/dist/builds/browser.d.ts +23 -5
  2. package/dist/builds/browser.d.ts.map +1 -1
  3. package/dist/builds/node.d.ts +23 -5
  4. package/dist/builds/node.d.ts.map +1 -1
  5. package/dist/model/advancedSyntaxFeatures.d.ts +1 -1
  6. package/dist/model/advancedSyntaxFeatures.d.ts.map +1 -1
  7. package/dist/model/alternativesAsExact.d.ts +1 -1
  8. package/dist/model/alternativesAsExact.d.ts.map +1 -1
  9. package/dist/model/aroundPrecision.d.ts +6 -0
  10. package/dist/model/aroundPrecision.d.ts.map +1 -0
  11. package/dist/model/aroundPrecisionFromValueInner.d.ts +14 -0
  12. package/dist/model/aroundPrecisionFromValueInner.d.ts.map +1 -0
  13. package/dist/model/aroundRadius.d.ts +5 -5
  14. package/dist/model/aroundRadius.d.ts.map +1 -1
  15. package/dist/model/aroundRadiusAll.d.ts +4 -1
  16. package/dist/model/aroundRadiusAll.d.ts.map +1 -1
  17. package/dist/model/autoFacetFilter.d.ts +14 -0
  18. package/dist/model/autoFacetFilter.d.ts.map +1 -0
  19. package/dist/model/baseRecommendRequest.d.ts +16 -17
  20. package/dist/model/baseRecommendRequest.d.ts.map +1 -1
  21. package/dist/model/baseSearchParams.d.ts +3 -3
  22. package/dist/model/baseSearchParams.d.ts.map +1 -1
  23. package/dist/model/baseSearchParamsWithoutQuery.d.ts +114 -122
  24. package/dist/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  25. package/dist/model/baseSearchResponse.d.ts +109 -101
  26. package/dist/model/baseSearchResponse.d.ts.map +1 -1
  27. package/dist/model/boughtTogetherQuery.d.ts +4 -0
  28. package/dist/model/boughtTogetherQuery.d.ts.map +1 -0
  29. package/dist/model/clientMethodProps.d.ts +127 -60
  30. package/dist/model/clientMethodProps.d.ts.map +1 -1
  31. package/dist/model/condition.d.ts +14 -0
  32. package/dist/model/condition.d.ts.map +1 -0
  33. package/dist/model/consequence.d.ts +18 -0
  34. package/dist/model/consequence.d.ts.map +1 -0
  35. package/dist/model/deletedAtResponse.d.ts +14 -0
  36. package/dist/model/deletedAtResponse.d.ts.map +1 -0
  37. package/dist/model/distinct.d.ts +4 -4
  38. package/dist/model/distinct.d.ts.map +1 -1
  39. package/dist/model/errorBase.d.ts +6 -6
  40. package/dist/model/errorBase.d.ts.map +1 -1
  41. package/dist/model/exactOnSingleWordQuery.d.ts +4 -4
  42. package/dist/model/exactOnSingleWordQuery.d.ts.map +1 -1
  43. package/dist/model/exhaustive.d.ts +26 -0
  44. package/dist/model/exhaustive.d.ts.map +1 -0
  45. package/dist/model/facetFilters.d.ts +5 -5
  46. package/dist/model/facetFilters.d.ts.map +1 -1
  47. package/dist/model/facetOrdering.d.ts +12 -12
  48. package/dist/model/facetOrdering.d.ts.map +1 -1
  49. package/dist/model/facets.d.ts +9 -9
  50. package/dist/model/facets.d.ts.map +1 -1
  51. package/dist/model/facetsStats.d.ts +18 -18
  52. package/dist/model/facetsStats.d.ts.map +1 -1
  53. package/dist/model/fallbackParams.d.ts +3 -0
  54. package/dist/model/fallbackParams.d.ts.map +1 -0
  55. package/dist/model/fbtModel.d.ts +5 -0
  56. package/dist/model/fbtModel.d.ts.map +1 -0
  57. package/dist/model/frequentlyBoughtTogether.d.ts +9 -0
  58. package/dist/model/frequentlyBoughtTogether.d.ts.map +1 -0
  59. package/dist/model/getRecommendTaskResponse.d.ts +5 -0
  60. package/dist/model/getRecommendTaskResponse.d.ts.map +1 -0
  61. package/dist/model/getRecommendationsParams.d.ts +10 -10
  62. package/dist/model/getRecommendationsParams.d.ts.map +1 -1
  63. package/dist/model/getRecommendationsResponse.d.ts +4 -4
  64. package/dist/model/getRecommendationsResponse.d.ts.map +1 -1
  65. package/dist/model/hideConsequenceObject.d.ts +10 -0
  66. package/dist/model/hideConsequenceObject.d.ts.map +1 -0
  67. package/dist/model/highlightResult.d.ts +2 -2
  68. package/dist/model/highlightResult.d.ts.map +1 -1
  69. package/dist/model/highlightResultOption.d.ts +19 -19
  70. package/dist/model/highlightResultOption.d.ts.map +1 -1
  71. package/dist/model/ignorePlurals.d.ts +5 -4
  72. package/dist/model/ignorePlurals.d.ts.map +1 -1
  73. package/dist/model/index.d.ts +92 -53
  74. package/dist/model/index.d.ts.map +1 -1
  75. package/dist/model/indexSettingsAsSearchParams.d.ts +159 -160
  76. package/dist/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  77. package/dist/model/lookingSimilar.d.ts +11 -0
  78. package/dist/model/lookingSimilar.d.ts.map +1 -0
  79. package/dist/model/lookingSimilarModel.d.ts +5 -0
  80. package/dist/model/lookingSimilarModel.d.ts.map +1 -0
  81. package/dist/model/lookingSimilarQuery.d.ts +4 -0
  82. package/dist/model/lookingSimilarQuery.d.ts.map +1 -0
  83. package/dist/model/matchLevel.d.ts +4 -4
  84. package/dist/model/matchLevel.d.ts.map +1 -1
  85. package/dist/model/matchedGeoLocation.d.ts +14 -14
  86. package/dist/model/matchedGeoLocation.d.ts.map +1 -1
  87. package/dist/model/mixedSearchFilters.d.ts +1 -1
  88. package/dist/model/mixedSearchFilters.d.ts.map +1 -1
  89. package/dist/model/mode.d.ts +5 -0
  90. package/dist/model/mode.d.ts.map +1 -0
  91. package/dist/model/numericFilters.d.ts +5 -5
  92. package/dist/model/numericFilters.d.ts.map +1 -1
  93. package/dist/model/optionalFilters.d.ts +5 -5
  94. package/dist/model/optionalFilters.d.ts.map +1 -1
  95. package/dist/model/paramsConsequence.d.ts +19 -0
  96. package/dist/model/paramsConsequence.d.ts.map +1 -0
  97. package/dist/model/personalization.d.ts +14 -14
  98. package/dist/model/personalization.d.ts.map +1 -1
  99. package/dist/model/promoteConsequenceObject.d.ts +14 -0
  100. package/dist/model/promoteConsequenceObject.d.ts.map +1 -0
  101. package/dist/model/queryType.d.ts +4 -4
  102. package/dist/model/queryType.d.ts.map +1 -1
  103. package/dist/model/rankingInfo.d.ts +53 -50
  104. package/dist/model/rankingInfo.d.ts.map +1 -1
  105. package/dist/model/reRankingApplyFilter.d.ts +5 -5
  106. package/dist/model/reRankingApplyFilter.d.ts.map +1 -1
  107. package/dist/model/recommendHit.d.ts +26 -26
  108. package/dist/model/recommendHit.d.ts.map +1 -1
  109. package/dist/model/recommendModels.d.ts +2 -0
  110. package/dist/model/recommendModels.d.ts.map +1 -0
  111. package/dist/model/recommendRule.d.ts +24 -0
  112. package/dist/model/recommendRule.d.ts.map +1 -0
  113. package/dist/model/recommendRuleMetadata.d.ts +10 -0
  114. package/dist/model/recommendRuleMetadata.d.ts.map +1 -0
  115. package/dist/model/recommendationsHit.d.ts +4 -0
  116. package/dist/model/recommendationsHit.d.ts.map +1 -0
  117. package/dist/model/recommendationsHits.d.ts +5 -0
  118. package/dist/model/recommendationsHits.d.ts.map +1 -0
  119. package/dist/model/recommendationsRequest.d.ts +7 -3
  120. package/dist/model/recommendationsRequest.d.ts.map +1 -1
  121. package/dist/model/recommendationsResults.d.ts +4 -0
  122. package/dist/model/recommendationsResults.d.ts.map +1 -0
  123. package/dist/model/recommendedForYou.d.ts +7 -0
  124. package/dist/model/recommendedForYou.d.ts.map +1 -0
  125. package/dist/model/recommendedForYouModel.d.ts +5 -0
  126. package/dist/model/recommendedForYouModel.d.ts.map +1 -0
  127. package/dist/model/recommendedForYouQuery.d.ts +4 -0
  128. package/dist/model/recommendedForYouQuery.d.ts.map +1 -0
  129. package/dist/model/redirect.d.ts +8 -0
  130. package/dist/model/redirect.d.ts.map +1 -0
  131. package/dist/model/redirectRuleIndexMetadata.d.ts +21 -0
  132. package/dist/model/redirectRuleIndexMetadata.d.ts.map +1 -0
  133. package/dist/model/redirectRuleIndexMetadataData.d.ts +7 -0
  134. package/dist/model/redirectRuleIndexMetadataData.d.ts.map +1 -0
  135. package/dist/model/relatedModel.d.ts +5 -0
  136. package/dist/model/relatedModel.d.ts.map +1 -0
  137. package/dist/model/relatedProducts.d.ts +11 -0
  138. package/dist/model/relatedProducts.d.ts.map +1 -0
  139. package/dist/model/relatedQuery.d.ts +4 -0
  140. package/dist/model/relatedQuery.d.ts.map +1 -0
  141. package/dist/model/removeStopWords.d.ts +5 -4
  142. package/dist/model/removeStopWords.d.ts.map +1 -1
  143. package/dist/model/removeWordsIfNoResults.d.ts +4 -4
  144. package/dist/model/removeWordsIfNoResults.d.ts.map +1 -1
  145. package/dist/model/renderingContent.d.ts +7 -7
  146. package/dist/model/renderingContent.d.ts.map +1 -1
  147. package/dist/model/searchParams.d.ts +3 -0
  148. package/dist/model/searchParams.d.ts.map +1 -0
  149. package/dist/model/searchParamsObject.d.ts +3 -3
  150. package/dist/model/searchParamsObject.d.ts.map +1 -1
  151. package/dist/model/searchParamsQuery.d.ts +6 -6
  152. package/dist/model/searchParamsQuery.d.ts.map +1 -1
  153. package/dist/model/searchRecommendRulesParams.d.ts +38 -0
  154. package/dist/model/searchRecommendRulesParams.d.ts.map +1 -0
  155. package/dist/model/searchRecommendRulesResponse.d.ts +20 -0
  156. package/dist/model/searchRecommendRulesResponse.d.ts.map +1 -0
  157. package/dist/model/semanticSearch.d.ts +10 -0
  158. package/dist/model/semanticSearch.d.ts.map +1 -0
  159. package/dist/model/snippetResult.d.ts +2 -2
  160. package/dist/model/snippetResult.d.ts.map +1 -1
  161. package/dist/model/snippetResultOption.d.ts +11 -11
  162. package/dist/model/snippetResultOption.d.ts.map +1 -1
  163. package/dist/model/sortRemainingBy.d.ts +4 -4
  164. package/dist/model/sortRemainingBy.d.ts.map +1 -1
  165. package/dist/model/supportedLanguage.d.ts +5 -0
  166. package/dist/model/supportedLanguage.d.ts.map +1 -0
  167. package/dist/model/tagFilters.d.ts +5 -5
  168. package/dist/model/tagFilters.d.ts.map +1 -1
  169. package/dist/model/taskStatus.d.ts +5 -0
  170. package/dist/model/taskStatus.d.ts.map +1 -0
  171. package/dist/model/trendingFacetHit.d.ts +18 -0
  172. package/dist/model/trendingFacetHit.d.ts.map +1 -0
  173. package/dist/model/trendingFacets.d.ts +11 -0
  174. package/dist/model/trendingFacets.d.ts.map +1 -0
  175. package/dist/model/trendingFacetsModel.d.ts +5 -0
  176. package/dist/model/trendingFacetsModel.d.ts.map +1 -0
  177. package/dist/model/trendingFacetsQuery.d.ts +4 -0
  178. package/dist/model/trendingFacetsQuery.d.ts.map +1 -0
  179. package/dist/model/trendingItems.d.ts +15 -0
  180. package/dist/model/trendingItems.d.ts.map +1 -0
  181. package/dist/model/trendingItemsModel.d.ts +5 -0
  182. package/dist/model/trendingItemsModel.d.ts.map +1 -0
  183. package/dist/model/trendingItemsQuery.d.ts +4 -0
  184. package/dist/model/trendingItemsQuery.d.ts.map +1 -0
  185. package/dist/model/typoTolerance.d.ts +5 -5
  186. package/dist/model/typoTolerance.d.ts.map +1 -1
  187. package/dist/model/typoToleranceEnum.d.ts +4 -1
  188. package/dist/model/typoToleranceEnum.d.ts.map +1 -1
  189. package/dist/model/value.d.ts +8 -8
  190. package/dist/model/value.d.ts.map +1 -1
  191. package/dist/recommend.cjs +390 -0
  192. package/dist/recommend.esm.browser.js +589 -475
  193. package/dist/recommend.esm.node.js +379 -235
  194. package/dist/recommend.umd.js +2 -2
  195. package/dist/src/recommendClient.d.ts +131 -81
  196. package/dist/src/recommendClient.d.ts.map +1 -1
  197. package/index.js +1 -1
  198. package/model/advancedSyntaxFeatures.ts +1 -1
  199. package/model/alternativesAsExact.ts +1 -1
  200. package/model/aroundPrecision.ts +8 -0
  201. package/model/aroundPrecisionFromValueInner.ts +16 -0
  202. package/model/aroundRadius.ts +2 -2
  203. package/model/aroundRadiusAll.ts +4 -1
  204. package/model/autoFacetFilter.ts +16 -0
  205. package/model/baseRecommendRequest.ts +6 -8
  206. package/model/baseSearchParams.ts +1 -1
  207. package/model/baseSearchParamsWithoutQuery.ts +36 -46
  208. package/model/baseSearchResponse.ts +42 -31
  209. package/model/boughtTogetherQuery.ts +7 -0
  210. package/model/clientMethodProps.ts +91 -19
  211. package/model/condition.ts +16 -0
  212. package/model/consequence.ts +22 -0
  213. package/model/deletedAtResponse.ts +16 -0
  214. package/model/distinct.ts +2 -2
  215. package/model/errorBase.ts +1 -1
  216. package/model/exactOnSingleWordQuery.ts +2 -2
  217. package/model/exhaustive.ts +31 -0
  218. package/model/facetFilters.ts +2 -2
  219. package/model/facetOrdering.ts +3 -3
  220. package/model/facets.ts +3 -3
  221. package/model/facetsStats.ts +5 -5
  222. package/model/fallbackParams.ts +5 -0
  223. package/model/fbtModel.ts +6 -0
  224. package/model/frequentlyBoughtTogether.ts +12 -0
  225. package/model/getRecommendTaskResponse.ts +7 -0
  226. package/model/getRecommendationsParams.ts +3 -3
  227. package/model/getRecommendationsResponse.ts +3 -3
  228. package/model/hideConsequenceObject.ts +11 -0
  229. package/model/highlightResult.ts +5 -2
  230. package/model/highlightResultOption.ts +4 -4
  231. package/model/ignorePlurals.ts +5 -3
  232. package/model/index.ts +48 -9
  233. package/model/indexSettingsAsSearchParams.ts +54 -54
  234. package/model/lookingSimilar.ts +15 -0
  235. package/model/lookingSimilarModel.ts +6 -0
  236. package/model/lookingSimilarQuery.ts +6 -0
  237. package/model/matchLevel.ts +2 -2
  238. package/model/matchedGeoLocation.ts +1 -1
  239. package/model/mixedSearchFilters.ts +1 -1
  240. package/model/mode.ts +6 -0
  241. package/model/numericFilters.ts +2 -2
  242. package/model/optionalFilters.ts +2 -2
  243. package/model/paramsConsequence.ts +23 -0
  244. package/model/personalization.ts +1 -1
  245. package/model/promoteConsequenceObject.ts +16 -0
  246. package/model/queryType.ts +2 -2
  247. package/model/rankingInfo.ts +11 -8
  248. package/model/reRankingApplyFilter.ts +2 -2
  249. package/model/recommendHit.ts +6 -6
  250. package/model/recommendModels.ts +7 -0
  251. package/model/recommendRule.ts +31 -0
  252. package/model/recommendRuleMetadata.ts +11 -0
  253. package/model/recommendationsHit.ts +6 -0
  254. package/model/recommendationsHits.ts +7 -0
  255. package/model/recommendationsRequest.ts +14 -4
  256. package/model/recommendationsResults.ts +6 -0
  257. package/model/recommendedForYou.ts +10 -0
  258. package/model/recommendedForYouModel.ts +6 -0
  259. package/model/recommendedForYouQuery.ts +6 -0
  260. package/model/redirect.ts +10 -0
  261. package/model/redirectRuleIndexMetadata.ts +27 -0
  262. package/model/redirectRuleIndexMetadataData.ts +8 -0
  263. package/model/relatedModel.ts +6 -0
  264. package/model/relatedProducts.ts +15 -0
  265. package/model/relatedQuery.ts +6 -0
  266. package/model/removeStopWords.ts +5 -3
  267. package/model/removeWordsIfNoResults.ts +2 -2
  268. package/model/renderingContent.ts +2 -2
  269. package/model/searchParams.ts +5 -0
  270. package/model/searchParamsObject.ts +1 -1
  271. package/model/searchParamsQuery.ts +2 -2
  272. package/model/searchRecommendRulesParams.ts +46 -0
  273. package/model/searchRecommendRulesResponse.ts +25 -0
  274. package/model/semanticSearch.ts +11 -0
  275. package/model/snippetResult.ts +5 -2
  276. package/model/snippetResultOption.ts +3 -3
  277. package/model/sortRemainingBy.ts +2 -2
  278. package/model/supportedLanguage.ts +74 -0
  279. package/model/tagFilters.ts +2 -2
  280. package/model/taskStatus.ts +6 -0
  281. package/model/trendingFacetHit.ts +21 -0
  282. package/model/trendingFacets.ts +15 -0
  283. package/model/trendingFacetsModel.ts +6 -0
  284. package/model/trendingFacetsQuery.ts +6 -0
  285. package/model/trendingItems.ts +20 -0
  286. package/model/trendingItemsModel.ts +6 -0
  287. package/model/trendingItemsQuery.ts +6 -0
  288. package/model/typoTolerance.ts +2 -2
  289. package/model/typoToleranceEnum.ts +4 -1
  290. package/model/value.ts +2 -2
  291. package/package.json +10 -9
  292. package/dist/model/baseRecommendationRequest.d.ts +0 -9
  293. package/dist/model/baseRecommendationRequest.d.ts.map +0 -1
  294. package/dist/model/baseTrendingRequest.d.ts +0 -13
  295. package/dist/model/baseTrendingRequest.d.ts.map +0 -1
  296. package/dist/model/recommendHits.d.ts +0 -5
  297. package/dist/model/recommendHits.d.ts.map +0 -1
  298. package/dist/model/recommendationModels.d.ts +0 -5
  299. package/dist/model/recommendationModels.d.ts.map +0 -1
  300. package/dist/model/recommendationRequest.d.ts +0 -4
  301. package/dist/model/recommendationRequest.d.ts.map +0 -1
  302. package/dist/model/recommendationsResponse.d.ts +0 -4
  303. package/dist/model/recommendationsResponse.d.ts.map +0 -1
  304. package/dist/model/trendingModels.d.ts +0 -5
  305. package/dist/model/trendingModels.d.ts.map +0 -1
  306. package/dist/model/trendingRequest.d.ts +0 -4
  307. package/dist/model/trendingRequest.d.ts.map +0 -1
  308. package/dist/recommend.cjs.js +0 -248
  309. package/model/baseRecommendationRequest.ts +0 -12
  310. package/model/baseTrendingRequest.ts +0 -17
  311. package/model/recommendHits.ts +0 -7
  312. package/model/recommendationModels.ts +0 -6
  313. package/model/recommendationRequest.ts +0 -7
  314. package/model/recommendationsResponse.ts +0 -6
  315. package/model/trendingModels.ts +0 -6
  316. package/model/trendingRequest.ts +0 -6
@@ -1,8 +1,8 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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 { MixedSearchFilters } from './mixedSearchFilters';
4
4
 
5
5
  /**
6
- * Filter hits by facet value.
6
+ * 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
7
  */
8
8
  export type FacetFilters = MixedSearchFilters[] | string;
@@ -1,16 +1,16 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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 { Facets } from './facets';
4
4
  import type { Value } from './value';
5
5
 
6
6
  /**
7
- * Defining how facets should be ordered.
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
- * The ordering of facet values, within an individual list.
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
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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
- * The 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,23 +1,23 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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
  export type FacetsStats = {
4
4
  /**
5
- * The minimum value in the result set.
5
+ * Minimum value in the results.
6
6
  */
7
7
  min?: number;
8
8
 
9
9
  /**
10
- * The maximum value in the result set.
10
+ * Maximum value in the results.
11
11
  */
12
12
  max?: number;
13
13
 
14
14
  /**
15
- * The average facet value in the result set.
15
+ * Average facet value in the results.
16
16
  */
17
17
  avg?: number;
18
18
 
19
19
  /**
20
- * The sum of all values in the result set.
20
+ * Sum of all values in the results.
21
21
  */
22
22
  sum?: number;
23
23
  };
@@ -0,0 +1,5 @@
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 { 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';
@@ -0,0 +1,12 @@
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 { FbtModel } from './fbtModel';
4
+
5
+ export type FrequentlyBoughtTogether = {
6
+ model: FbtModel;
7
+
8
+ /**
9
+ * Unique record identifier.
10
+ */
11
+ objectID: string;
12
+ };
@@ -0,0 +1,7 @@
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 { TaskStatus } from './taskStatus';
4
+
5
+ export type GetRecommendTaskResponse = {
6
+ status: TaskStatus;
7
+ };
@@ -1,13 +1,13 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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 { RecommendationsRequest } from './recommendationsRequest';
4
4
 
5
5
  /**
6
- * The `getRecommendations` parameters.
6
+ * Recommend request body.
7
7
  */
8
8
  export type GetRecommendationsParams = {
9
9
  /**
10
- * The `getRecommendations` requests.
10
+ * Recommendation request with parameters depending on the requested model.
11
11
  */
12
12
  requests: RecommendationsRequest[];
13
13
  };
@@ -1,7 +1,7 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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 { RecommendationsResponse } from './recommendationsResponse';
3
+ import type { RecommendationsResults } from './recommendationsResults';
4
4
 
5
5
  export type GetRecommendationsResponse = {
6
- results?: RecommendationsResponse[];
6
+ results?: RecommendationsResults[];
7
7
  };
@@ -0,0 +1,11 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ /**
4
+ * Object ID of the recommendation you want to exclude.
5
+ */
6
+ export type HideConsequenceObject = {
7
+ /**
8
+ * Unique record identifier.
9
+ */
10
+ objectID?: string;
11
+ };
@@ -1,5 +1,8 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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 { HighlightResultOption } from './highlightResultOption';
4
4
 
5
- export type HighlightResult = HighlightResultOption | HighlightResultOption[];
5
+ export type HighlightResult =
6
+ | HighlightResultOption
7
+ | HighlightResultOption[]
8
+ | Record<string, HighlightResultOption>;
@@ -1,20 +1,20 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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 { 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 occurrences 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
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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 { SupportedLanguage } from './supportedLanguage';
2
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 functionality, where singulars and plurals are considered equivalent (foot = feet). The languages supported here are either every language (this is the default, see list of languages below), or those set by queryLanguages. False: disables ignore plurals, where singulars and plurals are not considered the same for matching purposes (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;
package/model/index.ts CHANGED
@@ -1,54 +1,93 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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
  export * from './advancedSyntaxFeatures';
4
4
  export * from './alternativesAsExact';
5
+ export * from './aroundPrecision';
6
+ export * from './aroundPrecisionFromValueInner';
5
7
  export * from './aroundRadius';
6
8
  export * from './aroundRadiusAll';
9
+ export * from './autoFacetFilter';
7
10
  export * from './baseRecommendRequest';
8
- export * from './baseRecommendationRequest';
9
11
  export * from './baseSearchParams';
10
12
  export * from './baseSearchParamsWithoutQuery';
11
13
  export * from './baseSearchResponse';
12
- export * from './baseTrendingRequest';
14
+ export * from './boughtTogetherQuery';
15
+ export * from './condition';
16
+ export * from './consequence';
17
+ export * from './deletedAtResponse';
13
18
  export * from './distinct';
14
19
  export * from './errorBase';
15
20
  export * from './exactOnSingleWordQuery';
21
+ export * from './exhaustive';
16
22
  export * from './facetFilters';
17
23
  export * from './facetOrdering';
18
24
  export * from './facets';
19
25
  export * from './facetsStats';
26
+ export * from './fallbackParams';
27
+ export * from './fbtModel';
28
+ export * from './frequentlyBoughtTogether';
29
+ export * from './getRecommendTaskResponse';
20
30
  export * from './getRecommendationsParams';
21
31
  export * from './getRecommendationsResponse';
32
+ export * from './hideConsequenceObject';
22
33
  export * from './highlightResult';
23
34
  export * from './highlightResultOption';
24
35
  export * from './ignorePlurals';
25
36
  export * from './indexSettingsAsSearchParams';
37
+ export * from './lookingSimilar';
38
+ export * from './lookingSimilarModel';
39
+ export * from './lookingSimilarQuery';
26
40
  export * from './matchLevel';
27
41
  export * from './matchedGeoLocation';
28
42
  export * from './mixedSearchFilters';
43
+ export * from './mode';
29
44
  export * from './numericFilters';
30
45
  export * from './optionalFilters';
46
+ export * from './paramsConsequence';
31
47
  export * from './personalization';
48
+ export * from './promoteConsequenceObject';
32
49
  export * from './queryType';
33
50
  export * from './rankingInfo';
34
51
  export * from './reRankingApplyFilter';
35
52
  export * from './recommendHit';
36
- export * from './recommendHits';
37
- export * from './recommendationModels';
38
- export * from './recommendationRequest';
53
+ export * from './recommendModels';
54
+ export * from './recommendRule';
55
+ export * from './recommendRuleMetadata';
56
+ export * from './recommendationsHit';
57
+ export * from './recommendationsHits';
39
58
  export * from './recommendationsRequest';
40
- export * from './recommendationsResponse';
59
+ export * from './recommendationsResults';
60
+ export * from './recommendedForYou';
61
+ export * from './recommendedForYouModel';
62
+ export * from './recommendedForYouQuery';
63
+ export * from './redirect';
64
+ export * from './redirectRuleIndexMetadata';
65
+ export * from './redirectRuleIndexMetadataData';
66
+ export * from './relatedModel';
67
+ export * from './relatedProducts';
68
+ export * from './relatedQuery';
41
69
  export * from './removeStopWords';
42
70
  export * from './removeWordsIfNoResults';
43
71
  export * from './renderingContent';
72
+ export * from './searchParams';
44
73
  export * from './searchParamsObject';
45
74
  export * from './searchParamsQuery';
75
+ export * from './searchRecommendRulesParams';
76
+ export * from './searchRecommendRulesResponse';
77
+ export * from './semanticSearch';
46
78
  export * from './snippetResult';
47
79
  export * from './snippetResultOption';
48
80
  export * from './sortRemainingBy';
81
+ export * from './supportedLanguage';
49
82
  export * from './tagFilters';
50
- export * from './trendingModels';
51
- export * from './trendingRequest';
83
+ export * from './taskStatus';
84
+ export * from './trendingFacetHit';
85
+ export * from './trendingFacets';
86
+ export * from './trendingFacetsModel';
87
+ export * from './trendingFacetsQuery';
88
+ export * from './trendingItems';
89
+ export * from './trendingItemsModel';
90
+ export * from './trendingItemsQuery';
52
91
  export * from './typoTolerance';
53
92
  export * from './typoToleranceEnum';
54
93
  export * from './value';
@@ -1,69 +1,58 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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 { AdvancedSyntaxFeatures } from './advancedSyntaxFeatures';
4
4
  import type { AlternativesAsExact } from './alternativesAsExact';
5
5
  import type { Distinct } from './distinct';
6
6
  import type { ExactOnSingleWordQuery } from './exactOnSingleWordQuery';
7
7
  import type { IgnorePlurals } from './ignorePlurals';
8
+ import type { Mode } from './mode';
8
9
  import type { QueryType } from './queryType';
10
+ import type { ReRankingApplyFilter } from './reRankingApplyFilter';
9
11
  import type { RemoveStopWords } from './removeStopWords';
10
12
  import type { RemoveWordsIfNoResults } from './removeWordsIfNoResults';
11
13
  import type { RenderingContent } from './renderingContent';
14
+ import type { SemanticSearch } from './semanticSearch';
15
+ import type { SupportedLanguage } from './supportedLanguage';
12
16
  import type { TypoTolerance } from './typoTolerance';
13
17
 
14
18
  export type IndexSettingsAsSearchParams = {
15
19
  /**
16
- * The complete list of attributes that will be used for faceting.
17
- */
18
- attributesForFaceting?: string[];
19
-
20
- /**
21
- * List of attributes that can\'t be retrieved at query time.
22
- */
23
- unretrievableAttributes?: string[];
24
-
25
- /**
26
- * This parameter controls which attributes to retrieve and which not to retrieve.
20
+ * Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. - `*` retrieves all attributes, except attributes included in the `customRanking` and `unretrievableAttributes` settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the `*`: `[\"*\", \"-ATTRIBUTE\"]`. - The `objectID` attribute is always included.
27
21
  */
28
22
  attributesToRetrieve?: string[];
29
23
 
30
24
  /**
31
- * Restricts a given query to look in only a subset of your searchable attributes.
32
- */
33
- restrictSearchableAttributes?: string[];
34
-
35
- /**
36
- * Controls how Algolia should sort your results.
25
+ * Determines the order in which Algolia returns your results. By default, each entry corresponds to a [ranking criteria](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/). The tie-breaking algorithm sequentially applies each criterion in the order they\'re specified. If you configure a replica index for [sorting by an attribute](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/how-to/sort-by-attribute/), you put the sorting attribute at the top of the list. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. Before you modify the default setting, you should test your changes in the dashboard, and by [A/B testing](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing/).
37
26
  */
38
27
  ranking?: string[];
39
28
 
40
29
  /**
41
- * Specifies the custom ranking criterion.
30
+ * Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
42
31
  */
43
32
  customRanking?: string[];
44
33
 
45
34
  /**
46
- * Controls the relevancy threshold below which less relevant results aren\'t included in the results.
35
+ * 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.
47
36
  */
48
37
  relevancyStrictness?: number;
49
38
 
50
39
  /**
51
- * List of attributes to highlight.
40
+ * Attributes to highlight. By default, all searchable attributes are highlighted. Use `*` to highlight all attributes or use an empty array `[]` to turn off highlighting. With highlighting, strings that match the search query are surrounded by HTML tags defined by `highlightPreTag` and `highlightPostTag`. You can use this to visually highlight matching parts of a search query in your UI. For more information, see [Highlighting and snippeting](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/highlighting-snippeting/js/).
52
41
  */
53
42
  attributesToHighlight?: string[];
54
43
 
55
44
  /**
56
- * List of attributes to snippet, with an optional maximum number of words to snippet.
45
+ * Attributes for which to enable snippets. Snippets provide additional context to matched words. If you enable snippets, they include 10 words, including the matched word. The matched word will also be wrapped by HTML tags for highlighting. You can adjust the number of words with the following notation: `ATTRIBUTE:NUMBER`, where `NUMBER` is the number of words to be extracted.
57
46
  */
58
47
  attributesToSnippet?: string[];
59
48
 
60
49
  /**
61
- * The HTML string to insert before the highlighted parts in all highlight and snippet results.
50
+ * HTML tag to insert before the highlighted parts in all highlighted results and snippets.
62
51
  */
63
52
  highlightPreTag?: string;
64
53
 
65
54
  /**
66
- * The HTML string to insert after the highlighted parts in all highlight and snippet results.
55
+ * HTML tag to insert after the highlighted parts in all highlighted results and snippets.
67
56
  */
68
57
  highlightPostTag?: string;
69
58
 
@@ -73,34 +62,34 @@ export type IndexSettingsAsSearchParams = {
73
62
  snippetEllipsisText?: string;
74
63
 
75
64
  /**
76
- * Restrict highlighting and snippeting to items that matched the query.
65
+ * Whether to restrict highlighting and snippeting to items that at least partially matched the search query. By default, all items are highlighted and snippeted.
77
66
  */
78
67
  restrictHighlightAndSnippetArrays?: boolean;
79
68
 
80
69
  /**
81
- * Set the number of hits per page.
70
+ * Number of hits per page.
82
71
  */
83
72
  hitsPerPage?: number;
84
73
 
85
74
  /**
86
- * Minimum number of characters a word in the query string must contain to accept matches with 1 typo.
75
+ * 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).
87
76
  */
88
77
  minWordSizefor1Typo?: number;
89
78
 
90
79
  /**
91
- * Minimum number of characters a word in the query string must contain to accept matches with 2 typos.
80
+ * 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).
92
81
  */
93
82
  minWordSizefor2Typos?: number;
94
83
 
95
84
  typoTolerance?: TypoTolerance;
96
85
 
97
86
  /**
98
- * Whether to allow typos on numbers (\"numeric tokens\") in the query string.
87
+ * 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.
99
88
  */
100
89
  allowTyposOnNumericTokens?: boolean;
101
90
 
102
91
  /**
103
- * List of attributes on which you want to disable typo tolerance.
92
+ * Attributes for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/). Returning only exact matches can help when: - [Searching in hyphenated attributes](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/how-to/how-to-search-in-hyphenated-attributes/). - Reducing the number of matches when you have too many. This can happen with attributes that are long blocks of text, such as product descriptions. Consider alternatives such as `disableTypoToleranceOnWords` or adding synonyms if your attributes have intentional unusual spellings that might look like typos.
104
93
  */
105
94
  disableTypoToleranceOnAttributes?: string[];
106
95
 
@@ -109,27 +98,27 @@ export type IndexSettingsAsSearchParams = {
109
98
  removeStopWords?: RemoveStopWords;
110
99
 
111
100
  /**
112
- * List of characters that the engine shouldn\'t automatically normalize.
101
+ * Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
113
102
  */
114
103
  keepDiacriticsOnCharacters?: string;
115
104
 
116
105
  /**
117
- * Sets the languages to be used by language-specific settings and functionalities such as ignorePlurals, removeStopWords, and CJK word-detection.
106
+ * 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/).
118
107
  */
119
- queryLanguages?: string[];
108
+ queryLanguages?: SupportedLanguage[];
120
109
 
121
110
  /**
122
- * Splits compound words into their composing atoms in the query.
111
+ * Whether to split compound words 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.
123
112
  */
124
113
  decompoundQuery?: boolean;
125
114
 
126
115
  /**
127
- * Whether Rules should be globally enabled.
116
+ * Whether to enable rules.
128
117
  */
129
118
  enableRules?: boolean;
130
119
 
131
120
  /**
132
- * Enable the Personalization feature.
121
+ * Whether to enable Personalization.
133
122
  */
134
123
  enablePersonalization?: boolean;
135
124
 
@@ -137,69 +126,80 @@ export type IndexSettingsAsSearchParams = {
137
126
 
138
127
  removeWordsIfNoResults?: RemoveWordsIfNoResults;
139
128
 
129
+ mode?: Mode;
130
+
131
+ semanticSearch?: SemanticSearch;
132
+
140
133
  /**
141
- * Enables the advanced query syntax.
134
+ * Whether to support phrase matching and excluding words from search queries. Use the `advancedSyntaxFeatures` parameter to control which feature is supported.
142
135
  */
143
136
  advancedSyntax?: boolean;
144
137
 
145
138
  /**
146
- * A list of words that should be considered as optional when found in the query.
139
+ * 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 dividied 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).
147
140
  */
148
141
  optionalWords?: string[];
149
142
 
150
143
  /**
151
- * List of attributes on which you want to disable the exact ranking criterion.
144
+ * Searchable attributes for which you want to [turn off the Exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes). This can be useful for attributes with long values, where the likelyhood of an exact match is high, such as product descriptions. Turning off the Exact ranking criterion for these attributes favors exact matching on other attributes. This reduces the impact of individual attributes with a lot of content on ranking.
152
145
  */
153
146
  disableExactOnAttributes?: string[];
154
147
 
155
148
  exactOnSingleWordQuery?: ExactOnSingleWordQuery;
156
149
 
157
150
  /**
158
- * List of alternatives that should be considered an exact match by the exact ranking criterion.
151
+ * Alternatives of query words that should be considered as exact matches by the Exact ranking criterion. - `ignorePlurals`. Plurals and similar declensions added by the `ignorePlurals` setting are considered exact matches. - `singleWordSynonym`. Single-word synonyms, such as \"NY/NYC\" are considered exact matches. - `multiWordsSynonym`. Multi-word synonyms, such as \"NY/New York\" are considered exact matches.
159
152
  */
160
153
  alternativesAsExact?: AlternativesAsExact[];
161
154
 
162
155
  /**
163
- * Allows you to specify which advanced syntax features are active when ‘advancedSyntax\' is enabled.
156
+ * Advanced search syntax features you want to support. - `exactPhrase`. Phrases in quotes must match exactly. For example, `sparkly blue \"iPhone case\"` only returns records with the exact string \"iPhone case\". - `excludeWords`. Query words prefixed with a `-` must not occur in a record. For example, `search -engine` matches records that contain \"search\" but not \"engine\". This setting only has an effect if `advancedSyntax` is true.
164
157
  */
165
158
  advancedSyntaxFeatures?: AdvancedSyntaxFeatures[];
166
159
 
167
160
  distinct?: Distinct;
168
161
 
169
162
  /**
170
- * Name of the de-duplication attribute to be used with the distinct feature.
163
+ * 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 occurences of \"house\" are replaced by \"home\" in the highlighted response.
171
164
  */
172
- attributeForDistinct?: string;
165
+ replaceSynonymsInHighlight?: boolean;
173
166
 
174
167
  /**
175
- * Whether to take into account an index\'s synonyms for a particular search.
168
+ * 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.
176
169
  */
177
- synonyms?: boolean;
170
+ minProximity?: number;
178
171
 
179
172
  /**
180
- * Whether to highlight and snippet the original word that matches the synonym or the synonym itself.
173
+ * 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.
181
174
  */
182
- replaceSynonymsInHighlight?: boolean;
175
+ responseFields?: string[];
183
176
 
184
177
  /**
185
- * Precision of the proximity ranking criterion.
178
+ * 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).
186
179
  */
187
- minProximity?: number;
180
+ maxFacetHits?: number;
188
181
 
189
182
  /**
190
- * Choose which fields to return in the API response. This parameters applies to search and browse queries.
183
+ * Maximum number of facet values to return for each facet.
191
184
  */
192
- responseFields?: string[];
185
+ maxValuesPerFacet?: number;
193
186
 
194
187
  /**
195
- * Maximum number of facet hits to return during a search for facet values. For performance reasons, the maximum allowed number of returned values is 100.
188
+ * Order in which to retrieve facet values. - `count`. Facet values are retrieved by decreasing count. The count is the number of matching records containing this facet value. - `alpha`. Retrieve facet values alphabetically. This setting doesn\'t influence how facet values are displayed in your UI (see `renderingContent`). For more information, see [facet value display](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/facet-display/js/).
196
189
  */
197
- maxFacetHits?: number;
190
+ sortFacetValuesBy?: string;
198
191
 
199
192
  /**
200
- * When attribute is ranked above proximity in your ranking formula, proximity is used to select which searchable attribute is matched in the attribute ranking stage.
193
+ * 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.
201
194
  */
202
195
  attributeCriteriaComputedByMinProximity?: boolean;
203
196
 
204
197
  renderingContent?: RenderingContent;
198
+
199
+ /**
200
+ * 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.
201
+ */
202
+ enableReRanking?: boolean;
203
+
204
+ reRankingApplyFilter?: ReRankingApplyFilter | null;
205
205
  };
@@ -0,0 +1,15 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ import type { FallbackParams } from './fallbackParams';
4
+ import type { LookingSimilarModel } from './lookingSimilarModel';
5
+
6
+ export type LookingSimilar = {
7
+ model: LookingSimilarModel;
8
+
9
+ /**
10
+ * Unique record identifier.
11
+ */
12
+ objectID: string;
13
+
14
+ fallbackParameters?: FallbackParams;
15
+ };
@@ -0,0 +1,6 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ /**
4
+ * Looking similar model. This model recommends items that look similar to the item with the ID `objectID` based on image attributes in your index.
5
+ */
6
+ export type LookingSimilarModel = 'looking-similar';
@@ -0,0 +1,6 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ import type { BaseRecommendRequest } from './baseRecommendRequest';
4
+ import type { LookingSimilar } from './lookingSimilar';
5
+
6
+ export type LookingSimilarQuery = BaseRecommendRequest & LookingSimilar;