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

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 (322) 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/anchoring.d.ts +5 -0
  10. package/dist/model/anchoring.d.ts.map +1 -0
  11. package/dist/model/aroundPrecision.d.ts +6 -0
  12. package/dist/model/aroundPrecision.d.ts.map +1 -0
  13. package/dist/model/aroundPrecisionFromValueInner.d.ts +14 -0
  14. package/dist/model/aroundPrecisionFromValueInner.d.ts.map +1 -0
  15. package/dist/model/aroundRadius.d.ts +5 -5
  16. package/dist/model/aroundRadius.d.ts.map +1 -1
  17. package/dist/model/aroundRadiusAll.d.ts +4 -1
  18. package/dist/model/aroundRadiusAll.d.ts.map +1 -1
  19. package/dist/model/automaticFacetFilter.d.ts +18 -0
  20. package/dist/model/automaticFacetFilter.d.ts.map +1 -0
  21. package/dist/model/automaticFacetFilters.d.ts +6 -0
  22. package/dist/model/automaticFacetFilters.d.ts.map +1 -0
  23. package/dist/model/baseRecommendRequest.d.ts +14 -17
  24. package/dist/model/baseRecommendRequest.d.ts.map +1 -1
  25. package/dist/model/baseRecommendationsQuery.d.ts +12 -0
  26. package/dist/model/baseRecommendationsQuery.d.ts.map +1 -0
  27. package/dist/model/baseRecommendedForYouQuery.d.ts +8 -0
  28. package/dist/model/baseRecommendedForYouQuery.d.ts.map +1 -0
  29. package/dist/model/baseRecommendedForYouQueryParameters.d.ts +7 -0
  30. package/dist/model/baseRecommendedForYouQueryParameters.d.ts.map +1 -0
  31. package/dist/model/baseSearchParams.d.ts +3 -3
  32. package/dist/model/baseSearchParams.d.ts.map +1 -1
  33. package/dist/model/baseSearchParamsWithoutQuery.d.ts +114 -122
  34. package/dist/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  35. package/dist/model/baseSearchResponse.d.ts +109 -101
  36. package/dist/model/baseSearchResponse.d.ts.map +1 -1
  37. package/dist/model/baseTrendingFacetsQuery.d.ts +9 -0
  38. package/dist/model/baseTrendingFacetsQuery.d.ts.map +1 -0
  39. package/dist/model/baseTrendingItemsQuery.d.ts +16 -0
  40. package/dist/model/baseTrendingItemsQuery.d.ts.map +1 -0
  41. package/dist/model/clientMethodProps.d.ts +127 -60
  42. package/dist/model/clientMethodProps.d.ts.map +1 -1
  43. package/dist/model/condition.d.ts +21 -0
  44. package/dist/model/condition.d.ts.map +1 -0
  45. package/dist/model/consequence.d.ts +26 -0
  46. package/dist/model/consequence.d.ts.map +1 -0
  47. package/dist/model/consequenceHide.d.ts +10 -0
  48. package/dist/model/consequenceHide.d.ts.map +1 -0
  49. package/dist/model/consequenceParams.d.ts +5 -0
  50. package/dist/model/consequenceParams.d.ts.map +1 -0
  51. package/dist/model/consequenceQuery.d.ts +6 -0
  52. package/dist/model/consequenceQuery.d.ts.map +1 -0
  53. package/dist/model/consequenceQueryObject.d.ts +12 -0
  54. package/dist/model/consequenceQueryObject.d.ts.map +1 -0
  55. package/dist/model/deletedAtResponse.d.ts +14 -0
  56. package/dist/model/deletedAtResponse.d.ts.map +1 -0
  57. package/dist/model/distinct.d.ts +4 -4
  58. package/dist/model/distinct.d.ts.map +1 -1
  59. package/dist/model/edit.d.ts +13 -0
  60. package/dist/model/edit.d.ts.map +1 -0
  61. package/dist/model/editType.d.ts +5 -0
  62. package/dist/model/editType.d.ts.map +1 -0
  63. package/dist/model/errorBase.d.ts +6 -6
  64. package/dist/model/errorBase.d.ts.map +1 -1
  65. package/dist/model/exactOnSingleWordQuery.d.ts +4 -4
  66. package/dist/model/exactOnSingleWordQuery.d.ts.map +1 -1
  67. package/dist/model/exhaustive.d.ts +26 -0
  68. package/dist/model/exhaustive.d.ts.map +1 -0
  69. package/dist/model/facetFilters.d.ts +5 -5
  70. package/dist/model/facetFilters.d.ts.map +1 -1
  71. package/dist/model/facetOrdering.d.ts +12 -12
  72. package/dist/model/facetOrdering.d.ts.map +1 -1
  73. package/dist/model/facets.d.ts +9 -9
  74. package/dist/model/facets.d.ts.map +1 -1
  75. package/dist/model/facetsStats.d.ts +18 -18
  76. package/dist/model/facetsStats.d.ts.map +1 -1
  77. package/dist/model/getRecommendTaskResponse.d.ts +5 -0
  78. package/dist/model/getRecommendTaskResponse.d.ts.map +1 -0
  79. package/dist/model/getRecommendationsParams.d.ts +10 -10
  80. package/dist/model/getRecommendationsParams.d.ts.map +1 -1
  81. package/dist/model/getRecommendationsResponse.d.ts +4 -4
  82. package/dist/model/getRecommendationsResponse.d.ts.map +1 -1
  83. package/dist/model/highlightResult.d.ts +2 -2
  84. package/dist/model/highlightResult.d.ts.map +1 -1
  85. package/dist/model/highlightResultOption.d.ts +19 -19
  86. package/dist/model/highlightResultOption.d.ts.map +1 -1
  87. package/dist/model/ignorePlurals.d.ts +5 -4
  88. package/dist/model/ignorePlurals.d.ts.map +1 -1
  89. package/dist/model/index.d.ts +95 -53
  90. package/dist/model/index.d.ts.map +1 -1
  91. package/dist/model/indexSettingsAsSearchParams.d.ts +159 -160
  92. package/dist/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  93. package/dist/model/matchLevel.d.ts +4 -4
  94. package/dist/model/matchLevel.d.ts.map +1 -1
  95. package/dist/model/matchedGeoLocation.d.ts +14 -14
  96. package/dist/model/matchedGeoLocation.d.ts.map +1 -1
  97. package/dist/model/mixedSearchFilters.d.ts +1 -1
  98. package/dist/model/mixedSearchFilters.d.ts.map +1 -1
  99. package/dist/model/mode.d.ts +5 -0
  100. package/dist/model/mode.d.ts.map +1 -0
  101. package/dist/model/numericFilters.d.ts +5 -5
  102. package/dist/model/numericFilters.d.ts.map +1 -1
  103. package/dist/model/optionalFilters.d.ts +5 -5
  104. package/dist/model/optionalFilters.d.ts.map +1 -1
  105. package/dist/model/params.d.ts +13 -0
  106. package/dist/model/params.d.ts.map +1 -0
  107. package/dist/model/personalization.d.ts +14 -14
  108. package/dist/model/personalization.d.ts.map +1 -1
  109. package/dist/model/promote.d.ts +4 -0
  110. package/dist/model/promote.d.ts.map +1 -0
  111. package/dist/model/promoteObjectID.d.ts +14 -0
  112. package/dist/model/promoteObjectID.d.ts.map +1 -0
  113. package/dist/model/promoteObjectIDs.d.ts +14 -0
  114. package/dist/model/promoteObjectIDs.d.ts.map +1 -0
  115. package/dist/model/queryType.d.ts +4 -4
  116. package/dist/model/queryType.d.ts.map +1 -1
  117. package/dist/model/rankingInfo.d.ts +53 -50
  118. package/dist/model/rankingInfo.d.ts.map +1 -1
  119. package/dist/model/reRankingApplyFilter.d.ts +5 -5
  120. package/dist/model/reRankingApplyFilter.d.ts.map +1 -1
  121. package/dist/model/recommendHit.d.ts +26 -26
  122. package/dist/model/recommendHit.d.ts.map +1 -1
  123. package/dist/model/recommendModels.d.ts +2 -0
  124. package/dist/model/recommendModels.d.ts.map +1 -0
  125. package/dist/model/recommendationModels.d.ts +4 -4
  126. package/dist/model/recommendationModels.d.ts.map +1 -1
  127. package/dist/model/recommendationsHit.d.ts +4 -0
  128. package/dist/model/recommendationsHit.d.ts.map +1 -0
  129. package/dist/model/recommendationsHits.d.ts +13 -0
  130. package/dist/model/recommendationsHits.d.ts.map +1 -0
  131. package/dist/model/recommendationsQuery.d.ts +4 -0
  132. package/dist/model/recommendationsQuery.d.ts.map +1 -0
  133. package/dist/model/recommendationsRequest.d.ts +5 -3
  134. package/dist/model/recommendationsRequest.d.ts.map +1 -1
  135. package/dist/model/recommendationsResults.d.ts +4 -0
  136. package/dist/model/recommendationsResults.d.ts.map +1 -0
  137. package/dist/model/recommendedForYouModel.d.ts +5 -0
  138. package/dist/model/recommendedForYouModel.d.ts.map +1 -0
  139. package/dist/model/recommendedForYouQuery.d.ts +4 -0
  140. package/dist/model/recommendedForYouQuery.d.ts.map +1 -0
  141. package/dist/model/recommendedForYouQueryParameters.d.ts +4 -0
  142. package/dist/model/recommendedForYouQueryParameters.d.ts.map +1 -0
  143. package/dist/model/redirect.d.ts +8 -0
  144. package/dist/model/redirect.d.ts.map +1 -0
  145. package/dist/model/redirectRuleIndexMetadata.d.ts +21 -0
  146. package/dist/model/redirectRuleIndexMetadata.d.ts.map +1 -0
  147. package/dist/model/redirectRuleIndexMetadataData.d.ts +7 -0
  148. package/dist/model/redirectRuleIndexMetadataData.d.ts.map +1 -0
  149. package/dist/model/removeStopWords.d.ts +5 -4
  150. package/dist/model/removeStopWords.d.ts.map +1 -1
  151. package/dist/model/removeWordsIfNoResults.d.ts +4 -4
  152. package/dist/model/removeWordsIfNoResults.d.ts.map +1 -1
  153. package/dist/model/renderingContent.d.ts +7 -7
  154. package/dist/model/renderingContent.d.ts.map +1 -1
  155. package/dist/model/ruleResponse.d.ts +27 -0
  156. package/dist/model/ruleResponse.d.ts.map +1 -0
  157. package/dist/model/ruleResponseMetadata.d.ts +7 -0
  158. package/dist/model/ruleResponseMetadata.d.ts.map +1 -0
  159. package/dist/model/searchParamsObject.d.ts +3 -3
  160. package/dist/model/searchParamsObject.d.ts.map +1 -1
  161. package/dist/model/searchParamsQuery.d.ts +6 -6
  162. package/dist/model/searchParamsQuery.d.ts.map +1 -1
  163. package/dist/model/searchRecommendRulesParams.d.ts +26 -0
  164. package/dist/model/searchRecommendRulesParams.d.ts.map +1 -0
  165. package/dist/model/searchRecommendRulesResponse.d.ts +20 -0
  166. package/dist/model/searchRecommendRulesResponse.d.ts.map +1 -0
  167. package/dist/model/semanticSearch.d.ts +10 -0
  168. package/dist/model/semanticSearch.d.ts.map +1 -0
  169. package/dist/model/snippetResult.d.ts +2 -2
  170. package/dist/model/snippetResult.d.ts.map +1 -1
  171. package/dist/model/snippetResultOption.d.ts +11 -11
  172. package/dist/model/snippetResultOption.d.ts.map +1 -1
  173. package/dist/model/sortRemainingBy.d.ts +4 -4
  174. package/dist/model/sortRemainingBy.d.ts.map +1 -1
  175. package/dist/model/supportedLanguage.d.ts +5 -0
  176. package/dist/model/supportedLanguage.d.ts.map +1 -0
  177. package/dist/model/tagFilters.d.ts +5 -5
  178. package/dist/model/tagFilters.d.ts.map +1 -1
  179. package/dist/model/taskStatus.d.ts +5 -0
  180. package/dist/model/taskStatus.d.ts.map +1 -0
  181. package/dist/model/trendingFacetHit.d.ts +18 -0
  182. package/dist/model/trendingFacetHit.d.ts.map +1 -0
  183. package/dist/model/trendingFacetsModel.d.ts +5 -0
  184. package/dist/model/trendingFacetsModel.d.ts.map +1 -0
  185. package/dist/model/trendingFacetsQuery.d.ts +4 -0
  186. package/dist/model/trendingFacetsQuery.d.ts.map +1 -0
  187. package/dist/model/trendingItemsModel.d.ts +5 -0
  188. package/dist/model/trendingItemsModel.d.ts.map +1 -0
  189. package/dist/model/trendingItemsQuery.d.ts +4 -0
  190. package/dist/model/trendingItemsQuery.d.ts.map +1 -0
  191. package/dist/model/typoTolerance.d.ts +5 -5
  192. package/dist/model/typoTolerance.d.ts.map +1 -1
  193. package/dist/model/typoToleranceEnum.d.ts +4 -1
  194. package/dist/model/typoToleranceEnum.d.ts.map +1 -1
  195. package/dist/model/value.d.ts +8 -8
  196. package/dist/model/value.d.ts.map +1 -1
  197. package/dist/recommend.cjs +390 -0
  198. package/dist/recommend.esm.browser.js +589 -475
  199. package/dist/recommend.esm.node.js +379 -235
  200. package/dist/recommend.umd.js +2 -2
  201. package/dist/src/recommendClient.d.ts +131 -81
  202. package/dist/src/recommendClient.d.ts.map +1 -1
  203. package/index.js +1 -1
  204. package/model/advancedSyntaxFeatures.ts +1 -1
  205. package/model/alternativesAsExact.ts +1 -1
  206. package/model/anchoring.ts +6 -0
  207. package/model/aroundPrecision.ts +8 -0
  208. package/model/aroundPrecisionFromValueInner.ts +16 -0
  209. package/model/aroundRadius.ts +2 -2
  210. package/model/aroundRadiusAll.ts +4 -1
  211. package/model/automaticFacetFilter.ts +21 -0
  212. package/model/automaticFacetFilters.ts +8 -0
  213. package/model/baseRecommendRequest.ts +5 -11
  214. package/model/baseRecommendationsQuery.ts +17 -0
  215. package/model/baseRecommendedForYouQuery.ts +12 -0
  216. package/model/baseRecommendedForYouQueryParameters.ts +8 -0
  217. package/model/baseSearchParams.ts +1 -1
  218. package/model/baseSearchParamsWithoutQuery.ts +36 -46
  219. package/model/baseSearchResponse.ts +42 -31
  220. package/model/baseTrendingFacetsQuery.ts +12 -0
  221. package/model/baseTrendingItemsQuery.ts +22 -0
  222. package/model/clientMethodProps.ts +91 -19
  223. package/model/condition.ts +27 -0
  224. package/model/consequence.ts +32 -0
  225. package/model/consequenceHide.ts +11 -0
  226. package/model/consequenceParams.ts +9 -0
  227. package/model/consequenceQuery.ts +8 -0
  228. package/model/consequenceQueryObject.ts +15 -0
  229. package/model/deletedAtResponse.ts +16 -0
  230. package/model/distinct.ts +2 -2
  231. package/model/edit.ts +17 -0
  232. package/model/editType.ts +6 -0
  233. package/model/errorBase.ts +1 -1
  234. package/model/exactOnSingleWordQuery.ts +2 -2
  235. package/model/exhaustive.ts +31 -0
  236. package/model/facetFilters.ts +2 -2
  237. package/model/facetOrdering.ts +3 -3
  238. package/model/facets.ts +3 -3
  239. package/model/facetsStats.ts +5 -5
  240. package/model/getRecommendTaskResponse.ts +7 -0
  241. package/model/getRecommendationsParams.ts +3 -3
  242. package/model/getRecommendationsResponse.ts +3 -3
  243. package/model/highlightResult.ts +5 -2
  244. package/model/highlightResultOption.ts +4 -4
  245. package/model/ignorePlurals.ts +5 -3
  246. package/model/index.ts +50 -8
  247. package/model/indexSettingsAsSearchParams.ts +54 -54
  248. package/model/matchLevel.ts +2 -2
  249. package/model/matchedGeoLocation.ts +1 -1
  250. package/model/mixedSearchFilters.ts +1 -1
  251. package/model/mode.ts +6 -0
  252. package/model/numericFilters.ts +2 -2
  253. package/model/optionalFilters.ts +2 -2
  254. package/model/params.ts +18 -0
  255. package/model/personalization.ts +1 -1
  256. package/model/promote.ts +6 -0
  257. package/model/promoteObjectID.ts +16 -0
  258. package/model/promoteObjectIDs.ts +16 -0
  259. package/model/queryType.ts +2 -2
  260. package/model/rankingInfo.ts +11 -8
  261. package/model/reRankingApplyFilter.ts +2 -2
  262. package/model/recommendHit.ts +6 -6
  263. package/model/recommendModels.ts +7 -0
  264. package/model/recommendationModels.ts +2 -2
  265. package/model/recommendationsHit.ts +6 -0
  266. package/model/recommendationsHits.ts +17 -0
  267. package/model/recommendationsQuery.ts +7 -0
  268. package/model/recommendationsRequest.ts +10 -4
  269. package/model/recommendationsResults.ts +6 -0
  270. package/model/recommendedForYouModel.ts +6 -0
  271. package/model/recommendedForYouQuery.ts +7 -0
  272. package/model/recommendedForYouQueryParameters.ts +7 -0
  273. package/model/redirect.ts +10 -0
  274. package/model/redirectRuleIndexMetadata.ts +27 -0
  275. package/model/redirectRuleIndexMetadataData.ts +8 -0
  276. package/model/removeStopWords.ts +5 -3
  277. package/model/removeWordsIfNoResults.ts +2 -2
  278. package/model/renderingContent.ts +2 -2
  279. package/model/ruleResponse.ts +34 -0
  280. package/model/ruleResponseMetadata.ts +8 -0
  281. package/model/searchParamsObject.ts +1 -1
  282. package/model/searchParamsQuery.ts +2 -2
  283. package/model/searchRecommendRulesParams.ts +31 -0
  284. package/model/searchRecommendRulesResponse.ts +25 -0
  285. package/model/semanticSearch.ts +11 -0
  286. package/model/snippetResult.ts +5 -2
  287. package/model/snippetResultOption.ts +3 -3
  288. package/model/sortRemainingBy.ts +2 -2
  289. package/model/supportedLanguage.ts +74 -0
  290. package/model/tagFilters.ts +2 -2
  291. package/model/taskStatus.ts +6 -0
  292. package/model/trendingFacetHit.ts +21 -0
  293. package/model/trendingFacetsModel.ts +6 -0
  294. package/model/trendingFacetsQuery.ts +7 -0
  295. package/model/trendingItemsModel.ts +6 -0
  296. package/model/trendingItemsQuery.ts +6 -0
  297. package/model/typoTolerance.ts +2 -2
  298. package/model/typoToleranceEnum.ts +4 -1
  299. package/model/value.ts +2 -2
  300. package/package.json +10 -9
  301. package/dist/model/baseRecommendationRequest.d.ts +0 -9
  302. package/dist/model/baseRecommendationRequest.d.ts.map +0 -1
  303. package/dist/model/baseTrendingRequest.d.ts +0 -13
  304. package/dist/model/baseTrendingRequest.d.ts.map +0 -1
  305. package/dist/model/recommendHits.d.ts +0 -5
  306. package/dist/model/recommendHits.d.ts.map +0 -1
  307. package/dist/model/recommendationRequest.d.ts +0 -4
  308. package/dist/model/recommendationRequest.d.ts.map +0 -1
  309. package/dist/model/recommendationsResponse.d.ts +0 -4
  310. package/dist/model/recommendationsResponse.d.ts.map +0 -1
  311. package/dist/model/trendingModels.d.ts +0 -5
  312. package/dist/model/trendingModels.d.ts.map +0 -1
  313. package/dist/model/trendingRequest.d.ts +0 -4
  314. package/dist/model/trendingRequest.d.ts.map +0 -1
  315. package/dist/recommend.cjs.js +0 -248
  316. package/model/baseRecommendationRequest.ts +0 -12
  317. package/model/baseTrendingRequest.ts +0 -17
  318. package/model/recommendHits.ts +0 -7
  319. package/model/recommendationRequest.ts +0 -7
  320. package/model/recommendationsResponse.ts +0 -6
  321. package/model/trendingModels.ts +0 -6
  322. package/model/trendingRequest.ts +0 -6
