@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
@@ -1,6 +1,5 @@
1
- import type { MixedSearchFilters } from './mixedSearchFilters';
2
1
  /**
3
- * [Filter hits by facet value](https://www.algolia.com/doc/api-reference/api-parameters/facetFilters/).
2
+ * 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`.
4
3
  */
5
- export type FacetFilters = MixedSearchFilters[] | string;
4
+ export type FacetFilters = FacetFilters[] | string;
6
5
  //# sourceMappingURL=facetFilters.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"facetFilters.d.ts","sourceRoot":"","sources":["../../model/facetFilters.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,kBAAkB,EAAE,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"facetFilters.d.ts","sourceRoot":"","sources":["../../model/facetFilters.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,YAAY,EAAE,GAAG,MAAM,CAAC"}
@@ -1,12 +1,12 @@
1
1
  import type { Facets } from './facets';
2
2
  import type { Value } from './value';
3
3
  /**
4
- * Defines the ordering of facets (widgets).
4
+ * Order of facet names and facet values in your UI.
5
5
  */
6
6
  export type FacetOrdering = {
7
7
  facets?: Facets;
8
8
  /**
9
- * Ordering of facet values within an individual facet.
9
+ * Order of facet values. One object for each facet.
10
10
  */
11
11
  values?: Record<string, Value>;
12
12
  };
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Ordering of facets (widgets).
2
+ * Order of facet names.
3
3
  */
4
4
  export type Facets = {
5
5
  /**
6
- * Pinned order of facet lists.
6
+ * Explicit order of facets or facet values. This setting lets you always show specific facets or facet values at the top of the list.
7
7
  */
8
8
  order?: string[];
9
9
  };
@@ -0,0 +1,3 @@
1
+ import type { SearchParamsObject } from './searchParamsObject';
2
+ export type FallbackParams = Record<string, any> & SearchParamsObject;
3
+ //# sourceMappingURL=fallbackParams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fallbackParams.d.ts","sourceRoot":"","sources":["../../model/fallbackParams.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,kBAAkB,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Frequently bought together model. This model recommends items that have been purchased within 1 day with the item with the ID `objectID`.
3
+ */
4
+ export type FbtModel = 'bought-together';
5
+ //# sourceMappingURL=fbtModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fbtModel.d.ts","sourceRoot":"","sources":["../../model/fbtModel.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,iBAAiB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { FbtModel } from './fbtModel';
2
+ export type FrequentlyBoughtTogether = {
3
+ model: FbtModel;
4
+ /**
5
+ * Unique record identifier.
6
+ */
7
+ objectID: string;
8
+ };
9
+ //# sourceMappingURL=frequentlyBoughtTogether.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frequentlyBoughtTogether.d.ts","sourceRoot":"","sources":["../../model/frequentlyBoughtTogether.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,QAAQ,CAAC;IAEhB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import type { RecommendationsRequest } from './recommendationsRequest';
2
2
  /**
3
- * Recommend parameters.
3
+ * Recommend request body.
4
4
  */
5
5
  export type GetRecommendationsParams = {
6
6
  /**
7
- * Request parameters depend on the model (recommendations or trending).
7
+ * Recommendation request with parameters depending on the requested model.
8
8
  */
9
9
  requests: RecommendationsRequest[];
10
10
  };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Object ID of the recommendation you want to exclude.
3
+ */
4
+ export type HideConsequenceObject = {
5
+ /**
6
+ * Unique record identifier.
7
+ */
8
+ objectID?: string;
9
+ };
10
+ //# sourceMappingURL=hideConsequenceObject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hideConsequenceObject.d.ts","sourceRoot":"","sources":["../../model/hideConsequenceObject.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { HighlightResultOption } from './highlightResultOption';
2
- export type HighlightResult = HighlightResultOption | Record<string, HighlightResultOption>;
2
+ export type HighlightResult = HighlightResultOption | HighlightResultOption[] | Record<string, HighlightResultOption>;
3
3
  //# sourceMappingURL=highlightResult.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"highlightResult.d.ts","sourceRoot":"","sources":["../../model/highlightResult.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAErE,MAAM,MAAM,eAAe,GACvB,qBAAqB,GACrB,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC"}
