algoliasearch 5.0.0-alpha.106 → 5.0.0-alpha.108

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 (309) hide show
  1. package/dist/algoliasearch/builds/browser.d.ts +2 -2
  2. package/dist/algoliasearch/builds/node.d.ts +2 -2
  3. package/dist/algoliasearch.cjs +191 -191
  4. package/dist/algoliasearch.esm.browser.js +191 -191
  5. package/dist/algoliasearch.esm.node.js +191 -191
  6. package/dist/algoliasearch.umd.js +2 -2
  7. package/dist/client-abtesting/model/aBTestResponse.d.ts +1 -1
  8. package/dist/client-abtesting/model/clientMethodProps.d.ts +2 -2
  9. package/dist/client-abtesting/src/abtestingClient.d.ts +3 -3
  10. package/dist/client-analytics/model/clientMethodProps.d.ts +65 -65
  11. package/dist/client-analytics/model/searchNoResultEvent.d.ts +1 -1
  12. package/dist/client-analytics/model/topSearch.d.ts +1 -1
  13. package/dist/client-analytics/model/topSearchWithAnalytics.d.ts +1 -1
  14. package/dist/client-analytics/src/analyticsClient.d.ts +66 -66
  15. package/dist/client-personalization/src/personalizationClient.d.ts +1 -1
  16. package/dist/client-search/model/acl.d.ts +1 -1
  17. package/dist/client-search/model/action.d.ts +1 -1
  18. package/dist/client-search/model/addApiKeyResponse.d.ts +1 -1
  19. package/dist/client-search/model/anchoring.d.ts +1 -1
  20. package/dist/client-search/model/apiKey.d.ts +8 -8
  21. package/dist/client-search/model/aroundPrecision.d.ts +1 -1
  22. package/dist/client-search/model/aroundPrecisionFromValueInner.d.ts +9 -0
  23. package/dist/client-search/model/aroundPrecisionFromValueInner.d.ts.map +1 -1
  24. package/dist/client-search/model/aroundRadius.d.ts +1 -1
  25. package/dist/client-search/model/aroundRadiusAll.d.ts +3 -0
  26. package/dist/client-search/model/aroundRadiusAll.d.ts.map +1 -1
  27. package/dist/client-search/model/automaticFacetFilter.d.ts +4 -4
  28. package/dist/client-search/model/automaticFacetFilters.d.ts +1 -1
  29. package/dist/client-search/model/baseIndexSettings.d.ts +22 -17
  30. package/dist/client-search/model/baseIndexSettings.d.ts.map +1 -1
  31. package/dist/client-search/model/baseSearchParamsWithoutQuery.d.ts +24 -28
  32. package/dist/client-search/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  33. package/dist/client-search/model/baseSearchResponse.d.ts +6 -6
  34. package/dist/client-search/model/batchDictionaryEntriesParams.d.ts +3 -3
  35. package/dist/client-search/model/batchResponse.d.ts +2 -2
  36. package/dist/client-search/model/builtInOperation.d.ts +2 -2
  37. package/dist/client-search/model/builtInOperationType.d.ts +1 -1
  38. package/dist/client-search/model/clientMethodProps.d.ts +63 -63
  39. package/dist/client-search/model/condition.d.ts +7 -3
  40. package/dist/client-search/model/condition.d.ts.map +1 -1
  41. package/dist/client-search/model/consequence.d.ts +5 -5
  42. package/dist/client-search/model/consequenceHide.d.ts +2 -2
  43. package/dist/client-search/model/consequenceQuery.d.ts +1 -1
  44. package/dist/client-search/model/consequenceQueryObject.d.ts +2 -2
  45. package/dist/client-search/model/createdAtResponse.d.ts +1 -1
  46. package/dist/client-search/model/cursor.d.ts +1 -1
  47. package/dist/client-search/model/deleteByParams.d.ts +4 -4
  48. package/dist/client-search/model/deletedAtResponse.d.ts +1 -1
  49. package/dist/client-search/model/dictionaryEntry.d.ts +6 -8
  50. package/dist/client-search/model/dictionaryEntry.d.ts.map +1 -1
  51. package/dist/client-search/model/dictionaryEntryState.d.ts +1 -1
  52. package/dist/client-search/model/dictionaryLanguage.d.ts +2 -2
  53. package/dist/client-search/model/dictionarySettingsParams.d.ts +1 -1
  54. package/dist/client-search/model/distinct.d.ts +1 -1
  55. package/dist/client-search/model/edit.d.ts +1 -1
  56. package/dist/client-search/model/exactOnSingleWordQuery.d.ts +1 -1
  57. package/dist/client-search/model/facetFilters.d.ts +1 -1
  58. package/dist/client-search/model/facetHits.d.ts +2 -2
  59. package/dist/client-search/model/facetOrdering.d.ts +2 -2
  60. package/dist/client-search/model/facets.d.ts +2 -2
  61. package/dist/client-search/model/getObjectsRequest.d.ts +3 -3
  62. package/dist/client-search/model/getObjectsResponse.d.ts +1 -1
  63. package/dist/client-search/model/hasPendingMappingsResponse.d.ts +1 -1
  64. package/dist/client-search/model/highlightResultOption.d.ts +3 -3
  65. package/dist/client-search/model/hit.d.ts +4 -4
  66. package/dist/client-search/model/ignorePlurals.d.ts +3 -2
  67. package/dist/client-search/model/ignorePlurals.d.ts.map +1 -1
  68. package/dist/client-search/model/index.d.ts +2 -0
  69. package/dist/client-search/model/index.d.ts.map +1 -1
  70. package/dist/client-search/model/indexSettings.d.ts +1 -1
  71. package/dist/client-search/model/indexSettingsAsSearchParams.d.ts +32 -35
  72. package/dist/client-search/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  73. package/dist/client-search/model/log.d.ts +11 -11
  74. package/dist/client-search/model/logQuery.d.ts +1 -1
  75. package/dist/client-search/model/matchLevel.d.ts +1 -1
  76. package/dist/client-search/model/mode.d.ts +1 -1
  77. package/dist/client-search/model/multipleBatchResponse.d.ts +2 -2
  78. package/dist/client-search/model/numericFilters.d.ts +1 -1
  79. package/dist/client-search/model/operationIndexParams.d.ts +2 -2
  80. package/dist/client-search/model/operationType.d.ts +1 -1
  81. package/dist/client-search/model/optionalFilters.d.ts +1 -1
  82. package/dist/client-search/model/params.d.ts +1 -1
  83. package/dist/client-search/model/promoteObjectID.d.ts +2 -2
  84. package/dist/client-search/model/promoteObjectIDs.d.ts +2 -2
  85. package/dist/client-search/model/queryType.d.ts +1 -1
  86. package/dist/client-search/model/rankingInfo.d.ts +10 -7
  87. package/dist/client-search/model/rankingInfo.d.ts.map +1 -1
  88. package/dist/client-search/model/reRankingApplyFilter.d.ts +1 -1
  89. package/dist/client-search/model/removeStopWords.d.ts +3 -2
  90. package/dist/client-search/model/removeStopWords.d.ts.map +1 -1
  91. package/dist/client-search/model/removeWordsIfNoResults.d.ts +1 -1
  92. package/dist/client-search/model/renderingContent.d.ts +1 -1
  93. package/dist/client-search/model/rule.d.ts +5 -5
  94. package/dist/client-search/model/saveObjectResponse.d.ts +3 -3
  95. package/dist/client-search/model/saveSynonymResponse.d.ts +1 -1
  96. package/dist/client-search/model/searchDictionaryEntriesParams.d.ts +5 -7
  97. package/dist/client-search/model/searchDictionaryEntriesParams.d.ts.map +1 -1
  98. package/dist/client-search/model/searchDictionaryEntriesResponse.d.ts +20 -0
  99. package/dist/client-search/model/searchDictionaryEntriesResponse.d.ts.map +1 -0
  100. package/dist/client-search/model/searchForFacetValuesRequest.d.ts +1 -1
  101. package/dist/client-search/model/searchForFacetValuesResponse.d.ts +3 -0
  102. package/dist/client-search/model/searchForFacetValuesResponse.d.ts.map +1 -1
  103. package/dist/client-search/model/searchForFacetsOptions.d.ts +2 -2
  104. package/dist/client-search/model/searchForHitsOptions.d.ts +1 -1
  105. package/dist/client-search/model/searchHits.d.ts +4 -1
  106. package/dist/client-search/model/searchHits.d.ts.map +1 -1
  107. package/dist/client-search/model/searchParamsQuery.d.ts +1 -1
  108. package/dist/client-search/model/searchRulesParams.d.ts +4 -8
  109. package/dist/client-search/model/searchRulesParams.d.ts.map +1 -1
  110. package/dist/client-search/model/searchRulesResponse.d.ts +2 -2
  111. package/dist/client-search/model/searchStrategy.d.ts +1 -1
  112. package/dist/client-search/model/searchSynonymsParams.d.ts +2 -2
  113. package/dist/client-search/model/searchSynonymsResponse.d.ts +2 -2
  114. package/dist/client-search/model/searchUserIdsParams.d.ts +1 -1
  115. package/dist/client-search/model/searchUserIdsResponse.d.ts +2 -2
  116. package/dist/client-search/model/securedAPIKeyRestrictions.d.ts +5 -5
  117. package/dist/client-search/model/semanticSearch.d.ts +2 -2
  118. package/dist/client-search/model/snippetResultOption.d.ts +2 -2
  119. package/dist/client-search/model/sortRemainingBy.d.ts +1 -1
  120. package/dist/client-search/model/supportedLanguage.d.ts +5 -0
  121. package/dist/client-search/model/supportedLanguage.d.ts.map +1 -0
  122. package/dist/client-search/model/tagFilters.d.ts +1 -1
  123. package/dist/client-search/model/taskStatus.d.ts +1 -1
  124. package/dist/client-search/model/timeRange.d.ts +2 -2
  125. package/dist/client-search/model/typoTolerance.d.ts +1 -1
  126. package/dist/client-search/model/typoToleranceEnum.d.ts +3 -0
  127. package/dist/client-search/model/typoToleranceEnum.d.ts.map +1 -1
  128. package/dist/client-search/model/updatedAtResponse.d.ts +1 -1
  129. package/dist/client-search/model/updatedAtWithObjectIdResponse.d.ts +2 -2
  130. package/dist/client-search/model/updatedRuleResponse.d.ts +2 -2
  131. package/dist/client-search/model/userHit.d.ts +1 -1
  132. package/dist/client-search/model/userId.d.ts +1 -1
  133. package/dist/client-search/model/value.d.ts +1 -1
  134. package/dist/client-search/src/searchClient.d.ts +124 -123
  135. package/dist/client-search/src/searchClient.d.ts.map +1 -1
  136. package/dist/lite/lite.cjs +3 -3
  137. package/dist/lite/lite.esm.browser.js +3 -3
  138. package/dist/lite/lite.esm.node.js +3 -3
  139. package/dist/lite/lite.umd.js +2 -2
  140. package/dist/lite/model/acl.d.ts +1 -1
  141. package/dist/lite/model/action.d.ts +1 -1
  142. package/dist/lite/model/addApiKeyResponse.d.ts +1 -1
  143. package/dist/lite/model/anchoring.d.ts +1 -1
  144. package/dist/lite/model/apiKey.d.ts +8 -8
  145. package/dist/lite/model/aroundPrecision.d.ts +1 -1
  146. package/dist/lite/model/aroundPrecisionFromValueInner.d.ts +9 -0
  147. package/dist/lite/model/aroundPrecisionFromValueInner.d.ts.map +1 -1
  148. package/dist/lite/model/aroundRadius.d.ts +1 -1
  149. package/dist/lite/model/aroundRadiusAll.d.ts +3 -0
  150. package/dist/lite/model/aroundRadiusAll.d.ts.map +1 -1
  151. package/dist/lite/model/automaticFacetFilter.d.ts +4 -4
  152. package/dist/lite/model/automaticFacetFilters.d.ts +1 -1
  153. package/dist/lite/model/baseIndexSettings.d.ts +22 -17
  154. package/dist/lite/model/baseIndexSettings.d.ts.map +1 -1
  155. package/dist/lite/model/baseSearchParamsWithoutQuery.d.ts +24 -28
  156. package/dist/lite/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  157. package/dist/lite/model/baseSearchResponse.d.ts +6 -6
  158. package/dist/lite/model/builtInOperation.d.ts +2 -2
  159. package/dist/lite/model/builtInOperationType.d.ts +1 -1
  160. package/dist/lite/model/condition.d.ts +7 -3
  161. package/dist/lite/model/condition.d.ts.map +1 -1
  162. package/dist/lite/model/consequence.d.ts +5 -5
  163. package/dist/lite/model/consequenceHide.d.ts +2 -2
  164. package/dist/lite/model/consequenceQuery.d.ts +1 -1
  165. package/dist/lite/model/consequenceQueryObject.d.ts +2 -2
  166. package/dist/lite/model/cursor.d.ts +1 -1
  167. package/dist/lite/model/deleteByParams.d.ts +4 -4
  168. package/dist/lite/model/dictionaryEntry.d.ts +6 -8
  169. package/dist/lite/model/dictionaryEntry.d.ts.map +1 -1
  170. package/dist/lite/model/dictionaryEntryState.d.ts +1 -1
  171. package/dist/lite/model/dictionaryLanguage.d.ts +2 -2
  172. package/dist/lite/model/distinct.d.ts +1 -1
  173. package/dist/lite/model/edit.d.ts +1 -1
  174. package/dist/lite/model/exactOnSingleWordQuery.d.ts +1 -1
  175. package/dist/lite/model/facetFilters.d.ts +1 -1
  176. package/dist/lite/model/facetHits.d.ts +2 -2
  177. package/dist/lite/model/facetOrdering.d.ts +2 -2
  178. package/dist/lite/model/facets.d.ts +2 -2
  179. package/dist/lite/model/highlightResultOption.d.ts +3 -3
  180. package/dist/lite/model/hit.d.ts +4 -4
  181. package/dist/lite/model/ignorePlurals.d.ts +3 -2
  182. package/dist/lite/model/ignorePlurals.d.ts.map +1 -1
  183. package/dist/lite/model/index.d.ts +2 -0
  184. package/dist/lite/model/index.d.ts.map +1 -1
  185. package/dist/lite/model/indexSettings.d.ts +1 -1
  186. package/dist/lite/model/indexSettingsAsSearchParams.d.ts +32 -35
  187. package/dist/lite/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  188. package/dist/lite/model/matchLevel.d.ts +1 -1
  189. package/dist/lite/model/mode.d.ts +1 -1
  190. package/dist/lite/model/numericFilters.d.ts +1 -1
  191. package/dist/lite/model/operationType.d.ts +1 -1
  192. package/dist/lite/model/optionalFilters.d.ts +1 -1
  193. package/dist/lite/model/params.d.ts +1 -1
  194. package/dist/lite/model/promoteObjectID.d.ts +2 -2
  195. package/dist/lite/model/promoteObjectIDs.d.ts +2 -2
  196. package/dist/lite/model/queryType.d.ts +1 -1
  197. package/dist/lite/model/rankingInfo.d.ts +10 -7
  198. package/dist/lite/model/rankingInfo.d.ts.map +1 -1
  199. package/dist/lite/model/reRankingApplyFilter.d.ts +1 -1
  200. package/dist/lite/model/removeStopWords.d.ts +3 -2
  201. package/dist/lite/model/removeStopWords.d.ts.map +1 -1
  202. package/dist/lite/model/removeWordsIfNoResults.d.ts +1 -1
  203. package/dist/lite/model/renderingContent.d.ts +1 -1
  204. package/dist/lite/model/rule.d.ts +5 -5
  205. package/dist/lite/model/searchDictionaryEntriesResponse.d.ts +20 -0
  206. package/dist/lite/model/searchDictionaryEntriesResponse.d.ts.map +1 -0
  207. package/dist/lite/model/searchForFacetValuesResponse.d.ts +3 -0
  208. package/dist/lite/model/searchForFacetValuesResponse.d.ts.map +1 -1
  209. package/dist/lite/model/searchForFacetsOptions.d.ts +2 -2
  210. package/dist/lite/model/searchForHitsOptions.d.ts +1 -1
  211. package/dist/lite/model/searchHits.d.ts +4 -1
  212. package/dist/lite/model/searchHits.d.ts.map +1 -1
  213. package/dist/lite/model/searchParamsQuery.d.ts +1 -1
  214. package/dist/lite/model/searchStrategy.d.ts +1 -1
  215. package/dist/lite/model/searchSynonymsResponse.d.ts +2 -2
  216. package/dist/lite/model/securedAPIKeyRestrictions.d.ts +5 -5
  217. package/dist/lite/model/semanticSearch.d.ts +2 -2
  218. package/dist/lite/model/snippetResultOption.d.ts +2 -2
  219. package/dist/lite/model/sortRemainingBy.d.ts +1 -1
  220. package/dist/lite/model/supportedLanguage.d.ts +5 -0
  221. package/dist/lite/model/supportedLanguage.d.ts.map +1 -0
  222. package/dist/lite/model/tagFilters.d.ts +1 -1
  223. package/dist/lite/model/taskStatus.d.ts +1 -1
  224. package/dist/lite/model/timeRange.d.ts +2 -2
  225. package/dist/lite/model/typoTolerance.d.ts +1 -1
  226. package/dist/lite/model/typoToleranceEnum.d.ts +3 -0
  227. package/dist/lite/model/typoToleranceEnum.d.ts.map +1 -1
  228. package/dist/lite/model/updatedRuleResponse.d.ts +2 -2
  229. package/dist/lite/model/userId.d.ts +1 -1
  230. package/dist/lite/model/value.d.ts +1 -1
  231. package/dist/lite/src/liteClient.d.ts +3 -3
  232. package/dist/lite/src/liteClient.d.ts.map +1 -1
  233. package/lite/model/acl.ts +1 -1
  234. package/lite/model/action.ts +1 -1
  235. package/lite/model/addApiKeyResponse.ts +1 -1
  236. package/lite/model/anchoring.ts +1 -1
  237. package/lite/model/apiKey.ts +8 -8
  238. package/lite/model/aroundPrecision.ts +1 -1
  239. package/lite/model/aroundPrecisionFromValueInner.ts +9 -0
  240. package/lite/model/aroundRadius.ts +1 -1
  241. package/lite/model/aroundRadiusAll.ts +3 -0
  242. package/lite/model/automaticFacetFilter.ts +4 -4
  243. package/lite/model/automaticFacetFilters.ts +1 -1
  244. package/lite/model/baseIndexSettings.ts +24 -17
  245. package/lite/model/baseSearchParamsWithoutQuery.ts +24 -29
  246. package/lite/model/baseSearchResponse.ts +6 -6
  247. package/lite/model/builtInOperation.ts +2 -2
  248. package/lite/model/builtInOperationType.ts +1 -1
  249. package/lite/model/condition.ts +8 -3
  250. package/lite/model/consequence.ts +5 -5
  251. package/lite/model/consequenceHide.ts +2 -2
  252. package/lite/model/consequenceQuery.ts +1 -1
  253. package/lite/model/consequenceQueryObject.ts +2 -2
  254. package/lite/model/cursor.ts +1 -1
  255. package/lite/model/deleteByParams.ts +4 -4
  256. package/lite/model/dictionaryEntry.ts +6 -8
  257. package/lite/model/dictionaryEntryState.ts +1 -1
  258. package/lite/model/dictionaryLanguage.ts +2 -2
  259. package/lite/model/distinct.ts +1 -1
  260. package/lite/model/edit.ts +1 -1
  261. package/lite/model/exactOnSingleWordQuery.ts +1 -1
  262. package/lite/model/facetFilters.ts +1 -1
  263. package/lite/model/facetHits.ts +2 -2
  264. package/lite/model/facetOrdering.ts +2 -2
  265. package/lite/model/facets.ts +2 -2
  266. package/lite/model/highlightResultOption.ts +3 -3
  267. package/lite/model/hit.ts +4 -4
  268. package/lite/model/ignorePlurals.ts +4 -2
  269. package/lite/model/index.ts +2 -0
  270. package/lite/model/indexSettings.ts +1 -1
  271. package/lite/model/indexSettingsAsSearchParams.ts +32 -36
  272. package/lite/model/matchLevel.ts +1 -1
  273. package/lite/model/mode.ts +1 -1
  274. package/lite/model/numericFilters.ts +1 -1
  275. package/lite/model/operationType.ts +1 -1
  276. package/lite/model/optionalFilters.ts +1 -1
  277. package/lite/model/params.ts +1 -1
  278. package/lite/model/promoteObjectID.ts +2 -2
  279. package/lite/model/promoteObjectIDs.ts +2 -2
  280. package/lite/model/queryType.ts +1 -1
  281. package/lite/model/rankingInfo.ts +10 -7
  282. package/lite/model/reRankingApplyFilter.ts +1 -1
  283. package/lite/model/removeStopWords.ts +4 -2
  284. package/lite/model/removeWordsIfNoResults.ts +1 -1
  285. package/lite/model/renderingContent.ts +1 -1
  286. package/lite/model/rule.ts +5 -5
  287. package/lite/model/searchDictionaryEntriesResponse.ts +25 -0
  288. package/lite/model/searchForFacetValuesResponse.ts +3 -0
  289. package/lite/model/searchForFacetsOptions.ts +2 -2
  290. package/lite/model/searchForHitsOptions.ts +1 -1
  291. package/lite/model/searchHits.ts +4 -1
  292. package/lite/model/searchParamsQuery.ts +1 -1
  293. package/lite/model/searchStrategy.ts +1 -1
  294. package/lite/model/searchSynonymsResponse.ts +2 -2
  295. package/lite/model/securedAPIKeyRestrictions.ts +5 -5
  296. package/lite/model/semanticSearch.ts +2 -2
  297. package/lite/model/snippetResultOption.ts +2 -2
  298. package/lite/model/sortRemainingBy.ts +1 -1
  299. package/lite/model/supportedLanguage.ts +74 -0
  300. package/lite/model/tagFilters.ts +1 -1
  301. package/lite/model/taskStatus.ts +1 -1
  302. package/lite/model/timeRange.ts +2 -2
  303. package/lite/model/typoTolerance.ts +1 -1
  304. package/lite/model/typoToleranceEnum.ts +3 -0
  305. package/lite/model/updatedRuleResponse.ts +2 -2
  306. package/lite/model/userId.ts +1 -1
  307. package/lite/model/value.ts +1 -1
  308. package/lite/src/liteClient.ts +3 -3
  309. package/package.json +11 -11