@@ -1,161 +1,160 @@
1
- import type { AdvancedSyntaxFeatures } from './advancedSyntaxFeatures';
2
- import type { AlternativesAsExact } from './alternativesAsExact';
3
- import type { Distinct } from './distinct';
4
- import type { ExactOnSingleWordQuery } from './exactOnSingleWordQuery';
5
- import type { IgnorePlurals } from './ignorePlurals';
6
- import type { QueryType } from './queryType';
7
- import type { RemoveStopWords } from './removeStopWords';
8
- import type { RemoveWordsIfNoResults } from './removeWordsIfNoResults';
9
- import type { RenderingContent } from './renderingContent';
10
- import type { TypoTolerance } from './typoTolerance';
11
- export declare type IndexSettingsAsSearchParams = {
12
- /**
13
- * The complete list of attributes that will be used for faceting.
14
- */
15
- attributesForFaceting?: string[];
16
- /**
17
- * List of attributes that can\'t be retrieved at query time.
18
- */
19
- unretrievableAttributes?: string[];
20
- /**
21
- * This parameter controls which attributes to retrieve and which not to retrieve.
22
- */
23
- attributesToRetrieve?: string[];
24
- /**
25
- * Restricts a given query to look in only a subset of your searchable attributes.
26
- */
27
- restrictSearchableAttributes?: string[];
28
- /**
29
- * Controls how Algolia should sort your results.
30
- */
31
- ranking?: string[];
32
- /**
33
- * Specifies the custom ranking criterion.
34
- */
35
- customRanking?: string[];
36
- /**
37
- * Controls the relevancy threshold below which less relevant results aren\'t included in the results.
38
- */
39
- relevancyStrictness?: number;
40
- /**
41
- * List of attributes to highlight.
42
- */
43
- attributesToHighlight?: string[];
44
- /**
45
- * List of attributes to snippet, with an optional maximum number of words to snippet.
46
- */
47
- attributesToSnippet?: string[];
48
- /**
49
- * The HTML string to insert before the highlighted parts in all highlight and snippet results.
50
- */
51
- highlightPreTag?: string;
52
- /**
53
- * The HTML string to insert after the highlighted parts in all highlight and snippet results.
54
- */
55
- highlightPostTag?: string;
56
- /**
57
- * String used as an ellipsis indicator when a snippet is truncated.
58
- */
59
- snippetEllipsisText?: string;
60
- /**
61
- * Restrict highlighting and snippeting to items that matched the query.
62
- */
63
- restrictHighlightAndSnippetArrays?: boolean;
64
- /**
65
- * Set the number of hits per page.
66
- */
67
- hitsPerPage?: number;
68
- /**
69
- * Minimum number of characters a word in the query string must contain to accept matches with 1 typo.
70
- */
71
- minWordSizefor1Typo?: number;
72
- /**
73
- * Minimum number of characters a word in the query string must contain to accept matches with 2 typos.
74
- */
75
- minWordSizefor2Typos?: number;
76
- typoTolerance?: TypoTolerance;
77
- /**
78
- * Whether to allow typos on numbers (\"numeric tokens\") in the query string.
79
- */
80
- allowTyposOnNumericTokens?: boolean;
81
- /**
82
- * List of attributes on which you want to disable typo tolerance.
83
- */
84
- disableTypoToleranceOnAttributes?: string[];
85
- ignorePlurals?: IgnorePlurals;
86
- removeStopWords?: RemoveStopWords;
87
- /**
88
- * List of characters that the engine shouldn\'t automatically normalize.
89
- */
90
- keepDiacriticsOnCharacters?: string;
91
- /**
92
- * Sets the languages to be used by language-specific settings and functionalities such as ignorePlurals, removeStopWords, and CJK word-detection.
93
- */
94
- queryLanguages?: string[];
95
- /**
96
- * Splits compound words into their composing atoms in the query.
97
- */
98
- decompoundQuery?: boolean;
99
- /**
100
- * Whether Rules should be globally enabled.
101
- */
102
- enableRules?: boolean;
103
- /**
104
- * Enable the Personalization feature.
105
- */
106
- enablePersonalization?: boolean;
107
- queryType?: QueryType;
108
- removeWordsIfNoResults?: RemoveWordsIfNoResults;
109
- /**
110
- * Enables the advanced query syntax.
111
- */
112
- advancedSyntax?: boolean;
113
- /**
114
- * A list of words that should be considered as optional when found in the query.
115
- */
116
- optionalWords?: string[];
117
- /**
118
- * List of attributes on which you want to disable the exact ranking criterion.
119
- */
120
- disableExactOnAttributes?: string[];
121
- exactOnSingleWordQuery?: ExactOnSingleWordQuery;
122
- /**
123
- * List of alternatives that should be considered an exact match by the exact ranking criterion.
124
- */
125
- alternativesAsExact?: AlternativesAsExact[];
126
- /**
127
- * Allows you to specify which advanced syntax features are active when ‘advancedSyntax\' is enabled.
128
- */
129
- advancedSyntaxFeatures?: AdvancedSyntaxFeatures[];
130
- distinct?: Distinct;
131
- /**
132
- * Name of the de-duplication attribute to be used with the distinct feature.
133
- */
134
- attributeForDistinct?: string;
135
- /**
136
- * Whether to take into account an index\'s synonyms for a particular search.
137
- */
138
- synonyms?: boolean;
139
- /**
140
- * Whether to highlight and snippet the original word that matches the synonym or the synonym itself.
141
- */
142
- replaceSynonymsInHighlight?: boolean;
143
- /**
144
- * Precision of the proximity ranking criterion.
145
- */
146
- minProximity?: number;
147
- /**
148
- * Choose which fields to return in the API response. This parameters applies to search and browse queries.
149
- */
150
- responseFields?: string[];
151
- /**
152
- * 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.
153
- */
154
- maxFacetHits?: number;
155
- /**
156
- * 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.
157
- */
158
- attributeCriteriaComputedByMinProximity?: boolean;
159
- renderingContent?: RenderingContent;
160
- };
1
+ import type { AdvancedSyntaxFeatures } from './advancedSyntaxFeatures';
2
+ import type { AlternativesAsExact } from './alternativesAsExact';
3
+ import type { Distinct } from './distinct';
4
+ import type { ExactOnSingleWordQuery } from './exactOnSingleWordQuery';
5
+ import type { IgnorePlurals } from './ignorePlurals';
6
+ import type { Mode } from './mode';
7
+ import type { QueryType } from './queryType';
8
+ import type { ReRankingApplyFilter } from './reRankingApplyFilter';
9
+ import type { RemoveStopWords } from './removeStopWords';
10
+ import type { RemoveWordsIfNoResults } from './removeWordsIfNoResults';
11
+ import type { RenderingContent } from './renderingContent';
12
+ import type { SemanticSearch } from './semanticSearch';
13
+ import type { SupportedLanguage } from './supportedLanguage';
14
+ import type { TypoTolerance } from './typoTolerance';
15
+ export type IndexSettingsAsSearchParams = {
16
+ /**
17
+ * 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.
18
+ */
19
+ attributesToRetrieve?: string[];
20
+ /**
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** <dl> <dt><code>asc(\"ATTRIBUTE\")</code></dt> <dd>Sort the index by the values of an attribute, in ascending order.</dd> <dt><code>desc(\"ATTRIBUTE\")</code></dt> <dd>Sort the index by the values of an attribute, in descending order.</dd> </dl> 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/).
22
+ */
23
+ ranking?: string[];
24
+ /**
25
+ * 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** <dl> <dt><code>asc(\"ATTRIBUTE\")</code></dt> <dd>Sort the index by the values of an attribute, in ascending order.</dd> <dt><code>desc(\"ATTRIBUTE\")</code></dt> <dd>Sort the index by the values of an attribute, in descending order.</dd> </dl> 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.
26
+ */
27
+ customRanking?: string[];
28
+ /**
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.
30
+ */
31
+ relevancyStrictness?: number;
32
+ /**
33
+ * Attributes to highlight. By default, all searchable attributes are highlighted. Use `*` to highlight all attributes or use an empty array `[]` to turn off highlighting. With highlighting, strings that match the search query are surrounded by HTML tags defined by `highlightPreTag` and `highlightPostTag`. You can use this to visually highlight matching parts of a search query in your UI. For more information, see [Highlighting and snippeting](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/highlighting-snippeting/js/).
34
+ */
35
+ attributesToHighlight?: string[];
36
+ /**
37
+ * 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.
38
+ */
39
+ attributesToSnippet?: string[];
40
+ /**
41
+ * HTML tag to insert before the highlighted parts in all highlighted results and snippets.
42
+ */
43
+ highlightPreTag?: string;
44
+ /**
45
+ * HTML tag to insert after the highlighted parts in all highlighted results and snippets.
46
+ */
47
+ highlightPostTag?: string;
48
+ /**
49
+ * String used as an ellipsis indicator when a snippet is truncated.
50
+ */
51
+ snippetEllipsisText?: string;
52
+ /**
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.
54
+ */
55
+ restrictHighlightAndSnippetArrays?: boolean;
56
+ /**
57
+ * Number of hits per page.
58
+ */
59
+ hitsPerPage?: number;
60
+ /**
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).
62
+ */
63
+ minWordSizefor1Typo?: number;
64
+ /**
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).
66
+ */
67
+ minWordSizefor2Typos?: number;
68
+ typoTolerance?: TypoTolerance;
69
+ /**
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.
71
+ */
72
+ allowTyposOnNumericTokens?: boolean;
73
+ /**
74
+ * 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.
75
+ */
76
+ disableTypoToleranceOnAttributes?: string[];
77
+ ignorePlurals?: IgnorePlurals;
78
+ removeStopWords?: RemoveStopWords;
79
+ /**
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.
81
+ */
82
+ keepDiacriticsOnCharacters?: string;
83
+ /**
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/).
85
+ */
86
+ queryLanguages?: SupportedLanguage[];
87
+ /**
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.
89
+ */
90
+ decompoundQuery?: boolean;
91
+ /**
92
+ * Whether to enable rules.
93
+ */
94
+ enableRules?: boolean;
95
+ /**
96
+ * Whether to enable Personalization.
97
+ */
98
+ enablePersonalization?: boolean;
99
+ queryType?: QueryType;
100
+ removeWordsIfNoResults?: RemoveWordsIfNoResults;
101
+ mode?: Mode;
102
+ semanticSearch?: SemanticSearch;
103
+ /**
104
+ * Whether to support phrase matching and excluding words from search queries. Use the `advancedSyntaxFeatures` parameter to control which feature is supported.
105
+ */
106
+ advancedSyntax?: boolean;
107
+ /**
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).
109
+ */
110
+ optionalWords?: string[];
111
+ /**
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). 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.
113
+ */
114
+ disableExactOnAttributes?: string[];
115
+ exactOnSingleWordQuery?: ExactOnSingleWordQuery;
116
+ /**
117
+ * Alternatives of query words that should be considered as exact matches by the Exact ranking criterion. <dl> <dt><code>ignorePlurals</code></dt> <dd> Plurals and similar declensions added by the `ignorePlurals` setting are considered exact matches. </dd> <dt><code>singleWordSynonym</code></dt> <dd> Single-word synonyms, such as \"NY/NYC\" are considered exact matches. </dd> <dt><code>multiWordsSynonym</code></dt> <dd> Multi-word synonyms, such as \"NY/New York\" are considered exact matches. </dd> </dl>.
118
+ */
119
+ alternativesAsExact?: AlternativesAsExact[];
120
+ /**
121
+ * Advanced search syntax features you want to support. <dl> <dt><code>exactPhrase</code></dt> <dd> Phrases in quotes must match exactly. For example, `sparkly blue \"iPhone case\"` only returns records with the exact string \"iPhone case\". </dd> <dt><code>excludeWords</code></dt> <dd> Query words prefixed with a `-` must not occur in a record. For example, `search -engine` matches records that contain \"search\" but not \"engine\". </dd> </dl> This setting only has an effect if `advancedSyntax` is true.
122
+ */
123
+ advancedSyntaxFeatures?: AdvancedSyntaxFeatures[];
124
+ distinct?: Distinct;
125
+ /**
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.
127
+ */
128
+ replaceSynonymsInHighlight?: boolean;
129
+ /**
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.
131
+ */
132
+ minProximity?: number;
133
+ /**
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.
135
+ */
136
+ responseFields?: string[];
137
+ /**
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).
139
+ */
140
+ maxFacetHits?: number;
141
+ /**
142
+ * Maximum number of facet values to return for each facet.
143
+ */
144
+ maxValuesPerFacet?: number;
145
+ /**
146
+ * Order in which to retrieve facet values. <dl> <dt><code>count</code></dt> <dd> Facet values are retrieved by decreasing count. The count is the number of matching records containing this facet value. </dd> <dt><code>alpha</code></dt> <dd>Retrieve facet values alphabetically.</dd> </dl> 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/).
147
+ */
148
+ sortFacetValuesBy?: string;
149
+ /**
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.
151
+ */
152
+ attributeCriteriaComputedByMinProximity?: boolean;
153
+ renderingContent?: RenderingContent;
154
+ /**
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.
156
+ */
157
+ enableReRanking?: boolean;
158
+ reRankingApplyFilter?: ReRankingApplyFilter | null;
159
+ };
161
160
  //# sourceMappingURL=indexSettingsAsSearchParams.d.ts.map