1
+ {"version":3,"file":"highlightResult.d.ts","sourceRoot":"","sources":["../../model/highlightResult.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAErE,MAAM,MAAM,eAAe,GACvB,qBAAqB,GACrB,qBAAqB,EAAE,GACvB,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC"}
@@ -1,15 +1,15 @@
1
1
  import type { MatchLevel } from './matchLevel';
2
2
  /**
3
- * Show highlighted section and words matched on a query.
3
+ * Surround words that match the query with HTML tags for highlighting.
4
4
  */
5
5
  export type HighlightResultOption = {
6
6
  /**
7
- * Markup text with `facetQuery` matches highlighted.
7
+ * Highlighted attribute value, including HTML tags.
8
8
  */
9
9
  value: string;
10
10
  matchLevel: MatchLevel;
11
11
  /**
12
- * List of words from the query that matched the object.
12
+ * List of matched words from the search query.
13
13
  */
14
14
  matchedWords: string[];
15
15
  /**
@@ -1,5 +1,6 @@
1
+ import type { SupportedLanguage } from './supportedLanguage';
1
2
  /**
2
- * 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\").
3
+ * Treat singular, plurals, and other forms of declensions as equivalent. You should only use this feature for the languages used in your index.
3
4
  */
4
- export type IgnorePlurals = string[] | boolean;
5
+ export type IgnorePlurals = SupportedLanguage[] | boolean;
5
6
  //# sourceMappingURL=ignorePlurals.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ignorePlurals.d.ts","sourceRoot":"","sources":["../../model/ignorePlurals.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,EAAE,GAAG,OAAO,CAAC"}
1
+ {"version":3,"file":"ignorePlurals.d.ts","sourceRoot":"","sources":["../../model/ignorePlurals.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,iBAAiB,EAAE,GAAG,OAAO,CAAC"}
@@ -1,31 +1,19 @@
1
1
  export * from './advancedSyntaxFeatures';
2
2
  export * from './alternativesAsExact';
3
- export * from './anchoring';
4
3
  export * from './aroundPrecision';
5
4
  export * from './aroundPrecisionFromValueInner';
6
5
  export * from './aroundRadius';
7
6
  export * from './aroundRadiusAll';
8
- export * from './automaticFacetFilter';
9
- export * from './automaticFacetFilters';
7
+ export * from './autoFacetFilter';
10
8
  export * from './baseRecommendRequest';
11
- export * from './baseRecommendationsQuery';
12
- export * from './baseRecommendedForYouQuery';
13
- export * from './baseRecommendedForYouQueryParameters';
14
9
  export * from './baseSearchParams';
15
10
  export * from './baseSearchParamsWithoutQuery';
16
11
  export * from './baseSearchResponse';
17
- export * from './baseTrendingFacetsQuery';
18
- export * from './baseTrendingItemsQuery';
12
+ export * from './boughtTogetherQuery';
19
13
  export * from './condition';
20
14
  export * from './consequence';
21
- export * from './consequenceHide';
22
- export * from './consequenceParams';
23
- export * from './consequenceQuery';
24
- export * from './consequenceQueryObject';
25
15
  export * from './deletedAtResponse';
26
16
  export * from './distinct';
27
- export * from './edit';
28
- export * from './editType';
29
17
  export * from './errorBase';
30
18
  export * from './exactOnSingleWordQuery';
31
19
  export * from './exhaustive';
@@ -33,46 +21,52 @@ export * from './facetFilters';
33
21
  export * from './facetOrdering';
34
22
  export * from './facets';
35
23
  export * from './facetsStats';
24
+ export * from './fallbackParams';
25
+ export * from './fbtModel';
26
+ export * from './frequentlyBoughtTogether';
36
27
  export * from './getRecommendTaskResponse';
37
28
  export * from './getRecommendationsParams';
38
29
  export * from './getRecommendationsResponse';
30
+ export * from './hideConsequenceObject';
39
31
  export * from './highlightResult';
40
32
  export * from './highlightResultOption';
41
33
  export * from './ignorePlurals';
42
34
  export * from './indexSettingsAsSearchParams';
35
+ export * from './lookingSimilar';
36
+ export * from './lookingSimilarModel';
37
+ export * from './lookingSimilarQuery';
43
38
  export * from './matchLevel';
44
39
  export * from './matchedGeoLocation';
45
- export * from './mixedSearchFilters';
46
40
  export * from './mode';
47
41
  export * from './numericFilters';
48
42
  export * from './optionalFilters';
49
- export * from './params';
43
+ export * from './paramsConsequence';
50
44
  export * from './personalization';
51
- export * from './promote';
52
- export * from './promoteObjectID';
53
- export * from './promoteObjectIDs';
45
+ export * from './promoteConsequenceObject';
54
46
  export * from './queryType';
55
47
  export * from './rankingInfo';
56
48
  export * from './reRankingApplyFilter';
57
49
  export * from './recommendHit';
58
50
  export * from './recommendModels';
59
- export * from './recommendationModels';
51
+ export * from './recommendRule';
52
+ export * from './recommendRuleMetadata';
60
53
  export * from './recommendationsHit';
61
54
  export * from './recommendationsHits';
62
- export * from './recommendationsQuery';
63
55
  export * from './recommendationsRequest';
64
56
  export * from './recommendationsResults';
57
+ export * from './recommendedForYou';
65
58
  export * from './recommendedForYouModel';
66
59
  export * from './recommendedForYouQuery';
67
- export * from './recommendedForYouQueryParameters';
68
60
  export * from './redirect';
69
61
  export * from './redirectRuleIndexMetadata';
70
62
  export * from './redirectRuleIndexMetadataData';
63
+ export * from './relatedModel';
64
+ export * from './relatedProducts';
65
+ export * from './relatedQuery';
71
66
  export * from './removeStopWords';
72
67
  export * from './removeWordsIfNoResults';
73
68
  export * from './renderingContent';
74
- export * from './ruleResponse';
75
- export * from './ruleResponseMetadata';
69
+ export * from './searchParams';
76
70
  export * from './searchParamsObject';
77
71
  export * from './searchParamsQuery';
78
72
  export * from './searchRecommendRulesParams';
@@ -81,11 +75,14 @@ export * from './semanticSearch';
81
75
  export * from './snippetResult';
82
76
  export * from './snippetResultOption';
83
77
  export * from './sortRemainingBy';
78
+ export * from './supportedLanguage';
84
79
  export * from './tagFilters';
85
80
  export * from './taskStatus';
86
81
  export * from './trendingFacetHit';
82
+ export * from './trendingFacets';
87
83
  export * from './trendingFacetsModel';
88
84
  export * from './trendingFacetsQuery';
85
+ export * from './trendingItems';
89
86
  export * from './trendingItemsModel';
90
87
  export * from './trendingItemsQuery';
91
88
  export * from './typoTolerance';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../model/index.ts"],"names":[],"mappings":"AAEA,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iCAAiC,CAAC;AAChD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wCAAwC,CAAC;AACvD,cAAc,oBAAoB,CAAC;AACnC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sBAAsB,CAAC;AACrC,cAA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3B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC"}
@@ -10,42 +10,39 @@ import type { RemoveStopWords } from './removeStopWords';
10
10
  import type { RemoveWordsIfNoResults } from './removeWordsIfNoResults';
11
11
  import type { RenderingContent } from './renderingContent';
12
12
  import type { SemanticSearch } from './semanticSearch';
13
+ import type { SupportedLanguage } from './supportedLanguage';
13
14
  import type { TypoTolerance } from './typoTolerance';
14
15
  export type IndexSettingsAsSearchParams = {
15
16
  /**
16
- * Attributes used for [faceting](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/) and the [modifiers](https://www.algolia.com/doc/api-reference/api-parameters/attributesForFaceting/#modifiers) that can be applied: `filterOnly`, `searchable`, and `afterDistinct`.
17
- */
18
- attributesForFaceting?: string[];
19
- /**
20
- * Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. By default, the response includes all attributes.
17
+ * Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. Attribute names are case-sensitive. - `*` retrieves all attributes, except attributes included in the `customRanking` and `unretrievableAttributes` settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the `*`: `[\"*\", \"-ATTRIBUTE\"]`. - The `objectID` attribute is always included.
21
18
  */
22
19
  attributesToRetrieve?: string[];
23
20
  /**
24
- * Determines the order in which Algolia [returns your results](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/).
21
+ * 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/).
25
22
  */
26
23
  ranking?: string[];
27
24
  /**
28
- * Specifies the [Custom ranking criterion](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Use the `asc` and `desc` modifiers to specify the ranking order: ascending or descending.
25
+ * Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
29
26
  */
30
27
  customRanking?: string[];
31
28
  /**
32
- * Relevancy threshold below which less relevant results aren\'t included in the results.
29
+ * 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.
33
30
  */
34
31
  relevancyStrictness?: number;
35
32
  /**
36
- * Attributes to highlight. Strings that match the search query in the attributes are highlighted by surrounding them with HTML tags (`highlightPreTag` and `highlightPostTag`).
33
+ * Attributes to highlight. By default, all searchable attributes are highlighted. Use `*` to highlight all attributes or use an empty array `[]` to turn off highlighting. Attribute names are case-sensitive. With highlighting, strings that match the search query are surrounded by HTML tags defined by `highlightPreTag` and `highlightPostTag`. You can use this to visually highlight matching parts of a search query in your UI. For more information, see [Highlighting and snippeting](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/highlighting-snippeting/js/).
37
34
  */
38
35
  attributesToHighlight?: string[];
39
36
  /**
40
- * Attributes to _snippet_. \'Snippeting\' is shortening the attribute to a certain number of words. If not specified, the attribute is shortened to the 10 words around the matching string but you can specify the number. For example: `body:20`.
37
+ * Attributes for which to enable snippets. Attribute names are case-sensitive. Snippets provide additional context to matched words. If you enable snippets, they include 10 words, including the matched word. The matched word will also be wrapped by HTML tags for highlighting. You can adjust the number of words with the following notation: `ATTRIBUTE:NUMBER`, where `NUMBER` is the number of words to be extracted.
41
38
  */
42
39
  attributesToSnippet?: string[];
43
40
  /**
44
- * HTML string to insert before the highlighted parts in all highlight and snippet results.
41
+ * HTML tag to insert before the highlighted parts in all highlighted results and snippets.
45
42
  */
46
43
  highlightPreTag?: string;
47
44
  /**
48
- * HTML string to insert after the highlighted parts in all highlight and snippet results.
45
+ * HTML tag to insert after the highlighted parts in all highlighted results and snippets.
49
46
  */
50
47
  highlightPostTag?: string;
51
48
  /**
@@ -53,7 +50,7 @@ export type IndexSettingsAsSearchParams = {
53
50
  */
54
51
  snippetEllipsisText?: string;
55
52
  /**
56
- * Restrict highlighting and snippeting to items that matched the query.
53
+ * Whether to restrict highlighting and snippeting to items that at least partially matched the search query. By default, all items are highlighted and snippeted.
57
54
  */
58
55
  restrictHighlightAndSnippetArrays?: boolean;
59
56
  /**
@@ -61,42 +58,42 @@ export type IndexSettingsAsSearchParams = {
61
58
  */
62
59
  hitsPerPage?: number;
63
60
  /**
64
- * Minimum number of characters a word in the query string 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).
61
+ * 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).
65
62
  */
66
63
  minWordSizefor1Typo?: number;
67
64
  /**
68
- * Minimum number of characters a word in the query string 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).
65
+ * Minimum number of characters a word in the search query must contain to accept matches with [two typos](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/in-depth/configuring-typo-tolerance/#configuring-word-length-for-typos).
69
66
  */
70
67
  minWordSizefor2Typos?: number;
71
68
  typoTolerance?: TypoTolerance;
72
69
  /**
73
- * Whether to allow typos on numbers (\"numeric tokens\") in the query string.
70
+ * 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.
74
71
  */
75
72
  allowTyposOnNumericTokens?: boolean;
76
73
  /**
77
- * Attributes for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/).
74
+ * Attributes for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/). Attribute names are case-sensitive. Returning only exact matches can help when: - [Searching in hyphenated attributes](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/how-to/how-to-search-in-hyphenated-attributes/). - Reducing the number of matches when you have too many. This can happen with attributes that are long blocks of text, such as product descriptions. Consider alternatives such as `disableTypoToleranceOnWords` or adding synonyms if your attributes have intentional unusual spellings that might look like typos.
78
75
  */
79
76
  disableTypoToleranceOnAttributes?: string[];
80
77
  ignorePlurals?: IgnorePlurals;
81
78
  removeStopWords?: RemoveStopWords;
82
79
  /**
83
- * Characters that the engine shouldn\'t automatically [normalize](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/).
80
+ * 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.
84
81
  */
85
82
  keepDiacriticsOnCharacters?: string;
86
83
  /**
87
- * Sets your user\'s search language. This adjusts language-specific settings and features such as `ignorePlurals`, `removeStopWords`, and [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) word detection.
84
+ * 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/).
88
85
  */
89
- queryLanguages?: string[];
86
+ queryLanguages?: SupportedLanguage[];
90
87
  /**
91
- * [Splits compound words](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/#splitting-compound-words) into their component word parts in the query.
88
+ * 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.
92
89
  */
93
90
  decompoundQuery?: boolean;
94
91
  /**
95
- * Incidates whether [Rules](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/) are enabled.
92
+ * Whether to enable rules.
96
93
  */
97
94
  enableRules?: boolean;
98
95
  /**
99
- * Incidates whether [Personalization](https://www.algolia.com/doc/guides/personalization/what-is-personalization/) is enabled.
96
+ * Whether to enable Personalization.
100
97
  */
101
98
  enablePersonalization?: boolean;
102
99
  queryType?: QueryType;
@@ -104,41 +101,41 @@ export type IndexSettingsAsSearchParams = {
104
101
  mode?: Mode;
105
102
  semanticSearch?: SemanticSearch;
106
103
  /**
107
- * Enables the [advanced query syntax](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/#advanced-syntax).
104
+ * Whether to support phrase matching and excluding words from search queries. Use the `advancedSyntaxFeatures` parameter to control which feature is supported.
108
105
  */
109
106
  advancedSyntax?: boolean;
110
107
  /**
111
- * Words which should be considered [optional](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/#creating-a-list-of-optional-words) when found in a query.
108
+ * 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).
112
109
  */
113
110
  optionalWords?: string[];
114
111
  /**
115
- * 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).
112
+ * Searchable attributes for which you want to [turn off the Exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes). Attribute names are case-sensitive. This can be useful for attributes with long values, where the likelyhood of an exact match is high, such as product descriptions. Turning off the Exact ranking criterion for these attributes favors exact matching on other attributes. This reduces the impact of individual attributes with a lot of content on ranking.
116
113
  */
117
114
  disableExactOnAttributes?: string[];
118
115
  exactOnSingleWordQuery?: ExactOnSingleWordQuery;
119
116
  /**
120
- * Alternatives that should be considered an exact match by [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).
117
+ * 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.
121
118
  */
122
119
  alternativesAsExact?: AlternativesAsExact[];
123
120
  /**
124
- * Allows you to specify which advanced syntax features are active when `advancedSyntax` is enabled.
121
+ * 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.
125
122
  */
126
123
  advancedSyntaxFeatures?: AdvancedSyntaxFeatures[];
127
124
  distinct?: Distinct;
128
125
  /**
129
- * Whether to highlight and snippet the original word that matches the synonym or the synonym itself.
126
+ * 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.
130
127
  */
131
128
  replaceSynonymsInHighlight?: boolean;
132
129
  /**
133
- * Precision of the [proximity ranking criterion](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#proximity).
130
+ * 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.
134
131
  */
135
132
  minProximity?: number;
136
133
  /**
137
- * Attributes to include in the API response for search and browse queries.
134
+ * 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.
138
135
  */
139
136
  responseFields?: string[];
140
137
  /**
141
- * Maximum number of facet hits to return when [searching for facet values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values).
138
+ * 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).
142
139
  */
143
140
  maxFacetHits?: number;
144
141
  /**
@@ -146,16 +143,16 @@ export type IndexSettingsAsSearchParams = {
146
143
  */
147
144
  maxValuesPerFacet?: number;
148
145
  /**
149
- * Controls how facet values are fetched.
146
+ * 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/).
150
147
  */
151
148
  sortFacetValuesBy?: string;
152
149
  /**
153
- * When the [Attribute criterion is ranked above Proximity](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#attribute-and-proximity-combinations) in your ranking formula, Proximity is used to select which searchable attribute is matched in the Attribute ranking stage.
150
+ * 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.
154
151
  */
155
152
  attributeCriteriaComputedByMinProximity?: boolean;
156
153
  renderingContent?: RenderingContent;
157
154
  /**
158
- * Indicates whether this search will use [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/).
155
+ * 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.
159
156
  */
160
157
  enableReRanking?: boolean;
161
158
  reRankingApplyFilter?: ReRankingApplyFilter | null;
@@ -1 +1 @@
1
- {"version":3,"file":"indexSettingsAsSearchParams.d.ts","sourceRoot":"","sources":["../../model/indexSettingsAsSearchParams.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAA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LookingSimilarModel } from './lookingSimilarModel';
3
+ export type LookingSimilar = {
4
+ model: LookingSimilarModel;
5
+ /**
6
+ * Unique record identifier.
7
+ */
8
+ objectID: string;
9
+ fallbackParameters?: FallbackParams;
10
+ };
11
+ //# sourceMappingURL=lookingSimilar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lookingSimilar.d.ts","sourceRoot":"","sources":["../../model/lookingSimilar.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,mBAAmB,CAAC;IAE3B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,kBAAkB,CAAC,EAAE,cAAc,CAAC;CACrC,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Looking similar model. This model recommends items that look similar to the item with the ID `objectID` based on image attributes in your index.
3
+ */
4
+ export type LookingSimilarModel = 'looking-similar';
5
+ //# sourceMappingURL=lookingSimilarModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lookingSimilarModel.d.ts","sourceRoot":"","sources":["../../model/lookingSimilarModel.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,iBAAiB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { BaseRecommendRequest } from './baseRecommendRequest';
2
+ import type { LookingSimilar } from './lookingSimilar';
3
+ export type LookingSimilarQuery = BaseRecommendRequest & LookingSimilar;
4
+ //# sourceMappingURL=lookingSimilarQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lookingSimilarQuery.d.ts","sourceRoot":"","sources":["../../model/lookingSimilarQuery.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,MAAM,MAAM,mBAAmB,GAAG,oBAAoB,GAAG,cAAc,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Indicates how well the attribute matched the search query.
2
+ * Whether the whole query string matches or only a part.
3
3
  */
4
4
  export type MatchLevel = 'full' | 'none' | 'partial';
5
5
  //# sourceMappingURL=matchLevel.d.ts.map
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Search mode the index will use to query for results.
2
+ * Search mode the index will use to query for results. This setting only applies to indices, for which Algolia enabled NeuralSearch for you.
3
3
  */
4
4
  export type Mode = 'keywordSearch' | 'neuralSearch';
5
5
  //# sourceMappingURL=mode.d.ts.map
@@ -1,6 +1,5 @@
1
- import type { MixedSearchFilters } from './mixedSearchFilters';
2
1
  /**
3
- * [Filter on numeric attributes](https://www.algolia.com/doc/api-reference/api-parameters/numericFilters/).
2
+ * Filter by numeric facets. **Prefer using the `filters` parameter, which supports all filter types and combinations with boolean operators.** You can use numeric comparison operators: `<`, `<=`, `=`, `!=`, `>`, `>=`. Comparsions are precise up to 3 decimals. You can also provide ranges: `facet:<lower> TO <upper>`. The range includes the lower and upper boundaries. The same combination rules apply as for `facetFilters`.
4
3
  */
5
- export type NumericFilters = MixedSearchFilters[] | string;
4
+ export type NumericFilters = NumericFilters[] | string;
6
5
  //# sourceMappingURL=numericFilters.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"numericFilters.d.ts","sourceRoot":"","sources":["../../model/numericFilters.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,kBAAkB,EAAE,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"numericFilters.d.ts","sourceRoot":"","sources":["../../model/numericFilters.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,cAAc,EAAE,GAAG,MAAM,CAAC"}
@@ -1,6 +1,5 @@
1
- import type { MixedSearchFilters } from './mixedSearchFilters';
2
1
  /**
3
- * Create filters to boost or demote records. Records that match the filter are ranked higher for positive and lower for negative optional filters. In contrast to regular filters, records that don\'t match the optional filter are still included in the results, only their ranking is affected.
2
+ * Filters to promote or demote records in the search results. Optional filters work like facet filters, but they don\'t exclude records from the search results. Records that match the optional filter rank before records that don\'t match. If you\'re using a negative filter `facet:-value`, matching records rank after records that don\'t match. - Optional filters don\'t work on virtual replicas. - Optional filters are applied _after_ sort-by attributes. - Optional filters don\'t work with numeric attributes.
4
3
  */
5
- export type OptionalFilters = MixedSearchFilters[] | string;
4
+ export type OptionalFilters = OptionalFilters[] | string;
6
5
  //# sourceMappingURL=optionalFilters.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"optionalFilters.d.ts","sourceRoot":"","sources":["../../model/optionalFilters.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,kBAAkB,EAAE,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"optionalFilters.d.ts","sourceRoot":"","sources":["../../model/optionalFilters.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,eAAe,EAAE,GAAG,MAAM,CAAC"}