@@ -6,11 +6,11 @@ import type { OptionalFilters } from './optionalFilters';
6
6
  import type { TagFilters } from './tagFilters';
7
7
  export type BaseSearchParamsWithoutQuery = {
8
8
  /**
9
- * Overrides the query parameter and performs a more generic search.
9
+ * Keywords to be used instead of the search query to conduct a more broader search. Using the `similarQuery` parameter changes other settings: - `queryType` is set to `prefixNone`. - `removeStopWords` is set to true. - `words` is set as the first ranking criterion. - All remaining words are treated as `optionalWords`. Since the `similarQuery` is supposed to do a broad search, they usually return many results. Combine it with `filters` to narrow down the list of results.
10
10
  */
11
11
  similarQuery?: string;
12
12
  /**
13
- * [Filter](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/) the query with numeric, facet, or tag filters.
13
+ * Filter the search so that only records with matching values are included in the results. These filters are supported: - **Numeric filters.** `<facet> <op> <number>`, where `<op>` is one of `<`, `<=`, `=`, `!=`, `>`, `>=`. - **Ranges.** `<facet>:<lower> TO <upper>` where `<lower>` and `<upper>` are the lower and upper limits of the range (inclusive). - **Facet filters.** `<facet>:<value>` where `<facet>` is a facet attribute (case-sensitive) and `<value>` a facet value. - **Tag filters.** `_tags:<value>` or just `<value>` (case-sensitive). - **Boolean filters.** `<facet>: true | false`. You can combine filters with `AND`, `OR`, and `NOT` operators with the following restrictions: - You can only combine filters of the same type with `OR`. **Not supported:** `facet:value OR num > 3`. - You can\'t use `NOT` with combinations of filters. **Not supported:** `NOT(facet:value OR facet:value)` - You can\'t combine conjunctions (`AND`) with `OR`. **Not supported:** `facet:value OR (facet:value AND facet:value)` Use quotes around your filters, if the facet attribute name or facet value has spaces, keywords (`OR`, `AND`, `NOT`), or quotes. If a facet attribute is an array, the filter matches if it matches at least one element of the array. For more information, see [Filters](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/).
14
14
  */
15
15
  filters?: string;
16
16
  facetFilters?: FacetFilters;
@@ -18,89 +18,85 @@ export type BaseSearchParamsWithoutQuery = {
18
18
  numericFilters?: NumericFilters;
19
19
  tagFilters?: TagFilters;
20
20
  /**
21
- * Determines how to calculate [filter scores](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/in-depth/filter-scoring/#accumulating-scores-with-sumorfiltersscores). If `false`, maximum score is kept. If `true`, score is summed.
21
+ * Whether to sum all filter scores. If true, all filter scores are summed. Otherwise, the maximum filter score is kept. For more information, see [filter scores](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/in-depth/filter-scoring/#accumulating-scores-with-sumorfiltersscores).
22
22
  */
23
23
  sumOrFiltersScores?: boolean;
24
24
  /**
25
- * Restricts a query to only look at a subset of your [searchable attributes](https://www.algolia.com/doc/guides/managing-results/must-do/searchable-attributes/).
25
+ * Restricts a search to a subset of your searchable attributes.
26
26
  */
27
27
  restrictSearchableAttributes?: string[];
28
28
  /**
29
- * Returns [facets](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#contextual-facet-values-and-counts), their facet values, and the number of matching facet values.
29
+ * Facets for which to retrieve facet values that match the search criteria and the number of matching facet values. To retrieve all facets, use the wildcard character `*`. For more information, see [facets](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#contextual-facet-values-and-counts).
30
30
  */
31
31
  facets?: string[];
32
32
  /**
33
- * Forces faceting to be applied after [de-duplication](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/) (with the distinct feature). Alternatively, the `afterDistinct` [modifier](https://www.algolia.com/doc/api-reference/api-parameters/attributesForFaceting/#modifiers) of `attributesForFaceting` allows for more granular control.
33
+ * Whether faceting should be applied after deduplication with `distinct`. This leads to accurate facet counts when using faceting in combination with `distinct`. It\'s usually better to use `afterDistinct` modifiers in the `attributesForFaceting` setting, as `facetingAfterDistinct` only computes correct facet counts if all records have the same facet values for the `attributeForDistinct`.
34
34
  */
35
35
  facetingAfterDistinct?: boolean;
36
36
  /**
37
- * Page to retrieve (the first page is `0`, not `1`).
37
+ * Page of search results to retrieve.
38
38
  */
39
39
  page?: number;
40
40
  /**
41
- * Specifies the offset of the first hit to return. > **Note**: Using `page` and `hitsPerPage` is the recommended method for [paging results](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/). However, you can use `offset` and `length` to implement [an alternative approach to paging](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/#retrieving-a-subset-of-records-with-offset-and-length).
41
+ * Position of the first hit to retrieve.
42
42
  */
43
43
  offset?: number;
44
44
  /**
45
- * Sets the number of hits to retrieve (for use with `offset`). > **Note**: Using `page` and `hitsPerPage` is the recommended method for [paging results](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/). However, you can use `offset` and `length` to implement [an alternative approach to paging](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/#retrieving-a-subset-of-records-with-offset-and-length).
45
+ * Number of hits to retrieve (used in combination with `offset`).
46
46
  */
47
47
  length?: number;
48
48
  /**
49
- * Search for entries [around a central location](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filter-around-a-central-point), enabling a geographical search within a circular area.
49
+ * Coordinates for the center of a circle, expressed as a comma-separated string of latitude and longitude. Only records included within circle around this central location are included in the results. The radius of the circle is determined by the `aroundRadius` and `minimumAroundRadius` settings. This parameter is ignored if you also specify `insidePolygon` or `insideBoundingBox`.
50
50
  */
51
51
  aroundLatLng?: string;
52
52
  /**
53
- * Search for entries around a location. The location is automatically computed from the requester\'s IP address.
53
+ * Whether to obtain the coordinates from the request\'s IP address.
54
54
  */
55
55
  aroundLatLngViaIP?: boolean;
56
56
  aroundRadius?: AroundRadius;
57
57
  aroundPrecision?: AroundPrecision;
58
58
  /**
59
- * Minimum radius (in meters) used for a geographical search when `aroundRadius` isn\'t set.
59
+ * Minimum radius (in meters) for a search around a location when `aroundRadius` isn\'t set.
60
60
  */
61
61
  minimumAroundRadius?: number;
62
62
  /**
63
- * Search inside a [rectangular area](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas) (in geographical coordinates).
63
+ * Coordinates for a rectangular area in which to search. Each bounding box is defined by the two opposite points of its diagonal, and expressed as latitude and longitude pair: `[p1 lat, p1 long, p2 lat, p2 long]`. Provide multiple bounding boxes as nested arrays. For more information, see [rectangular area](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas).
64
64
  */
65
65
  insideBoundingBox?: number[][];
66
66
  /**
67
- * Search inside a [polygon](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas) (in geographical coordinates).
67
+ * Coordinates of a polygon in which to search. Polygons are defined by 3 to 10,000 points. Each point is represented by its latitude and longitude. Provide multiple polygons as nested arrays. For more information, see [filtering inside polygons](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas). This parameter is ignored, if you also specify `insideBoundingBox`.
68
68
  */
69
69
  insidePolygon?: number[][];
70
70
  /**
71
- * Changes the default values of parameters that work best for a natural language query, such as `ignorePlurals`, `removeStopWords`, `removeWordsIfNoResults`, `analyticsTags`, and `ruleContexts`. These parameters work well together when the query consists of fuller natural language strings instead of keywords, for example when processing voice search queries.
71
+ * ISO language codes that adjust settings that are useful for processing natural language queries (as opposed to keyword searches): - Sets `removeStopWords` and `ignorePlurals` to the list of provided languages. - Sets `removeWordsIfNoResults` to `allOptional`. - Adds a `natural_language` attribute to `ruleContexts` and `analyticsTags`.
72
72
  */
73
73
  naturalLanguages?: string[];
74
74
  /**
75
- * Assigns [rule contexts](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/how-to/customize-search-results-by-platform/#whats-a-context) to search queries.
75
+ * Assigns a rule context to the search query. [Rule contexts](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/how-to/customize-search-results-by-platform/#whats-a-context) are strings that you can use to trigger matching rules.
76
76
  */
77
77
  ruleContexts?: string[];
78
78
  /**
79
- * Defines how much [Personalization affects results](https://www.algolia.com/doc/guides/personalization/personalizing-results/in-depth/configuring-personalization/#understanding-personalization-impact).
79
+ * Impact that Personalization should have on this search. The higher this value is, the more Personalization determines the ranking compared to other factors. For more information, see [Understanding Personalization impact](https://www.algolia.com/doc/guides/personalization/personalizing-results/in-depth/configuring-personalization/#understanding-personalization-impact).
80
80
  */
81
81
  personalizationImpact?: number;
82
82
  /**
83
- * Associates a [user token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/) with the current search.
83
+ * Unique pseudonymous or anonymous user identifier. This helps with analytics and click and conversion events. For more information, see [user token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/).
84
84
  */
85
85
  userToken?: string;
86
86
  /**
87
- * Incidates whether the search response includes [detailed ranking information](https://www.algolia.com/doc/guides/building-search-ui/going-further/backend-search/in-depth/understanding-the-api-response/#ranking-information).
87
+ * Whether the search response should include detailed ranking information.
88
88
  */
89
89
  getRankingInfo?: boolean;
90
90
  /**
91
- * Enriches the API\'s response with information about how the query was processed.
92
- */
93
- explain?: string[];
94
- /**
95
- * Whether to take into account an index\'s synonyms for a particular search.
91
+ * Whether to take into account an index\'s synonyms for this search.
96
92
  */
97
93
  synonyms?: boolean;
98
94
  /**
99
- * Indicates whether a query ID parameter is included in the search response. This is required for [tracking click and conversion events](https://www.algolia.com/doc/guides/sending-events/concepts/event-types/#events-related-to-algolia-requests).
95
+ * Whether to include a `queryID` attribute in the response. The query ID is a unique identifier for a search query and is required for tracking [click and conversion events](https://www.algolia.com/guides/sending-events/getting-started/).
100
96
  */
101
97
  clickAnalytics?: boolean;
102
98
  /**
103
- * Indicates whether this query will be included in [analytics](https://www.algolia.com/doc/guides/search-analytics/guides/exclude-queries/).
99
+ * Whether this search will be included in Analytics.
104
100
  */
105
101
  analytics?: boolean;
106
102
  /**
@@ -108,11 +104,11 @@ export type BaseSearchParamsWithoutQuery = {
108
104
  */
109
105
  analyticsTags?: string[];
110
106
  /**
111
- * Whether to include or exclude a query from the processing-time percentile computation.
107
+ * Whether to include this search when calculating processing-time percentiles.
112
108
  */
113
109
  percentileComputation?: boolean;
114
110
  /**
115
- * Incidates whether this search will be considered in A/B testing.
111
+ * Whether to enable A/B testing for this search.
116
112
  */
117
113
  enableABTest?: boolean;
118
114
  };
@@ -1 +1 @@
1
- {"version":3,"file":"baseSearchParamsWithoutQuery.d.ts","sourceRoot":"","sources":["../../../lite/model/baseSearchParamsWithoutQuery.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,YAAY,CAAC,EAAE,YAAY,CAAC;IAE5B,eAAe,CAAC,EAAE,eAAe,CAAC;IAElC,cAAc,CAAC,EAAE,cAAc,CAAC;IAEhC,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;OAEG;IACH,4BAA4B,CAAC,EAAE,MAAM,EAAE,CAAC;IAExC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAElB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B,YAAY,CAAC,EAAE,YAAY,CAAC;IAE5B,eAAe,CAAC,EAAE,eAAe,CAAC;IAElC;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;IAE/B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;IAE3B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAE5B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAExB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IAEzB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC"}
1
+ {"version":3,"file":"baseSearchParamsWithoutQuery.d.ts","sourceRoot":"","sources":["../../../lite/model/baseSearchParamsWithoutQuery.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,YAAY,CAAC,EAAE,YAAY,CAAC;IAE5B,eAAe,CAAC,EAAE,eAAe,CAAC;IAElC,cAAc,CAAC,EAAE,cAAc,CAAC;IAEhC,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;OAEG;IACH,4BAA4B,CAAC,EAAE,MAAM,EAAE,CAAC;IAExC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAElB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B,YAAY,CAAC,EAAE,YAAY,CAAC;IAE5B,eAAe,CAAC,EAAE,eAAe,CAAC;IAElC;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;IAE/B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;IAE3B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAE5B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAExB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IAEzB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC"}
@@ -16,7 +16,7 @@ export type BaseSearchResponse = Record<string, any> & {
16
16
  */
17
17
  aroundLatLng?: string;
18
18
  /**
19
- * Automatically-computed radius.
19
+ * Distance from a central coordinate provided by `aroundLatLng`.
20
20
  */
21
21
  automaticRadius?: string;
22
22
  exhaustive?: Exhaustive;
@@ -33,7 +33,7 @@ export type BaseSearchResponse = Record<string, any> & {
33
33
  */
34
34
  exhaustiveTypo?: boolean;
35
35
  /**
36
- * Mapping of each facet name to the corresponding facet counts.
36
+ * Facet counts.
37
37
  */
38
38
  facets?: Record<string, Record<string, number>>;
39
39
  /**
@@ -57,11 +57,11 @@ export type BaseSearchResponse = Record<string, any> & {
57
57
  */
58
58
  message?: string;
59
59
  /**
60
- * Number of hits the search query matched.
60
+ * Number of results (hits).
61
61
  */
62
62
  nbHits: number;
63
63
  /**
64
- * Number of pages of results for the current query.
64
+ * Number of pages of results.
65
65
  */
66
66
  nbPages: number;
67
67
  /**
@@ -69,7 +69,7 @@ export type BaseSearchResponse = Record<string, any> & {
69
69
  */
70
70
  nbSortedHits?: number;
71
71
  /**
72
- * Page to retrieve (the first page is `0`, not `1`).
72
+ * Page of search results to retrieve.
73
73
  */
74
74
  page: number;
75
75
  /**
@@ -99,7 +99,7 @@ export type BaseSearchResponse = Record<string, any> & {
99
99
  */
100
100
  serverUsed?: string;
101
101
  /**
102
- * Lets you store custom data in your indices.
102
+ * An object with custom data. You can store up to 32&nbsp;kB as custom data.
103
103
  */
104
104
  userData?: any | null;
105
105
  /**
@@ -1,11 +1,11 @@
1
1
  import type { BuiltInOperationType } from './builtInOperationType';
2
2
  /**
3
- * To update an attribute without pushing the entire record, you can use these built-in operations.
3
+ * Update to perform on the attribute.
4
4
  */
5
5
  export type BuiltInOperation = {
6
6
  _operation: BuiltInOperationType;
7
7
  /**
8
- * Value that corresponds to the operation, for example an `Increment` or `Decrement` step, `Add` or `Remove` value.
8
+ * Value that corresponds to the operation, for example an `Increment` or `Decrement` step, or an `Add` or `Remove` value.
9
9
  */
10
10
  value: string;
11
11
  };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Operation to apply to the attribute.
2
+ * How to change the attribute.
3
3
  */
4
4
  export type BuiltInOperationType = 'Add' | 'AddUnique' | 'Decrement' | 'Increment' | 'IncrementFrom' | 'IncrementSet' | 'Remove';
5
5
  //# sourceMappingURL=builtInOperationType.d.ts.map
@@ -1,17 +1,21 @@
1
1
  import type { Anchoring } from './anchoring';
2
2
  export type Condition = {
3
3
  /**
4
- * Query pattern syntax.
4
+ * Query pattern that triggers the rule. You can use either a literal string, or a special pattern `{facet:ATTRIBUTE}`, where `ATTRIBUTE` is a facet name. The rule is triggered if the query matches the literal string or a value of the specified facet. For example, with `pattern: {facet:genre}`, the rule is triggered when users search for a genre, such as \"comedy\".
5
5
  */
6
6
  pattern?: string;
7
7
  anchoring?: Anchoring;
8
8
  /**
9
- * Whether the pattern matches on plurals, synonyms, and typos.
9
+ * Whether the pattern should match plurals, synonyms, and typos.
10
10
  */
11
11
  alternatives?: boolean;
12
12
  /**
13
- * Rule context format: [A-Za-z0-9_-]+).
13
+ * An additional restriction that only triggers the rule, when the search has the same value as `ruleContexts` parameter. For example, if `context: mobile`, the rule is only triggered when the search request has a matching `ruleContexts: mobile`. A rule context must only contain alphanumeric characters.
14
14
  */
15
15
  context?: string;
16
+ /**
17
+ * Filters that trigger the rule. You can add add filters using the syntax `facet:value` so that the rule is triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern` parameter.
18
+ */
19
+ filters?: string;
16
20
  };
17
21
  //# sourceMappingURL=condition.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"condition.d.ts","sourceRoot":"","sources":["../../../lite/model/condition.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
1
+ {"version":3,"file":"condition.d.ts","sourceRoot":"","sources":["../../../lite/model/condition.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -2,24 +2,24 @@ import type { ConsequenceHide } from './consequenceHide';
2
2
  import type { ConsequenceParams } from './consequenceParams';
3
3
  import type { Promote } from './promote';
4
4
  /**
5
- * [Consequences](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#consequences) of a rule.
5
+ * Effect of the rule. For more information, see [Consequences](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#consequences).
6
6
  */
7
7
  export type Consequence = {
8
8
  params?: ConsequenceParams;
9
9
  /**
10
- * Records to promote.
10
+ * Records you want to pin to a specific position in the search results. You can promote up to 300 records, either individually, or as groups of up to 100 records each.
11
11
  */
12
12
  promote?: Promote[];
13
13
  /**
14
- * Only use in combination with the `promote` consequence. When `true`, promoted results will be restricted to match the filters of the current search. When `false`, the promoted results will show up regardless of the filters.
14
+ * Whether promoted records must match an active filter for the consequence to be applied. This ensures that user actions (filtering the search) are given a higher precendence. For example, if you promote a record with the `color: red` attribute, and the user filters the search for `color: blue`, the \"red\" record won\'t be shown.
15
15
  */
16
16
  filterPromotes?: boolean;
17
17
  /**
18
- * Records to hide. By default, you can hide up to 50 records per rule.
18
+ * Records you want to hide from the search results.
19
19
  */
20
20
  hide?: ConsequenceHide[];
21
21
  /**
22
- * Custom JSON object that will be appended to the userData array in the response. This object isn\'t interpreted by the API. It\'s limited to 1kB of minified JSON.
22
+ * A JSON object with custom data that will be appended to the `userData` array in the response. This object isn\'t interpreted by the API and is limited to 1&nbsp;kB of minified JSON.
23
23
  */
24
24
  userData?: any | null;
25
25
  };
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Unique identifier of the record to hide.
2
+ * Object ID of the record to hide.
3
3
  */
4
4
  export type ConsequenceHide = {
5
5
  /**
6
- * Unique object identifier.
6
+ * Unique record identifier.
7
7
  */
8
8
  objectID: string;
9
9
  };
@@ -1,6 +1,6 @@
1
1
  import type { ConsequenceQueryObject } from './consequenceQueryObject';
2
2
  /**
3
- * When providing a string, it replaces the entire query string. When providing an object, it describes incremental edits to be made to the query string (but you can\'t do both).
3
+ * Replace or edit the search query. If `consequenceQuery` is a string, the entire search query is replaced with that string. If `consequenceQuery` is an object, it describes incremental edits made to the query.
4
4
  */
5
5
  export type ConsequenceQuery = ConsequenceQueryObject | string;
6
6
  //# sourceMappingURL=consequenceQuery.d.ts.map
@@ -1,11 +1,11 @@
1
1
  import type { Edit } from './edit';
2
2
  export type ConsequenceQueryObject = {
3
3
  /**
4
- * Words to remove.
4
+ * Words to remove from the search query.
5
5
  */
6
6
  remove?: string[];
7
7
  /**
8
- * Edits to apply.
8
+ * Changes to make to the search query.
9
9
  */
10
10
  edits?: Edit[];
11
11
  };
@@ -1,6 +1,6 @@
1
1
  export type Cursor = {
2
2
  /**
3
- * Cursor indicating the location to resume browsing from. Must match the value returned by the previous call. Pass this value to the subsequent browse call to get the next page of results. When the end of the index has been reached, `cursor` is absent from the response.
3
+ * Cursor to get the next page of the response. The parameter must match the value returned in the response of a previous request. The last page of the response does not return a `cursor` attribute.
4
4
  */
5
5
  cursor?: string;
6
6
  };
@@ -5,22 +5,22 @@ import type { TagFilters } from './tagFilters';
5
5
  export type DeleteByParams = {
6
6
  facetFilters?: FacetFilters;
7
7
  /**
8
- * [Filter](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/) the query with numeric, facet, or tag filters.
8
+ * Filter the search so that only records with matching values are included in the results. These filters are supported: - **Numeric filters.** `<facet> <op> <number>`, where `<op>` is one of `<`, `<=`, `=`, `!=`, `>`, `>=`. - **Ranges.** `<facet>:<lower> TO <upper>` where `<lower>` and `<upper>` are the lower and upper limits of the range (inclusive). - **Facet filters.** `<facet>:<value>` where `<facet>` is a facet attribute (case-sensitive) and `<value>` a facet value. - **Tag filters.** `_tags:<value>` or just `<value>` (case-sensitive). - **Boolean filters.** `<facet>: true | false`. You can combine filters with `AND`, `OR`, and `NOT` operators with the following restrictions: - You can only combine filters of the same type with `OR`. **Not supported:** `facet:value OR num > 3`. - You can\'t use `NOT` with combinations of filters. **Not supported:** `NOT(facet:value OR facet:value)` - You can\'t combine conjunctions (`AND`) with `OR`. **Not supported:** `facet:value OR (facet:value AND facet:value)` Use quotes around your filters, if the facet attribute name or facet value has spaces, keywords (`OR`, `AND`, `NOT`), or quotes. If a facet attribute is an array, the filter matches if it matches at least one element of the array. For more information, see [Filters](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/).
9
9
  */
10
10
  filters?: string;
11
11
  numericFilters?: NumericFilters;
12
12
  tagFilters?: TagFilters;
13
13
  /**
14
- * Search for entries [around a central location](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filter-around-a-central-point), enabling a geographical search within a circular area.
14
+ * Coordinates for the center of a circle, expressed as a comma-separated string of latitude and longitude. Only records included within circle around this central location are included in the results. The radius of the circle is determined by the `aroundRadius` and `minimumAroundRadius` settings. This parameter is ignored if you also specify `insidePolygon` or `insideBoundingBox`.
15
15
  */
16
16
  aroundLatLng?: string;
17
17
  aroundRadius?: AroundRadius;
18
18
  /**
19
- * Search inside a [rectangular area](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas) (in geographical coordinates).
19
+ * Coordinates for a rectangular area in which to search. Each bounding box is defined by the two opposite points of its diagonal, and expressed as latitude and longitude pair: `[p1 lat, p1 long, p2 lat, p2 long]`. Provide multiple bounding boxes as nested arrays. For more information, see [rectangular area](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas).
20
20
  */
21
21
  insideBoundingBox?: number[][];
22
22
  /**
23
- * Search inside a [polygon](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas) (in geographical coordinates).
23
+ * Coordinates of a polygon in which to search. Polygons are defined by 3 to 10,000 points. Each point is represented by its latitude and longitude. Provide multiple polygons as nested arrays. For more information, see [filtering inside polygons](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas). This parameter is ignored, if you also specify `insideBoundingBox`.
24
24
  */
25
25
  insidePolygon?: number[][];
26
26
  };
@@ -1,26 +1,24 @@
1
1
  import type { DictionaryEntryState } from './dictionaryEntryState';
2
+ import type { SupportedLanguage } from './supportedLanguage';
2
3
  /**
3
4
  * Dictionary entry.
4
5
  */
5
6
  export type DictionaryEntry = Record<string, any> & {
6
7
  /**
7
- * Unique identifier for a dictionary object.
8
+ * Unique identifier for the dictionary entry.
8
9
  */
9
10
  objectID: string;
11
+ language: SupportedLanguage;
10
12
  /**
11
- * [Supported language ISO code](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/).
12
- */
13
- language: string;
14
- /**
15
- * Dictionary entry word. Usage depends on the type of dictionary entry. **`stopwordEntry`** The stop word you want to add or update. If the entry already exists in Algolia\'s standard dictionary, you can override its behavior by adding it to the custom dictionary and setting its `state` to `disabled`. **`compoundEntry`** When `decomposition` is empty: adds `word` as a compound atom. For example, atom “kino” decomposes the query “kopfkino” into \"kopf\" and \"kino\". When `decomposition` isn\'t empty: creates a decomposition exception. For example, when decomposition is set to the [\"hund\", \"hutte\"] exception, \"hundehutte\" decomposes into “hund” and “hutte”, discarding the linking \"e\".
13
+ * Matching dictionary word for `stopwords` and `compounds` dictionaries.
16
14
  */
17
15
  word?: string;
18
16
  /**
19
- * Compound dictionary [word declensions](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/how-to/customize-plurals-and-other-declensions/). If the entry already exists in Algolia\'s standard dictionary, you can override its behavior by adding it to the custom dictionary and setting its `state` to `disabled`.
17
+ * Matching words in the `plurals` dictionary including declensions.
20
18
  */
21
19
  words?: string[];
22
20
  /**
23
- * For compound entries, governs the behavior of the `word` parameter.
21
+ * Invividual components of a compound word in the `compounds` dictionary.
24
22
  */
25
23
  decomposition?: string[];
26
24
  state?: DictionaryEntryState;
@@ -1 +1 @@
1
- {"version":3,"file":"dictionaryEntry.d.ts","sourceRoot":"","sources":["../../../lite/model/dictionaryEntry.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG;IAClD;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IAEjB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IAEzB,KAAK,CAAC,EAAE,oBAAoB,CAAC;CAC9B,CAAC"}
1
+ {"version":3,"file":"dictionaryEntry.d.ts","sourceRoot":"","sources":["../../../lite/model/dictionaryEntry.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG;IAClD;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,QAAQ,EAAE,iBAAiB,CAAC;IAE5B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IAEjB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IAEzB,KAAK,CAAC,EAAE,oBAAoB,CAAC;CAC9B,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Indicates whether a dictionary entry is active (`enabled`) or inactive (`disabled`).
2
+ * Whether a dictionary entry is active.
3
3
  */
4
4
  export type DictionaryEntryState = 'disabled' | 'enabled';
5
5
  //# sourceMappingURL=dictionaryEntryState.d.ts.map
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Custom entries for a dictionary.
2
+ * Dictionary type. If `null`, this dictionary type isn\'t supported for the language.
3
3
  */
4
4
  export type DictionaryLanguage = {
5
5
  /**
6
- * If `0`, the dictionary hasn\'t been customized and only contains standard entries provided by Algolia. If `null`, that feature isn\'t available or isn\'t supported for that language.
6
+ * Number of custom dictionary entries.
7
7
  */
8
8
  nbCustomEntries?: number;
9
9
  };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Enables [deduplication or grouping of results (Algolia\'s _distinct_ feature](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/#introducing-algolias-distinct-feature)).
2
+ * Determines how many records of a group are included in the search results. Records with the same value for the `attributeForDistinct` attribute are considered a group. The `distinct` setting controls how many members of the group are returned. This is useful for [deduplication and grouping](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/#introducing-algolias-distinct-feature). The `distinct` setting is ignored if `attributeForDistinct` is not set.
3
3
  */
4
4
  export type Distinct = boolean | number;
5
5
  //# sourceMappingURL=distinct.d.ts.map
@@ -6,7 +6,7 @@ export type Edit = {
6
6
  */
7
7
  delete?: string;
8
8
  /**
9
- * Text that should be inserted in place of the removed text inside the query string.
9
+ * Text to be added in place of the deleted text inside the query string.
10
10
  */
11
11
  insert?: string;
12
12
  };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Determines how the [Exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes) is computed when the query contains only one word.
2
+ * Determines how the [Exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes) is computed when the search query has only one word. <dl> <dt><code>attribute</code></dt> <dd> The Exact ranking criterion is 1 if the query word and attribute value are the same. For example, a search for \"road\" will match the value \"road\", but not \"road trip\". </dd> <dt><code>none</code></dt> <dd> The Exact ranking criterion is ignored on single-word searches. </dd> <dt><code>word</code></dt> <dd> The Exact ranking criterion is 1 if the query word is found in the attribute value. The query word must have at least 3 characters and must not be a stop word. </dd> </dl> If `exactOnSingleWordQuery` is `word`, only exact matches will be highlighted, partial and prefix matches won\'t.
3
3
  */
4
4
  export type ExactOnSingleWordQuery = 'attribute' | 'none' | 'word';
5
5
  //# sourceMappingURL=exactOnSingleWordQuery.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import type { MixedSearchFilters } from './mixedSearchFilters';
2
2
  /**
3
- * [Filter hits by facet value](https://www.algolia.com/doc/api-reference/api-parameters/facetFilters/).
3
+ * 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
4
  */
5
5
  export type FacetFilters = MixedSearchFilters[] | string;
6
6
  //# sourceMappingURL=facetFilters.d.ts.map
@@ -4,11 +4,11 @@ export type FacetHits = {
4
4
  */
5
5
  value: string;
6
6
  /**
7
- * Markup text with `facetQuery` matches highlighted.
7
+ * Highlighted attribute value, including HTML tags.
8
8
  */
9
9
  highlighted: string;
10
10
  /**
11
- * Number of records containing this facet value. This takes into account the extra search parameters specified in the query. Like for a regular search query, the [counts may not be exhaustive](https://support.algolia.com/hc/en-us/articles/4406975248145-Why-are-my-facet-and-hit-counts-not-accurate-).
11
+ * Number of records with this facet value. [The count may be approximated](https://support.algolia.com/hc/en-us/articles/4406975248145-Why-are-my-facet-and-hit-counts-not-accurate-).
12
12
  */
13
13
  count: number;
14
14
  };
@@ -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
  };
@@ -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
  /**
@@ -2,19 +2,19 @@ import type { HighlightResult } from './highlightResult';
2
2
  import type { RankingInfo } from './rankingInfo';
3
3
  import type { SnippetResult } from './snippetResult';
4
4
  /**
5
- * A single hit.
5
+ * Search result. A hit is a record from your index, augmented with special attributes for highlighting, snippeting, and ranking.
6
6
  */
7
7
  export type Hit<T = Record<string, any>> = T & {
8
8
  /**
9
- * Unique object identifier.
9
+ * Unique record identifier.
10
10
  */
11
11
  objectID: string;
12
12
  /**
13
- * Show highlighted section and words matched on a query.
13
+ * Surround words that match the query with HTML tags for highlighting.
14
14
  */
15
15
  _highlightResult?: Record<string, HighlightResult>;
16
16
  /**
17
- * Snippeted attributes show parts of the matched attributes. Only returned when attributesToSnippet is non-empty.
17
+ * Snippets that show the context around a matching search query.
18
18
  */
19
19
  _snippetResult?: Record<string, SnippetResult>;
20
20
  _rankingInfo?: RankingInfo;
@@ -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":["../../../lite/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":["../../../lite/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"}
@@ -81,6 +81,7 @@ export * from './removeWordsIfNoResults';
81
81
  export * from './renderingContent';
82
82
  export * from './rule';
83
83
  export * from './scopeType';
84
+ export * from './searchDictionaryEntriesResponse';
84
85
  export * from './searchForFacetValuesResponse';
85
86
  export * from './searchForFacets';
86
87
  export * from './searchForFacetsOptions';
@@ -107,6 +108,7 @@ export * from './snippetResultOption';
107
108
  export * from './sortRemainingBy';
108
109
  export * from './source';
109
110
  export * from './standardEntries';
111
+ export * from './supportedLanguage';
110
112
  export * from './synonymHit';
111
113
  export * from './synonymType';
112
114
  export * from './tagFilters';