@@ -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,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBA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YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAE1B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,uCAAuC,CAAC,EAAE,OAAO,CAAC;IAElD,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IAEpC;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,oBAAoB,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;CACpD,CAAC"}
@@ -1,5 +1,5 @@
1
- /**
2
- * Indicates how well the attribute matched the search query.
3
- */
4
- export declare type MatchLevel = 'full' | 'none' | 'partial';
1
+ /**
2
+ * Whether the whole query string matches or only a part.
3
+ */
4
+ export type MatchLevel = 'full' | 'none' | 'partial';
5
5
  //# sourceMappingURL=matchLevel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"matchLevel.d.ts","sourceRoot":"","sources":["../../model/matchLevel.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"matchLevel.d.ts","sourceRoot":"","sources":["../../model/matchLevel.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC"}
@@ -1,15 +1,15 @@
1
- export declare type MatchedGeoLocation = {
2
- /**
3
- * Latitude of the matched location.
4
- */
5
- lat?: number;
6
- /**
7
- * Longitude of the matched location.
8
- */
9
- lng?: number;
10
- /**
11
- * Distance between the matched location and the search location (in meters).
12
- */
13
- distance?: number;
14
- };
1
+ export type MatchedGeoLocation = {
2
+ /**
3
+ * Latitude of the matched location.
4
+ */
5
+ lat?: number;
6
+ /**
7
+ * Longitude of the matched location.
8
+ */
9
+ lng?: number;
10
+ /**
11
+ * Distance between the matched location and the search location (in meters).
12
+ */
13
+ distance?: number;
14
+ };
15
15
  //# sourceMappingURL=matchedGeoLocation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"matchedGeoLocation.d.ts","sourceRoot":"","sources":["../../model/matchedGeoLocation.ts"],"names":[],"mappings":"AAEA,oBAAY,kBAAkB,GAAG;IAC/B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
1
+ {"version":3,"file":"matchedGeoLocation.d.ts","sourceRoot":"","sources":["../../model/matchedGeoLocation.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare type MixedSearchFilters = string[] | string;
1
+ export type MixedSearchFilters = string[] | string;
2
2
  //# sourceMappingURL=mixedSearchFilters.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mixedSearchFilters.d.ts","sourceRoot":"","sources":["../../model/mixedSearchFilters.ts"],"names":[],"mappings":"AAEA,oBAAY,kBAAkB,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"mixedSearchFilters.d.ts","sourceRoot":"","sources":["../../model/mixedSearchFilters.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,kBAAkB,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
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
+ */
4
+ export type Mode = 'keywordSearch' | 'neuralSearch';
5
+ //# sourceMappingURL=mode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mode.d.ts","sourceRoot":"","sources":["../../model/mode.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,eAAe,GAAG,cAAc,CAAC"}
@@ -1,6 +1,6 @@
1
- import type { MixedSearchFilters } from './mixedSearchFilters';
2
- /**
3
- * Filter on numeric attributes.
4
- */
5
- export declare type NumericFilters = MixedSearchFilters[] | string;
1
+ import type { MixedSearchFilters } from './mixedSearchFilters';
2
+ /**
3
+ * 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
+ */
5
+ export type NumericFilters = MixedSearchFilters[] | string;
6
6
  //# 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,oBAAY,cAAc,GAAG,kBAAkB,EAAE,GAAG,MAAM,CAAC"}
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,6 +1,6 @@
1
- import type { MixedSearchFilters } from './mixedSearchFilters';
2
- /**
3
- * Create filters for ranking purposes, where records that match the filter are ranked higher, or lower in the case of a negative optional filter.
4
- */
5
- export declare type OptionalFilters = MixedSearchFilters[] | string;
1
+ import type { MixedSearchFilters } from './mixedSearchFilters';
2
+ /**
3
+ * 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
+ */
5
+ export type OptionalFilters = MixedSearchFilters[] | string;
6
6
  //# 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,oBAAY,eAAe,GAAG,kBAAkB,EAAE,GAAG,MAAM,CAAC"}
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"}
@@ -0,0 +1,13 @@
1
+ import type { AutomaticFacetFilters } from './automaticFacetFilters';
2
+ import type { ConsequenceQuery } from './consequenceQuery';
3
+ import type { RenderingContent } from './renderingContent';
4
+ /**
5
+ * Parameters to apply to this search. You can use all search parameters, plus special `automaticFacetFilters`, `automaticOptionalFacetFilters`, and `query`.
6
+ */
7
+ export type Params = {
8
+ query?: ConsequenceQuery;
9
+ automaticFacetFilters?: AutomaticFacetFilters;
10
+ automaticOptionalFacetFilters?: AutomaticFacetFilters;
11
+ renderingContent?: RenderingContent;
12
+ };
13
+ //# sourceMappingURL=params.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"params.d.ts","sourceRoot":"","sources":["../../model/params.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG;IACnB,KAAK,CAAC,EAAE,gBAAgB,CAAC;IAEzB,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;IAE9C,6BAA6B,CAAC,EAAE,qBAAqB,CAAC;IAEtD,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC,CAAC"}
@@ -1,15 +1,15 @@
1
- export declare type Personalization = {
2
- /**
3
- * The score of the filters.
4
- */
5
- filtersScore?: number;
6
- /**
7
- * The score of the ranking.
8
- */
9
- rankingScore?: number;
10
- /**
11
- * The score of the event.
12
- */
13
- score?: number;
14
- };
1
+ export type Personalization = {
2
+ /**
3
+ * The score of the filters.
4
+ */
5
+ filtersScore?: number;
6
+ /**
7
+ * The score of the ranking.
8
+ */
9
+ rankingScore?: number;
10
+ /**
11
+ * The score of the event.
12
+ */
13
+ score?: number;
14
+ };
15
15
  //# sourceMappingURL=personalization.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"personalization.d.ts","sourceRoot":"","sources":["../../model/personalization.ts"],"names":[],"mappings":"AAEA,oBAAY,eAAe,GAAG;IAC5B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
1
+ {"version":3,"file":"personalization.d.ts","sourceRoot":"","sources":["../../model/personalization.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { PromoteObjectID } from './promoteObjectID';
2
+ import type { PromoteObjectIDs } from './promoteObjectIDs';
3
+ export type Promote = PromoteObjectID | PromoteObjectIDs;
4
+ //# sourceMappingURL=promote.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promote.d.ts","sourceRoot":"","sources":["../../model/promote.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,MAAM,MAAM,OAAO,GAAG,eAAe,GAAG,gBAAgB,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Record to promote.
3
+ */
4
+ export type PromoteObjectID = {
5
+ /**
6
+ * Unique record identifier.
7
+ */
8
+ objectID: string;
9
+ /**
10
+ * Position in the search results where you want to show the promoted records.
11
+ */
12
+ position: number;
13
+ };
14
+ //# sourceMappingURL=promoteObjectID.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promoteObjectID.d.ts","sourceRoot":"","sources":["../../model/promoteObjectID.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Records to promote.
3
+ */
4
+ export type PromoteObjectIDs = {
5
+ /**
6
+ * Object IDs of the records you want to promote. The records are placed as a group at the `position`. For example, if you want to promote four records to position `0`, they will be the first four search results.
7
+ */
8
+ objectIDs: string[];
9
+ /**
10
+ * Position in the search results where you want to show the promoted records.
11
+ */
12
+ position: number;
13
+ };
14
+ //# sourceMappingURL=promoteObjectIDs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promoteObjectIDs.d.ts","sourceRoot":"","sources":["../../model/promoteObjectIDs.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,SAAS,EAAE,MAAM,EAAE,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -1,5 +1,5 @@
1
- /**
2
- * Controls if and how query words are interpreted as prefixes.
3
- */
4
- export declare type QueryType = 'prefixAll' | 'prefixLast' | 'prefixNone';
1
+ /**
2
+ * Determines if and how query words are interpreted as prefixes. By default, only the last query word is treated as prefix (`prefixLast`). To turn off prefix search, use `prefixNone`. Avoid `prefixAll`, which treats all query words as prefixes. This might lead to counterintuitive results and makes your search slower. For more information, see [Prefix searching](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/prefix-searching/).
3
+ */
4
+ export type QueryType = 'prefixAll' | 'prefixLast' | 'prefixNone';
5
5
  //# sourceMappingURL=queryType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"queryType.d.ts","sourceRoot":"","sources":["../../model/queryType.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,SAAS,GAAG,WAAW,GAAG,YAAY,GAAG,YAAY,CAAC"}
1
+ {"version":3,"file":"queryType.d.ts","sourceRoot":"","sources":["../../model/queryType.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,WAAW,GAAG,YAAY,GAAG,YAAY,CAAC"}