algoliasearch 5.0.0-alpha.99 → 5.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (522) hide show
  1. package/builds/browser.ts +10 -17
  2. package/builds/node.ts +58 -15
  3. package/dist/algoliasearch/builds/browser.d.ts +10 -5
  4. package/dist/algoliasearch/builds/browser.d.ts.map +1 -1
  5. package/dist/algoliasearch/builds/node.d.ts +28 -6
  6. package/dist/algoliasearch/builds/node.d.ts.map +1 -1
  7. package/dist/algoliasearch.cjs +752 -387
  8. package/dist/algoliasearch.esm.browser.js +724 -393
  9. package/dist/algoliasearch.esm.node.js +753 -388
  10. package/dist/algoliasearch.umd.js +2 -2
  11. package/dist/client-abtesting/model/aBTest.d.ts +14 -29
  12. package/dist/client-abtesting/model/aBTest.d.ts.map +1 -1
  13. package/dist/client-abtesting/model/aBTestConfiguration.d.ts +12 -0
  14. package/dist/client-abtesting/model/aBTestConfiguration.d.ts.map +1 -0
  15. package/dist/client-abtesting/model/aBTestResponse.d.ts +3 -3
  16. package/dist/client-abtesting/model/abTestsVariant.d.ts +3 -3
  17. package/dist/client-abtesting/model/addABTestsRequest.d.ts +1 -1
  18. package/dist/client-abtesting/model/clientMethodProps.d.ts +7 -7
  19. package/dist/client-abtesting/model/{currenciesValue.d.ts → currency.d.ts} +2 -2
  20. package/dist/client-abtesting/model/currency.d.ts.map +1 -0
  21. package/dist/client-abtesting/model/customSearchParams.d.ts +1 -1
  22. package/dist/client-abtesting/model/effect.d.ts +5 -0
  23. package/dist/client-abtesting/model/effect.d.ts.map +1 -0
  24. package/dist/client-abtesting/model/emptySearch.d.ts +10 -0
  25. package/dist/client-abtesting/model/emptySearch.d.ts.map +1 -0
  26. package/dist/client-abtesting/model/index.d.ts +7 -1
  27. package/dist/client-abtesting/model/index.d.ts.map +1 -1
  28. package/dist/client-abtesting/model/listABTestsResponse.d.ts +2 -2
  29. package/dist/client-abtesting/model/listABTestsResponse.d.ts.map +1 -1
  30. package/dist/client-abtesting/model/minimumDetectableEffect.d.ts +12 -0
  31. package/dist/client-abtesting/model/minimumDetectableEffect.d.ts.map +1 -0
  32. package/dist/client-abtesting/model/outliers.d.ts +10 -0
  33. package/dist/client-abtesting/model/outliers.d.ts.map +1 -0
  34. package/dist/client-abtesting/model/status.d.ts +5 -0
  35. package/dist/client-abtesting/model/status.d.ts.map +1 -0
  36. package/dist/client-abtesting/model/variant.d.ts +29 -25
  37. package/dist/client-abtesting/model/variant.d.ts.map +1 -1
  38. package/dist/client-abtesting/src/abtestingClient.d.ts +28 -26
  39. package/dist/client-abtesting/src/abtestingClient.d.ts.map +1 -1
  40. package/dist/client-analytics/model/clickPositionsInner.d.ts +14 -0
  41. package/dist/client-analytics/model/clickPositionsInner.d.ts.map +1 -0
  42. package/dist/client-analytics/model/clientMethodProps.d.ts +161 -90
  43. package/dist/client-analytics/model/clientMethodProps.d.ts.map +1 -1
  44. package/dist/client-analytics/model/currenciesValue.d.ts +14 -0
  45. package/dist/client-analytics/model/currenciesValue.d.ts.map +1 -0
  46. package/dist/client-analytics/model/dailyAddToCartRates.d.ts +19 -0
  47. package/dist/client-analytics/model/dailyAddToCartRates.d.ts.map +1 -0
  48. package/dist/client-analytics/model/dailyAverageClicks.d.ts +15 -0
  49. package/dist/client-analytics/model/dailyAverageClicks.d.ts.map +1 -0
  50. package/dist/client-analytics/model/dailyClickThroughRates.d.ts +19 -0
  51. package/dist/client-analytics/model/dailyClickThroughRates.d.ts.map +1 -0
  52. package/dist/client-analytics/model/dailyConversionRates.d.ts +19 -0
  53. package/dist/client-analytics/model/dailyConversionRates.d.ts.map +1 -0
  54. package/dist/client-analytics/model/dailyNoClickRates.d.ts +19 -0
  55. package/dist/client-analytics/model/dailyNoClickRates.d.ts.map +1 -0
  56. package/dist/client-analytics/model/dailyNoResultsRates.d.ts +19 -0
  57. package/dist/client-analytics/model/dailyNoResultsRates.d.ts.map +1 -0
  58. package/dist/client-analytics/model/dailyPurchaseRates.d.ts +19 -0
  59. package/dist/client-analytics/model/dailyPurchaseRates.d.ts.map +1 -0
  60. package/dist/client-analytics/model/dailyRevenue.d.ts +12 -0
  61. package/dist/client-analytics/model/dailyRevenue.d.ts.map +1 -0
  62. package/dist/client-analytics/model/dailySearches.d.ts +11 -0
  63. package/dist/client-analytics/model/dailySearches.d.ts.map +1 -0
  64. package/dist/client-analytics/model/dailySearchesNoClicks.d.ts +15 -0
  65. package/dist/client-analytics/model/dailySearchesNoClicks.d.ts.map +1 -0
  66. package/dist/client-analytics/model/dailySearchesNoResults.d.ts +15 -0
  67. package/dist/client-analytics/model/dailySearchesNoResults.d.ts.map +1 -0
  68. package/dist/client-analytics/model/dailyUsers.d.ts +11 -0
  69. package/dist/client-analytics/model/dailyUsers.d.ts.map +1 -0
  70. package/dist/client-analytics/model/getAddToCartRateResponse.d.ts +20 -0
  71. package/dist/client-analytics/model/getAddToCartRateResponse.d.ts.map +1 -0
  72. package/dist/client-analytics/model/getAverageClickPositionResponse.d.ts +6 -6
  73. package/dist/client-analytics/model/getAverageClickPositionResponse.d.ts.map +1 -1
  74. package/dist/client-analytics/model/getClickPositionsResponse.d.ts +3 -3
  75. package/dist/client-analytics/model/getClickPositionsResponse.d.ts.map +1 -1
  76. package/dist/client-analytics/model/getClickThroughRateResponse.d.ts +7 -7
  77. package/dist/client-analytics/model/getClickThroughRateResponse.d.ts.map +1 -1
  78. package/dist/client-analytics/model/getConversionRateResponse.d.ts +20 -0
  79. package/dist/client-analytics/model/getConversionRateResponse.d.ts.map +1 -0
  80. package/dist/client-analytics/model/getNoClickRateResponse.d.ts +6 -6
  81. package/dist/client-analytics/model/getNoClickRateResponse.d.ts.map +1 -1
  82. package/dist/client-analytics/model/getNoResultsRateResponse.d.ts +6 -6
  83. package/dist/client-analytics/model/getNoResultsRateResponse.d.ts.map +1 -1
  84. package/dist/client-analytics/model/getPurchaseRateResponse.d.ts +20 -0
  85. package/dist/client-analytics/model/getPurchaseRateResponse.d.ts.map +1 -0
  86. package/dist/client-analytics/model/getRevenue.d.ts +13 -0
  87. package/dist/client-analytics/model/getRevenue.d.ts.map +1 -0
  88. package/dist/client-analytics/model/getSearchesCountResponse.d.ts +3 -3
  89. package/dist/client-analytics/model/getSearchesCountResponse.d.ts.map +1 -1
  90. package/dist/client-analytics/model/getSearchesNoClicksResponse.d.ts +3 -3
  91. package/dist/client-analytics/model/getSearchesNoClicksResponse.d.ts.map +1 -1
  92. package/dist/client-analytics/model/getSearchesNoResultsResponse.d.ts +3 -3
  93. package/dist/client-analytics/model/getSearchesNoResultsResponse.d.ts.map +1 -1
  94. package/dist/client-analytics/model/getStatusResponse.d.ts +2 -2
  95. package/dist/client-analytics/model/getStatusResponse.d.ts.map +1 -1
  96. package/dist/client-analytics/model/getTopCountriesResponse.d.ts +1 -1
  97. package/dist/client-analytics/model/getTopFilterAttributesResponse.d.ts +1 -1
  98. package/dist/client-analytics/model/getTopFilterForAttribute.d.ts +2 -4
  99. package/dist/client-analytics/model/getTopFilterForAttribute.d.ts.map +1 -1
  100. package/dist/client-analytics/model/getTopFiltersNoResultsResponse.d.ts +2 -2
  101. package/dist/client-analytics/model/getTopFiltersNoResultsResponse.d.ts.map +1 -1
  102. package/dist/client-analytics/model/getTopFiltersNoResultsValue.d.ts +2 -4
  103. package/dist/client-analytics/model/getTopFiltersNoResultsValue.d.ts.map +1 -1
  104. package/dist/client-analytics/model/getTopHitsResponse.d.ts +2 -1
  105. package/dist/client-analytics/model/getTopHitsResponse.d.ts.map +1 -1
  106. package/dist/client-analytics/model/getTopSearchesResponse.d.ts +2 -1
  107. package/dist/client-analytics/model/getTopSearchesResponse.d.ts.map +1 -1
  108. package/dist/client-analytics/model/getUsersCountResponse.d.ts +4 -4
  109. package/dist/client-analytics/model/getUsersCountResponse.d.ts.map +1 -1
  110. package/dist/client-analytics/model/index.d.ts +23 -11
  111. package/dist/client-analytics/model/index.d.ts.map +1 -1
  112. package/dist/client-analytics/model/operator.d.ts +5 -0
  113. package/dist/client-analytics/model/operator.d.ts.map +1 -0
  114. package/dist/client-analytics/model/orderBy.d.ts +1 -1
  115. package/dist/client-analytics/model/topCountry.d.ts +1 -1
  116. package/dist/client-analytics/model/topHit.d.ts +1 -1
  117. package/dist/client-analytics/model/topHitWithAnalytics.d.ts +9 -9
  118. package/dist/client-analytics/model/topHitWithAnalytics.d.ts.map +1 -1
  119. package/dist/client-analytics/model/topHitWithRevenueAnalytics.d.ts +52 -0
  120. package/dist/client-analytics/model/topHitWithRevenueAnalytics.d.ts.map +1 -0
  121. package/dist/client-analytics/model/topHitsResponse.d.ts +1 -1
  122. package/dist/client-analytics/model/topHitsResponseWithAnalytics.d.ts +1 -1
  123. package/dist/client-analytics/model/topHitsResponseWithRevenueAnalytics.d.ts +8 -0
  124. package/dist/client-analytics/model/topHitsResponseWithRevenueAnalytics.d.ts.map +1 -0
  125. package/dist/client-analytics/model/topSearch.d.ts +3 -3
  126. package/dist/client-analytics/model/topSearchWithAnalytics.d.ts +17 -12
  127. package/dist/client-analytics/model/topSearchWithAnalytics.d.ts.map +1 -1
  128. package/dist/client-analytics/model/topSearchWithRevenueAnalytics.d.ts +65 -0
  129. package/dist/client-analytics/model/topSearchWithRevenueAnalytics.d.ts.map +1 -0
  130. package/dist/client-analytics/model/topSearchesResponse.d.ts +1 -1
  131. package/dist/client-analytics/model/topSearchesResponseWithAnalytics.d.ts +1 -1
  132. package/dist/client-analytics/model/topSearchesResponseWithRevenueAnalytics.d.ts +8 -0
  133. package/dist/client-analytics/model/topSearchesResponseWithRevenueAnalytics.d.ts.map +1 -0
  134. package/dist/client-analytics/src/analyticsClient.d.ts +211 -138
  135. package/dist/client-analytics/src/analyticsClient.d.ts.map +1 -1
  136. package/dist/client-personalization/model/clientMethodProps.d.ts +2 -2
  137. package/dist/client-personalization/model/deleteUserProfileResponse.d.ts +2 -2
  138. package/dist/client-personalization/model/eventScoring.d.ts +4 -6
  139. package/dist/client-personalization/model/eventScoring.d.ts.map +1 -1
  140. package/dist/client-personalization/model/eventType.d.ts +5 -0
  141. package/dist/client-personalization/model/eventType.d.ts.map +1 -0
  142. package/dist/client-personalization/model/facetScoring.d.ts +2 -2
  143. package/dist/client-personalization/model/getUserTokenResponse.d.ts +3 -3
  144. package/dist/client-personalization/model/index.d.ts +1 -0
  145. package/dist/client-personalization/model/index.d.ts.map +1 -1
  146. package/dist/client-personalization/model/personalizationStrategyParams.d.ts +3 -3
  147. package/dist/client-personalization/src/personalizationClient.d.ts +19 -19
  148. package/dist/client-personalization/src/personalizationClient.d.ts.map +1 -1
  149. package/dist/client-search/model/acl.d.ts +1 -1
  150. package/dist/client-search/model/action.d.ts +1 -1
  151. package/dist/client-search/model/addApiKeyResponse.d.ts +1 -1
  152. package/dist/client-search/model/anchoring.d.ts +1 -1
  153. package/dist/client-search/model/apiKey.d.ts +8 -8
  154. package/dist/client-search/model/apiKeyOperation.d.ts +2 -0
  155. package/dist/client-search/model/apiKeyOperation.d.ts.map +1 -0
  156. package/dist/client-search/model/aroundPrecision.d.ts +1 -1
  157. package/dist/client-search/model/aroundPrecisionFromValueInner.d.ts +9 -0
  158. package/dist/client-search/model/aroundPrecisionFromValueInner.d.ts.map +1 -1
  159. package/dist/client-search/model/aroundRadius.d.ts +1 -1
  160. package/dist/client-search/model/aroundRadiusAll.d.ts +3 -0
  161. package/dist/client-search/model/aroundRadiusAll.d.ts.map +1 -1
  162. package/dist/client-search/model/automaticFacetFilter.d.ts +4 -4
  163. package/dist/client-search/model/automaticFacetFilters.d.ts +1 -1
  164. package/dist/client-search/model/baseGetApiKeyResponse.d.ts +1 -1
  165. package/dist/client-search/model/baseIndexSettings.d.ts +22 -17
  166. package/dist/client-search/model/baseIndexSettings.d.ts.map +1 -1
  167. package/dist/client-search/model/baseSearchParamsWithoutQuery.d.ts +26 -29
  168. package/dist/client-search/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  169. package/dist/client-search/model/baseSearchResponse.d.ts +10 -6
  170. package/dist/client-search/model/baseSearchResponse.d.ts.map +1 -1
  171. package/dist/client-search/model/batchDictionaryEntriesParams.d.ts +3 -3
  172. package/dist/client-search/model/batchResponse.d.ts +2 -2
  173. package/dist/client-search/model/builtInOperation.d.ts +2 -2
  174. package/dist/client-search/model/builtInOperationType.d.ts +1 -1
  175. package/dist/client-search/model/clientMethodProps.d.ts +124 -65
  176. package/dist/client-search/model/clientMethodProps.d.ts.map +1 -1
  177. package/dist/client-search/model/condition.d.ts +7 -3
  178. package/dist/client-search/model/condition.d.ts.map +1 -1
  179. package/dist/client-search/model/consequence.d.ts +5 -5
  180. package/dist/client-search/model/consequenceHide.d.ts +2 -2
  181. package/dist/client-search/model/consequenceQuery.d.ts +1 -1
  182. package/dist/client-search/model/consequenceQueryObject.d.ts +2 -2
  183. package/dist/client-search/model/createdAtResponse.d.ts +1 -1
  184. package/dist/client-search/model/cursor.d.ts +1 -1
  185. package/dist/client-search/model/deleteApiKeyResponse.d.ts +1 -1
  186. package/dist/client-search/model/deleteByParams.d.ts +4 -4
  187. package/dist/client-search/model/deleteSourceResponse.d.ts +1 -1
  188. package/dist/client-search/model/deletedAtResponse.d.ts +2 -2
  189. package/dist/client-search/model/dictionaryEntry.d.ts +6 -8
  190. package/dist/client-search/model/dictionaryEntry.d.ts.map +1 -1
  191. package/dist/client-search/model/dictionaryEntryState.d.ts +1 -1
  192. package/dist/client-search/model/dictionaryLanguage.d.ts +2 -2
  193. package/dist/client-search/model/dictionarySettingsParams.d.ts +1 -1
  194. package/dist/client-search/model/distinct.d.ts +1 -1
  195. package/dist/client-search/model/edit.d.ts +1 -1
  196. package/dist/client-search/model/exactOnSingleWordQuery.d.ts +1 -1
  197. package/dist/client-search/model/facetFilters.d.ts +2 -3
  198. package/dist/client-search/model/facetFilters.d.ts.map +1 -1
  199. package/dist/client-search/model/facetHits.d.ts +2 -2
  200. package/dist/client-search/model/facetOrdering.d.ts +2 -2
  201. package/dist/client-search/model/facets.d.ts +2 -2
  202. package/dist/client-search/model/fetchedIndex.d.ts +1 -1
  203. package/dist/client-search/model/getObjectsRequest.d.ts +3 -3
  204. package/dist/client-search/model/getObjectsResponse.d.ts +1 -1
  205. package/dist/client-search/model/hasPendingMappingsResponse.d.ts +1 -1
  206. package/dist/client-search/model/highlightResult.d.ts +1 -1
  207. package/dist/client-search/model/highlightResult.d.ts.map +1 -1
  208. package/dist/client-search/model/highlightResultOption.d.ts +3 -3
  209. package/dist/client-search/model/hit.d.ts +4 -4
  210. package/dist/client-search/model/ignorePlurals.d.ts +3 -2
  211. package/dist/client-search/model/ignorePlurals.d.ts.map +1 -1
  212. package/dist/client-search/model/index.d.ts +4 -1
  213. package/dist/client-search/model/index.d.ts.map +1 -1
  214. package/dist/client-search/model/indexSettings.d.ts +1 -1
  215. package/dist/client-search/model/indexSettingsAsSearchParams.d.ts +32 -35
  216. package/dist/client-search/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  217. package/dist/client-search/model/log.d.ts +11 -11
  218. package/dist/client-search/model/logQuery.d.ts +1 -1
  219. package/dist/client-search/model/matchLevel.d.ts +1 -1
  220. package/dist/client-search/model/mode.d.ts +1 -1
  221. package/dist/client-search/model/multipleBatchRequest.d.ts +1 -1
  222. package/dist/client-search/model/multipleBatchResponse.d.ts +2 -2
  223. package/dist/client-search/model/numericFilters.d.ts +2 -3
  224. package/dist/client-search/model/numericFilters.d.ts.map +1 -1
  225. package/dist/client-search/model/operationIndexParams.d.ts +2 -2
  226. package/dist/client-search/model/operationType.d.ts +1 -1
  227. package/dist/client-search/model/optionalFilters.d.ts +2 -3
  228. package/dist/client-search/model/optionalFilters.d.ts.map +1 -1
  229. package/dist/client-search/model/params.d.ts +1 -1
  230. package/dist/client-search/model/promoteObjectID.d.ts +2 -2
  231. package/dist/client-search/model/promoteObjectIDs.d.ts +2 -2
  232. package/dist/client-search/model/queryType.d.ts +1 -1
  233. package/dist/client-search/model/rankingInfo.d.ts +10 -7
  234. package/dist/client-search/model/rankingInfo.d.ts.map +1 -1
  235. package/dist/client-search/model/reRankingApplyFilter.d.ts +2 -3
  236. package/dist/client-search/model/reRankingApplyFilter.d.ts.map +1 -1
  237. package/dist/client-search/model/removeStopWords.d.ts +3 -2
  238. package/dist/client-search/model/removeStopWords.d.ts.map +1 -1
  239. package/dist/client-search/model/removeUserIdResponse.d.ts +1 -1
  240. package/dist/client-search/model/removeWordsIfNoResults.d.ts +1 -1
  241. package/dist/client-search/model/renderingContent.d.ts +1 -1
  242. package/dist/client-search/model/replaceSourceResponse.d.ts +1 -1
  243. package/dist/client-search/model/rule.d.ts +5 -5
  244. package/dist/client-search/model/saveObjectResponse.d.ts +3 -3
  245. package/dist/client-search/model/saveSynonymResponse.d.ts +2 -2
  246. package/dist/client-search/model/searchDictionaryEntriesParams.d.ts +5 -7
  247. package/dist/client-search/model/searchDictionaryEntriesParams.d.ts.map +1 -1
  248. package/dist/client-search/model/searchDictionaryEntriesResponse.d.ts +20 -0
  249. package/dist/client-search/model/searchDictionaryEntriesResponse.d.ts.map +1 -0
  250. package/dist/client-search/model/searchForFacetValuesRequest.d.ts +1 -1
  251. package/dist/client-search/model/searchForFacetValuesResponse.d.ts +4 -1
  252. package/dist/client-search/model/searchForFacetValuesResponse.d.ts.map +1 -1
  253. package/dist/client-search/model/searchForFacetsOptions.d.ts +2 -2
  254. package/dist/client-search/model/searchForHitsOptions.d.ts +1 -1
  255. package/dist/client-search/model/searchHits.d.ts +6 -3
  256. package/dist/client-search/model/searchHits.d.ts.map +1 -1
  257. package/dist/client-search/model/searchParamsObject.d.ts +3 -0
  258. package/dist/client-search/model/searchParamsObject.d.ts.map +1 -1
  259. package/dist/client-search/model/searchParamsQuery.d.ts +1 -1
  260. package/dist/client-search/model/searchRulesParams.d.ts +4 -8
  261. package/dist/client-search/model/searchRulesParams.d.ts.map +1 -1
  262. package/dist/client-search/model/searchRulesResponse.d.ts +2 -2
  263. package/dist/client-search/model/searchStrategy.d.ts +1 -1
  264. package/dist/client-search/model/searchSynonymsParams.d.ts +2 -2
  265. package/dist/client-search/model/searchSynonymsResponse.d.ts +2 -2
  266. package/dist/client-search/model/searchUserIdsParams.d.ts +1 -1
  267. package/dist/client-search/model/searchUserIdsResponse.d.ts +3 -3
  268. package/dist/client-search/model/securedAPIKeyRestrictions.d.ts +25 -0
  269. package/dist/client-search/model/securedAPIKeyRestrictions.d.ts.map +1 -0
  270. package/dist/client-search/model/semanticSearch.d.ts +2 -2
  271. package/dist/client-search/model/snippetResult.d.ts +1 -1
  272. package/dist/client-search/model/snippetResult.d.ts.map +1 -1
  273. package/dist/client-search/model/snippetResultOption.d.ts +2 -2
  274. package/dist/client-search/model/sortRemainingBy.d.ts +1 -1
  275. package/dist/client-search/model/supportedLanguage.d.ts +5 -0
  276. package/dist/client-search/model/supportedLanguage.d.ts.map +1 -0
  277. package/dist/client-search/model/tagFilters.d.ts +2 -3
  278. package/dist/client-search/model/tagFilters.d.ts.map +1 -1
  279. package/dist/client-search/model/taskStatus.d.ts +1 -1
  280. package/dist/client-search/model/timeRange.d.ts +2 -2
  281. package/dist/client-search/model/typoTolerance.d.ts +1 -1
  282. package/dist/client-search/model/typoToleranceEnum.d.ts +3 -0
  283. package/dist/client-search/model/typoToleranceEnum.d.ts.map +1 -1
  284. package/dist/client-search/model/updateApiKeyResponse.d.ts +1 -1
  285. package/dist/client-search/model/updatedAtResponse.d.ts +2 -2
  286. package/dist/client-search/model/updatedAtWithObjectIdResponse.d.ts +3 -3
  287. package/dist/client-search/model/updatedRuleResponse.d.ts +3 -3
  288. package/dist/client-search/model/userHit.d.ts +1 -1
  289. package/dist/client-search/model/userId.d.ts +1 -1
  290. package/dist/client-search/model/value.d.ts +1 -1
  291. package/dist/client-search/src/searchClient.d.ts +324 -202
  292. package/dist/client-search/src/searchClient.d.ts.map +1 -1
  293. package/dist/lite/builds/browser.d.ts +14 -3
  294. package/dist/lite/builds/browser.d.ts.map +1 -1
  295. package/dist/lite/builds/node.d.ts +14 -3
  296. package/dist/lite/builds/node.d.ts.map +1 -1
  297. package/dist/lite/lite.cjs +8 -6
  298. package/dist/lite/lite.esm.browser.js +13 -14
  299. package/dist/lite/lite.esm.node.js +8 -6
  300. package/dist/lite/lite.umd.js +2 -2
  301. package/dist/lite/model/acl.d.ts +1 -1
  302. package/dist/lite/model/action.d.ts +1 -1
  303. package/dist/lite/model/addApiKeyResponse.d.ts +1 -1
  304. package/dist/lite/model/anchoring.d.ts +1 -1
  305. package/dist/lite/model/apiKey.d.ts +8 -8
  306. package/dist/lite/model/apiKeyOperation.d.ts +2 -0
  307. package/dist/lite/model/apiKeyOperation.d.ts.map +1 -0
  308. package/dist/lite/model/aroundPrecision.d.ts +1 -1
  309. package/dist/lite/model/aroundPrecisionFromValueInner.d.ts +9 -0
  310. package/dist/lite/model/aroundPrecisionFromValueInner.d.ts.map +1 -1
  311. package/dist/lite/model/aroundRadius.d.ts +1 -1
  312. package/dist/lite/model/aroundRadiusAll.d.ts +3 -0
  313. package/dist/lite/model/aroundRadiusAll.d.ts.map +1 -1
  314. package/dist/lite/model/automaticFacetFilter.d.ts +4 -4
  315. package/dist/lite/model/automaticFacetFilters.d.ts +1 -1
  316. package/dist/lite/model/baseGetApiKeyResponse.d.ts +1 -1
  317. package/dist/lite/model/baseIndexSettings.d.ts +22 -17
  318. package/dist/lite/model/baseIndexSettings.d.ts.map +1 -1
  319. package/dist/lite/model/baseSearchParamsWithoutQuery.d.ts +26 -29
  320. package/dist/lite/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  321. package/dist/lite/model/baseSearchResponse.d.ts +10 -6
  322. package/dist/lite/model/baseSearchResponse.d.ts.map +1 -1
  323. package/dist/lite/model/builtInOperation.d.ts +2 -2
  324. package/dist/lite/model/builtInOperationType.d.ts +1 -1
  325. package/dist/lite/model/condition.d.ts +7 -3
  326. package/dist/lite/model/condition.d.ts.map +1 -1
  327. package/dist/lite/model/consequence.d.ts +5 -5
  328. package/dist/lite/model/consequenceHide.d.ts +2 -2
  329. package/dist/lite/model/consequenceQuery.d.ts +1 -1
  330. package/dist/lite/model/consequenceQueryObject.d.ts +2 -2
  331. package/dist/lite/model/cursor.d.ts +1 -1
  332. package/dist/lite/model/deleteByParams.d.ts +4 -4
  333. package/dist/lite/model/dictionaryEntry.d.ts +6 -8
  334. package/dist/lite/model/dictionaryEntry.d.ts.map +1 -1
  335. package/dist/lite/model/dictionaryEntryState.d.ts +1 -1
  336. package/dist/lite/model/dictionaryLanguage.d.ts +2 -2
  337. package/dist/lite/model/distinct.d.ts +1 -1
  338. package/dist/lite/model/edit.d.ts +1 -1
  339. package/dist/lite/model/exactOnSingleWordQuery.d.ts +1 -1
  340. package/dist/lite/model/facetFilters.d.ts +2 -3
  341. package/dist/lite/model/facetFilters.d.ts.map +1 -1
  342. package/dist/lite/model/facetHits.d.ts +2 -2
  343. package/dist/lite/model/facetOrdering.d.ts +2 -2
  344. package/dist/lite/model/facets.d.ts +2 -2
  345. package/dist/lite/model/fetchedIndex.d.ts +1 -1
  346. package/dist/lite/model/highlightResult.d.ts +1 -1
  347. package/dist/lite/model/highlightResult.d.ts.map +1 -1
  348. package/dist/lite/model/highlightResultOption.d.ts +3 -3
  349. package/dist/lite/model/hit.d.ts +4 -4
  350. package/dist/lite/model/ignorePlurals.d.ts +3 -2
  351. package/dist/lite/model/ignorePlurals.d.ts.map +1 -1
  352. package/dist/lite/model/index.d.ts +4 -1
  353. package/dist/lite/model/index.d.ts.map +1 -1
  354. package/dist/lite/model/indexSettings.d.ts +1 -1
  355. package/dist/lite/model/indexSettingsAsSearchParams.d.ts +32 -35
  356. package/dist/lite/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  357. package/dist/lite/model/matchLevel.d.ts +1 -1
  358. package/dist/lite/model/mode.d.ts +1 -1
  359. package/dist/lite/model/numericFilters.d.ts +2 -3
  360. package/dist/lite/model/numericFilters.d.ts.map +1 -1
  361. package/dist/lite/model/operationType.d.ts +1 -1
  362. package/dist/lite/model/optionalFilters.d.ts +2 -3
  363. package/dist/lite/model/optionalFilters.d.ts.map +1 -1
  364. package/dist/lite/model/params.d.ts +1 -1
  365. package/dist/lite/model/promoteObjectID.d.ts +2 -2
  366. package/dist/lite/model/promoteObjectIDs.d.ts +2 -2
  367. package/dist/lite/model/queryType.d.ts +1 -1
  368. package/dist/lite/model/rankingInfo.d.ts +10 -7
  369. package/dist/lite/model/rankingInfo.d.ts.map +1 -1
  370. package/dist/lite/model/reRankingApplyFilter.d.ts +2 -3
  371. package/dist/lite/model/reRankingApplyFilter.d.ts.map +1 -1
  372. package/dist/lite/model/removeStopWords.d.ts +3 -2
  373. package/dist/lite/model/removeStopWords.d.ts.map +1 -1
  374. package/dist/lite/model/removeWordsIfNoResults.d.ts +1 -1
  375. package/dist/lite/model/renderingContent.d.ts +1 -1
  376. package/dist/lite/model/rule.d.ts +5 -5
  377. package/dist/lite/model/searchDictionaryEntriesResponse.d.ts +20 -0
  378. package/dist/lite/model/searchDictionaryEntriesResponse.d.ts.map +1 -0
  379. package/dist/lite/model/searchForFacetValuesResponse.d.ts +4 -1
  380. package/dist/lite/model/searchForFacetValuesResponse.d.ts.map +1 -1
  381. package/dist/lite/model/searchForFacetsOptions.d.ts +2 -2
  382. package/dist/lite/model/searchForHitsOptions.d.ts +1 -1
  383. package/dist/lite/model/searchHits.d.ts +6 -3
  384. package/dist/lite/model/searchHits.d.ts.map +1 -1
  385. package/dist/lite/model/searchParamsObject.d.ts +3 -0
  386. package/dist/lite/model/searchParamsObject.d.ts.map +1 -1
  387. package/dist/lite/model/searchParamsQuery.d.ts +1 -1
  388. package/dist/lite/model/searchStrategy.d.ts +1 -1
  389. package/dist/lite/model/searchSynonymsResponse.d.ts +2 -2
  390. package/dist/lite/model/securedAPIKeyRestrictions.d.ts +25 -0
  391. package/dist/lite/model/securedAPIKeyRestrictions.d.ts.map +1 -0
  392. package/dist/lite/model/semanticSearch.d.ts +2 -2
  393. package/dist/lite/model/snippetResult.d.ts +1 -1
  394. package/dist/lite/model/snippetResult.d.ts.map +1 -1
  395. package/dist/lite/model/snippetResultOption.d.ts +2 -2
  396. package/dist/lite/model/sortRemainingBy.d.ts +1 -1
  397. package/dist/lite/model/supportedLanguage.d.ts +5 -0
  398. package/dist/lite/model/supportedLanguage.d.ts.map +1 -0
  399. package/dist/lite/model/tagFilters.d.ts +2 -3
  400. package/dist/lite/model/tagFilters.d.ts.map +1 -1
  401. package/dist/lite/model/taskStatus.d.ts +1 -1
  402. package/dist/lite/model/timeRange.d.ts +2 -2
  403. package/dist/lite/model/typoTolerance.d.ts +1 -1
  404. package/dist/lite/model/typoToleranceEnum.d.ts +3 -0
  405. package/dist/lite/model/typoToleranceEnum.d.ts.map +1 -1
  406. package/dist/lite/model/updatedRuleResponse.d.ts +3 -3
  407. package/dist/lite/model/userId.d.ts +1 -1
  408. package/dist/lite/model/value.d.ts +1 -1
  409. package/dist/lite/src/liteClient.d.ts +6 -9
  410. package/dist/lite/src/liteClient.d.ts.map +1 -1
  411. package/lite/builds/browser.ts +11 -6
  412. package/lite/builds/node.ts +10 -5
  413. package/lite/model/acl.ts +1 -1
  414. package/lite/model/action.ts +1 -1
  415. package/lite/model/addApiKeyResponse.ts +1 -1
  416. package/lite/model/anchoring.ts +1 -1
  417. package/lite/model/apiKey.ts +8 -8
  418. package/lite/model/{mixedSearchFilters.ts → apiKeyOperation.ts} +1 -1
  419. package/lite/model/aroundPrecision.ts +1 -1
  420. package/lite/model/aroundPrecisionFromValueInner.ts +9 -0
  421. package/lite/model/aroundRadius.ts +1 -1
  422. package/lite/model/aroundRadiusAll.ts +3 -0
  423. package/lite/model/automaticFacetFilter.ts +4 -4
  424. package/lite/model/automaticFacetFilters.ts +1 -1
  425. package/lite/model/baseGetApiKeyResponse.ts +1 -1
  426. package/lite/model/baseIndexSettings.ts +24 -17
  427. package/lite/model/baseSearchParamsWithoutQuery.ts +26 -30
  428. package/lite/model/baseSearchResponse.ts +11 -6
  429. package/lite/model/builtInOperation.ts +2 -2
  430. package/lite/model/builtInOperationType.ts +1 -1
  431. package/lite/model/condition.ts +8 -3
  432. package/lite/model/consequence.ts +5 -5
  433. package/lite/model/consequenceHide.ts +2 -2
  434. package/lite/model/consequenceQuery.ts +1 -1
  435. package/lite/model/consequenceQueryObject.ts +2 -2
  436. package/lite/model/cursor.ts +1 -1
  437. package/lite/model/deleteByParams.ts +4 -4
  438. package/lite/model/dictionaryEntry.ts +6 -8
  439. package/lite/model/dictionaryEntryState.ts +1 -1
  440. package/lite/model/dictionaryLanguage.ts +2 -2
  441. package/lite/model/distinct.ts +1 -1
  442. package/lite/model/edit.ts +1 -1
  443. package/lite/model/exactOnSingleWordQuery.ts +1 -1
  444. package/lite/model/facetFilters.ts +2 -4
  445. package/lite/model/facetHits.ts +2 -2
  446. package/lite/model/facetOrdering.ts +2 -2
  447. package/lite/model/facets.ts +2 -2
  448. package/lite/model/fetchedIndex.ts +1 -1
  449. package/lite/model/highlightResult.ts +1 -0
  450. package/lite/model/highlightResultOption.ts +3 -3
  451. package/lite/model/hit.ts +4 -4
  452. package/lite/model/ignorePlurals.ts +4 -2
  453. package/lite/model/index.ts +4 -1
  454. package/lite/model/indexSettings.ts +1 -1
  455. package/lite/model/indexSettingsAsSearchParams.ts +32 -36
  456. package/lite/model/matchLevel.ts +1 -1
  457. package/lite/model/mode.ts +1 -1
  458. package/lite/model/numericFilters.ts +2 -4
  459. package/lite/model/operationType.ts +1 -1
  460. package/lite/model/optionalFilters.ts +2 -4
  461. package/lite/model/params.ts +1 -1
  462. package/lite/model/promoteObjectID.ts +2 -2
  463. package/lite/model/promoteObjectIDs.ts +2 -2
  464. package/lite/model/queryType.ts +1 -1
  465. package/lite/model/rankingInfo.ts +10 -7
  466. package/lite/model/reRankingApplyFilter.ts +2 -4
  467. package/lite/model/removeStopWords.ts +4 -2
  468. package/lite/model/removeWordsIfNoResults.ts +1 -1
  469. package/lite/model/renderingContent.ts +1 -1
  470. package/lite/model/rule.ts +5 -5
  471. package/lite/model/searchDictionaryEntriesResponse.ts +25 -0
  472. package/lite/model/searchForFacetValuesResponse.ts +4 -1
  473. package/lite/model/searchForFacetsOptions.ts +2 -2
  474. package/lite/model/searchForHitsOptions.ts +1 -1
  475. package/lite/model/searchHits.ts +6 -3
  476. package/lite/model/searchParamsObject.ts +3 -0
  477. package/lite/model/searchParamsQuery.ts +1 -1
  478. package/lite/model/searchStrategy.ts +1 -1
  479. package/lite/model/searchSynonymsResponse.ts +2 -2
  480. package/lite/model/securedAPIKeyRestrictions.ts +32 -0
  481. package/lite/model/semanticSearch.ts +2 -2
  482. package/lite/model/snippetResult.ts +2 -1
  483. package/lite/model/snippetResultOption.ts +2 -2
  484. package/lite/model/sortRemainingBy.ts +1 -1
  485. package/lite/model/supportedLanguage.ts +74 -0
  486. package/lite/model/tagFilters.ts +2 -4
  487. package/lite/model/taskStatus.ts +1 -1
  488. package/lite/model/timeRange.ts +2 -2
  489. package/lite/model/typoTolerance.ts +1 -1
  490. package/lite/model/typoToleranceEnum.ts +3 -0
  491. package/lite/model/updatedRuleResponse.ts +3 -3
  492. package/lite/model/userId.ts +1 -1
  493. package/lite/model/value.ts +1 -1
  494. package/lite/src/liteClient.ts +8 -12
  495. package/package.json +14 -14
  496. package/dist/client-abtesting/model/currenciesValue.d.ts.map +0 -1
  497. package/dist/client-analytics/model/averageClickEvent.d.ts +0 -15
  498. package/dist/client-analytics/model/averageClickEvent.d.ts.map +0 -1
  499. package/dist/client-analytics/model/clickPosition.d.ts +0 -11
  500. package/dist/client-analytics/model/clickPosition.d.ts.map +0 -1
  501. package/dist/client-analytics/model/clickThroughRateEvent.d.ts +0 -19
  502. package/dist/client-analytics/model/clickThroughRateEvent.d.ts.map +0 -1
  503. package/dist/client-analytics/model/conversionRateEvent.d.ts +0 -19
  504. package/dist/client-analytics/model/conversionRateEvent.d.ts.map +0 -1
  505. package/dist/client-analytics/model/getConversationRateResponse.d.ts +0 -20
  506. package/dist/client-analytics/model/getConversationRateResponse.d.ts.map +0 -1
  507. package/dist/client-analytics/model/noClickRateEvent.d.ts +0 -19
  508. package/dist/client-analytics/model/noClickRateEvent.d.ts.map +0 -1
  509. package/dist/client-analytics/model/noResultsRateEvent.d.ts +0 -19
  510. package/dist/client-analytics/model/noResultsRateEvent.d.ts.map +0 -1
  511. package/dist/client-analytics/model/searchEvent.d.ts +0 -11
  512. package/dist/client-analytics/model/searchEvent.d.ts.map +0 -1
  513. package/dist/client-analytics/model/searchNoClickEvent.d.ts +0 -15
  514. package/dist/client-analytics/model/searchNoClickEvent.d.ts.map +0 -1
  515. package/dist/client-analytics/model/searchNoResultEvent.d.ts +0 -15
  516. package/dist/client-analytics/model/searchNoResultEvent.d.ts.map +0 -1
  517. package/dist/client-analytics/model/userWithDate.d.ts +0 -11
  518. package/dist/client-analytics/model/userWithDate.d.ts.map +0 -1
  519. package/dist/client-search/model/mixedSearchFilters.d.ts +0 -2
  520. package/dist/client-search/model/mixedSearchFilters.d.ts.map +0 -1
  521. package/dist/lite/model/mixedSearchFilters.d.ts +0 -2
  522. package/dist/lite/model/mixedSearchFilters.d.ts.map +0 -1
@@ -1,11 +1,11 @@
1
1
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  /**
4
- * Unique identifier of the record to hide.
4
+ * Object ID of the record to hide.
5
5
  */
6
6
  export type ConsequenceHide = {
7
7
  /**
8
- * Unique object identifier.
8
+ * Unique record identifier.
9
9
  */
10
10
  objectID: string;
11
11
  };
@@ -3,6 +3,6 @@
3
3
  import type { ConsequenceQueryObject } from './consequenceQueryObject';
4
4
 
5
5
  /**
6
- * 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).
6
+ * 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.
7
7
  */
8
8
  export type ConsequenceQuery = ConsequenceQueryObject | string;
@@ -4,12 +4,12 @@ import type { Edit } from './edit';
4
4
 
5
5
  export type ConsequenceQueryObject = {
6
6
  /**
7
- * Words to remove.
7
+ * Words to remove from the search query.
8
8
  */
9
9
  remove?: string[];
10
10
 
11
11
  /**
12
- * Edits to apply.
12
+ * Changes to make to the search query.
13
13
  */
14
14
  edits?: Edit[];
15
15
  };
@@ -2,7 +2,7 @@
2
2
 
3
3
  export type Cursor = {
4
4
  /**
5
- * 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.
5
+ * 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.
6
6
  */
7
7
  cursor?: string;
8
8
  };
@@ -9,7 +9,7 @@ export type DeleteByParams = {
9
9
  facetFilters?: FacetFilters;
10
10
 
11
11
  /**
12
- * [Filter](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/) the query with numeric, facet, or tag filters.
12
+ * Filter expression to only include items that match the filter criteria in the response. You can use these filter expressions: - **Numeric filters.** `<facet> <op> <number>`, where `<op>` is one of `<`, `<=`, `=`, `!=`, `>`, `>=`. - **Ranges.** `<facet>:<lower> TO <upper>` where `<lower>` and `<upper>` are the lower and upper limits of the range (inclusive). - **Facet filters.** `<facet>:<value>` where `<facet>` is a facet attribute (case-sensitive) and `<value>` a facet value. - **Tag filters.** `_tags:<value>` or just `<value>` (case-sensitive). - **Boolean filters.** `<facet>: true | false`. You can combine filters with `AND`, `OR`, and `NOT` operators with the following restrictions: - You can only combine filters of the same type with `OR`. **Not supported:** `facet:value OR num > 3`. - You can\'t use `NOT` with combinations of filters. **Not supported:** `NOT(facet:value OR facet:value)` - You can\'t combine conjunctions (`AND`) with `OR`. **Not supported:** `facet:value OR (facet:value AND facet:value)` Use quotes around your filters, if the facet attribute name or facet value has spaces, keywords (`OR`, `AND`, `NOT`), or quotes. If a facet attribute is an array, the filter matches if it matches at least one element of the array. For more information, see [Filters](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/).
13
13
  */
14
14
  filters?: string;
15
15
 
@@ -18,19 +18,19 @@ export type DeleteByParams = {
18
18
  tagFilters?: TagFilters;
19
19
 
20
20
  /**
21
- * 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.
21
+ * 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`.
22
22
  */
23
23
  aroundLatLng?: string;
24
24
 
25
25
  aroundRadius?: AroundRadius;
26
26
 
27
27
  /**
28
- * 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).
28
+ * 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).
29
29
  */
30
30
  insideBoundingBox?: number[][];
31
31
 
32
32
  /**
33
- * Search inside a [polygon](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas) (in geographical coordinates).
33
+ * 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`.
34
34
  */
35
35
  insidePolygon?: number[][];
36
36
  };
@@ -1,33 +1,31 @@
1
1
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  import type { DictionaryEntryState } from './dictionaryEntryState';
4
+ import type { SupportedLanguage } from './supportedLanguage';
4
5
 
5
6
  /**
6
7
  * Dictionary entry.
7
8
  */
8
9
  export type DictionaryEntry = Record<string, any> & {
9
10
  /**
10
- * Unique identifier for a dictionary object.
11
+ * Unique identifier for the dictionary entry.
11
12
  */
12
13
  objectID: string;
13
14
 
14
- /**
15
- * [Supported language ISO code](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/).
16
- */
17
- language: string;
15
+ language: SupportedLanguage;
18
16
 
19
17
  /**
20
- * 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\".
18
+ * Matching dictionary word for `stopwords` and `compounds` dictionaries.
21
19
  */
22
20
  word?: string;
23
21
 
24
22
  /**
25
- * 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`.
23
+ * Matching words in the `plurals` dictionary including declensions.
26
24
  */
27
25
  words?: string[];
28
26
 
29
27
  /**
30
- * For compound entries, governs the behavior of the `word` parameter.
28
+ * Invividual components of a compound word in the `compounds` dictionary.
31
29
  */
32
30
  decomposition?: string[];
33
31
 
@@ -1,6 +1,6 @@
1
1
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  /**
4
- * Indicates whether a dictionary entry is active (`enabled`) or inactive (`disabled`).
4
+ * Whether a dictionary entry is active.
5
5
  */
6
6
  export type DictionaryEntryState = 'disabled' | 'enabled';
@@ -1,11 +1,11 @@
1
1
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  /**
4
- * Custom entries for a dictionary.
4
+ * Dictionary type. If `null`, this dictionary type isn\'t supported for the language.
5
5
  */
6
6
  export type DictionaryLanguage = {
7
7
  /**
8
- * 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.
8
+ * Number of custom dictionary entries.
9
9
  */
10
10
  nbCustomEntries?: number;
11
11
  };
@@ -1,6 +1,6 @@
1
1
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  /**
4
- * Enables [deduplication or grouping of results (Algolia\'s _distinct_ feature](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/#introducing-algolias-distinct-feature)).
4
+ * Determines how many records of a group are included in the search results. Records with the same value for the `attributeForDistinct` attribute are considered a group. The `distinct` setting controls how many members of the group are returned. This is useful for [deduplication and grouping](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/#introducing-algolias-distinct-feature). The `distinct` setting is ignored if `attributeForDistinct` is not set.
5
5
  */
6
6
  export type Distinct = boolean | number;
@@ -11,7 +11,7 @@ export type Edit = {
11
11
  delete?: string;
12
12
 
13
13
  /**
14
- * Text that should be inserted in place of the removed text inside the query string.
14
+ * Text to be added in place of the deleted text inside the query string.
15
15
  */
16
16
  insert?: string;
17
17
  };
@@ -1,6 +1,6 @@
1
1
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  /**
4
- * Determines how the [Exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes) is computed when the query contains only one word.
4
+ * Determines how the [Exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes) is computed when the search query has only one word. - `attribute`. The Exact ranking criterion is 1 if the query word and attribute value are the same. For example, a search for \"road\" will match the value \"road\", but not \"road trip\". - `none`. The Exact ranking criterion is ignored on single-word searches. - `word`. The Exact ranking criterion is 1 if the query word is found in the attribute value. The query word must have at least 3 characters and must not be a stop word. Only exact matches will be highlighted, partial and prefix matches won\'t.
5
5
  */
6
6
  export type ExactOnSingleWordQuery = 'attribute' | 'none' | 'word';
@@ -1,8 +1,6 @@
1
1
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
- import type { MixedSearchFilters } from './mixedSearchFilters';
4
-
5
3
  /**
6
- * [Filter hits by facet value](https://www.algolia.com/doc/api-reference/api-parameters/facetFilters/).
4
+ * Filter the search by facet values, so that only records with the same facet values are retrieved. **Prefer using the `filters` parameter, which supports all filter types and combinations with boolean operators.** - `[filter1, filter2]` is interpreted as `filter1 AND filter2`. - `[[filter1, filter2], filter3]` is interpreted as `filter1 OR filter2 AND filter3`. - `facet:-value` is interpreted as `NOT facet:value`. While it\'s best to avoid attributes that start with a `-`, you can still filter them by escaping with a backslash: `facet:\\-value`.
7
5
  */
8
- export type FacetFilters = MixedSearchFilters[] | string;
6
+ export type FacetFilters = FacetFilters[] | string;
@@ -7,12 +7,12 @@ export type FacetHits = {
7
7
  value: string;
8
8
 
9
9
  /**
10
- * Markup text with `facetQuery` matches highlighted.
10
+ * Highlighted attribute value, including HTML tags.
11
11
  */
12
12
  highlighted: string;
13
13
 
14
14
  /**
15
- * 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-).
15
+ * 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-).
16
16
  */
17
17
  count: number;
18
18
  };
@@ -4,13 +4,13 @@ import type { Facets } from './facets';
4
4
  import type { Value } from './value';
5
5
 
6
6
  /**
7
- * Defines the ordering of facets (widgets).
7
+ * Order of facet names and facet values in your UI.
8
8
  */
9
9
  export type FacetOrdering = {
10
10
  facets?: Facets;
11
11
 
12
12
  /**
13
- * Ordering of facet values within an individual facet.
13
+ * Order of facet values. One object for each facet.
14
14
  */
15
15
  values?: Record<string, Value>;
16
16
  };
@@ -1,11 +1,11 @@
1
1
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  /**
4
- * Ordering of facets (widgets).
4
+ * Order of facet names.
5
5
  */
6
6
  export type Facets = {
7
7
  /**
8
- * Pinned order of facet lists.
8
+ * Explicit order of facets or facet values. This setting lets you always show specific facets or facet values at the top of the list.
9
9
  */
10
10
  order?: string[];
11
11
  };
@@ -12,7 +12,7 @@ export type FetchedIndex = {
12
12
  createdAt: string;
13
13
 
14
14
  /**
15
- * Timestamp of the last update in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
15
+ * Date and time when the object was updated, in RFC 3339 format.
16
16
  */
17
17
  updatedAt: string;
18
18
 
@@ -4,4 +4,5 @@ import type { HighlightResultOption } from './highlightResultOption';
4
4
 
5
5
  export type HighlightResult =
6
6
  | HighlightResultOption
7
+ | HighlightResultOption[]
7
8
  | Record<string, HighlightResultOption>;
@@ -3,18 +3,18 @@
3
3
  import type { MatchLevel } from './matchLevel';
4
4
 
5
5
  /**
6
- * Show highlighted section and words matched on a query.
6
+ * Surround words that match the query with HTML tags for highlighting.
7
7
  */
8
8
  export type HighlightResultOption = {
9
9
  /**
10
- * Markup text with `facetQuery` matches highlighted.
10
+ * Highlighted attribute value, including HTML tags.
11
11
  */
12
12
  value: string;
13
13
 
14
14
  matchLevel: MatchLevel;
15
15
 
16
16
  /**
17
- * List of words from the query that matched the object.
17
+ * List of matched words from the search query.
18
18
  */
19
19
  matchedWords: string[];
20
20
 
package/lite/model/hit.ts CHANGED
@@ -5,21 +5,21 @@ import type { RankingInfo } from './rankingInfo';
5
5
  import type { SnippetResult } from './snippetResult';
6
6
 
7
7
  /**
8
- * A single hit.
8
+ * Search result. A hit is a record from your index, augmented with special attributes for highlighting, snippeting, and ranking.
9
9
  */
10
10
  export type Hit<T = Record<string, any>> = T & {
11
11
  /**
12
- * Unique object identifier.
12
+ * Unique record identifier.
13
13
  */
14
14
  objectID: string;
15
15
 
16
16
  /**
17
- * Show highlighted section and words matched on a query.
17
+ * Surround words that match the query with HTML tags for highlighting.
18
18
  */
19
19
  _highlightResult?: Record<string, HighlightResult>;
20
20
 
21
21
  /**
22
- * Snippeted attributes show parts of the matched attributes. Only returned when attributesToSnippet is non-empty.
22
+ * Snippets that show the context around a matching search query.
23
23
  */
24
24
  _snippetResult?: Record<string, SnippetResult>;
25
25
 
@@ -1,6 +1,8 @@
1
1
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
+ import type { SupportedLanguage } from './supportedLanguage';
4
+
3
5
  /**
4
- * Treats singular, plurals, and other forms of declensions as matching terms. `ignorePlurals` is used in conjunction with the `queryLanguages` setting. _list_: language ISO codes for which ignoring plurals should be enabled. This list will override any values that you may have set in `queryLanguages`. _true_: enables the ignore plurals feature, where singulars and plurals are considered equivalent (\"foot\" = \"feet\"). The languages supported here are either [every language](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/) (this is the default) or those set by `queryLanguages`. _false_: turns off the ignore plurals feature, so that singulars and plurals aren\'t considered to be the same (\"foot\" will not find \"feet\").
6
+ * Treat singular, plurals, and other forms of declensions as equivalent. You should only use this feature for the languages used in your index.
5
7
  */
6
- export type IgnorePlurals = string[] | boolean;
8
+ export type IgnorePlurals = SupportedLanguage[] | boolean;
@@ -7,6 +7,7 @@ export * from './advancedSyntaxFeatures';
7
7
  export * from './alternativesAsExact';
8
8
  export * from './anchoring';
9
9
  export * from './apiKey';
10
+ export * from './apiKeyOperation';
10
11
  export * from './aroundPrecision';
11
12
  export * from './aroundPrecisionFromValueInner';
12
13
  export * from './aroundRadius';
@@ -61,7 +62,6 @@ export * from './listIndicesResponse';
61
62
  export * from './logType';
62
63
  export * from './matchLevel';
63
64
  export * from './matchedGeoLocation';
64
- export * from './mixedSearchFilters';
65
65
  export * from './mode';
66
66
  export * from './numericFilters';
67
67
  export * from './operationType';
@@ -82,6 +82,7 @@ export * from './removeWordsIfNoResults';
82
82
  export * from './renderingContent';
83
83
  export * from './rule';
84
84
  export * from './scopeType';
85
+ export * from './searchDictionaryEntriesResponse';
85
86
  export * from './searchForFacetValuesResponse';
86
87
  export * from './searchForFacets';
87
88
  export * from './searchForFacetsOptions';
@@ -101,12 +102,14 @@ export * from './searchStrategy';
101
102
  export * from './searchSynonymsResponse';
102
103
  export * from './searchTypeDefault';
103
104
  export * from './searchTypeFacet';
105
+ export * from './securedAPIKeyRestrictions';
104
106
  export * from './semanticSearch';
105
107
  export * from './snippetResult';
106
108
  export * from './snippetResultOption';
107
109
  export * from './sortRemainingBy';
108
110
  export * from './source';
109
111
  export * from './standardEntries';
112
+ export * from './supportedLanguage';
110
113
  export * from './synonymHit';
111
114
  export * from './synonymType';
112
115
  export * from './tagFilters';
@@ -4,6 +4,6 @@ import type { BaseIndexSettings } from './baseIndexSettings';
4
4
  import type { IndexSettingsAsSearchParams } from './indexSettingsAsSearchParams';
5
5
 
6
6
  /**
7
- * Algolia index settings.
7
+ * Index settings.
8
8
  */
9
9
  export type IndexSettings = BaseIndexSettings & IndexSettingsAsSearchParams;
@@ -12,51 +12,47 @@ import type { RemoveStopWords } from './removeStopWords';
12
12
  import type { RemoveWordsIfNoResults } from './removeWordsIfNoResults';
13
13
  import type { RenderingContent } from './renderingContent';
14
14
  import type { SemanticSearch } from './semanticSearch';
15
+ import type { SupportedLanguage } from './supportedLanguage';
15
16
  import type { TypoTolerance } from './typoTolerance';
16
17
 
17
18
  export type IndexSettingsAsSearchParams = {
18
19
  /**
19
- * Attributes used for [faceting](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/) and the [modifiers](https://www.algolia.com/doc/api-reference/api-parameters/attributesForFaceting/#modifiers) that can be applied: `filterOnly`, `searchable`, and `afterDistinct`.
20
- */
21
- attributesForFaceting?: string[];
22
-
23
- /**
24
- * Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. By default, the response includes all attributes.
20
+ * Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. Attribute names are case-sensitive. - `*` retrieves all attributes, except attributes included in the `customRanking` and `unretrievableAttributes` settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the `*`: `[\"*\", \"-ATTRIBUTE\"]`. - The `objectID` attribute is always included.
25
21
  */
26
22
  attributesToRetrieve?: string[];
27
23
 
28
24
  /**
29
- * Determines the order in which Algolia [returns your results](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/).
25
+ * Determines the order in which Algolia returns your results. By default, each entry corresponds to a [ranking criteria](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/). The tie-breaking algorithm sequentially applies each criterion in the order they\'re specified. If you configure a replica index for [sorting by an attribute](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/how-to/sort-by-attribute/), you put the sorting attribute at the top of the list. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. Before you modify the default setting, you should test your changes in the dashboard, and by [A/B testing](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing/).
30
26
  */
31
27
  ranking?: string[];
32
28
 
33
29
  /**
34
- * Specifies the [Custom ranking criterion](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Use the `asc` and `desc` modifiers to specify the ranking order: ascending or descending.
30
+ * Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
35
31
  */
36
32
  customRanking?: string[];
37
33
 
38
34
  /**
39
- * Relevancy threshold below which less relevant results aren\'t included in the results.
35
+ * Relevancy threshold below which less relevant results aren\'t included in the results. You can only set `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas). Use this setting to strike a balance between the relevance and number of returned results.
40
36
  */
41
37
  relevancyStrictness?: number;
42
38
 
43
39
  /**
44
- * Attributes to highlight. Strings that match the search query in the attributes are highlighted by surrounding them with HTML tags (`highlightPreTag` and `highlightPostTag`).
40
+ * Attributes to highlight. By default, all searchable attributes are highlighted. Use `*` to highlight all attributes or use an empty array `[]` to turn off highlighting. Attribute names are case-sensitive. With highlighting, strings that match the search query are surrounded by HTML tags defined by `highlightPreTag` and `highlightPostTag`. You can use this to visually highlight matching parts of a search query in your UI. For more information, see [Highlighting and snippeting](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/highlighting-snippeting/js/).
45
41
  */
46
42
  attributesToHighlight?: string[];
47
43
 
48
44
  /**
49
- * Attributes to _snippet_. \'Snippeting\' is shortening the attribute to a certain number of words. If not specified, the attribute is shortened to the 10 words around the matching string but you can specify the number. For example: `body:20`.
45
+ * Attributes for which to enable snippets. Attribute names are case-sensitive. Snippets provide additional context to matched words. If you enable snippets, they include 10 words, including the matched word. The matched word will also be wrapped by HTML tags for highlighting. You can adjust the number of words with the following notation: `ATTRIBUTE:NUMBER`, where `NUMBER` is the number of words to be extracted.
50
46
  */
51
47
  attributesToSnippet?: string[];
52
48
 
53
49
  /**
54
- * HTML string to insert before the highlighted parts in all highlight and snippet results.
50
+ * HTML tag to insert before the highlighted parts in all highlighted results and snippets.
55
51
  */
56
52
  highlightPreTag?: string;
57
53
 
58
54
  /**
59
- * HTML string to insert after the highlighted parts in all highlight and snippet results.
55
+ * HTML tag to insert after the highlighted parts in all highlighted results and snippets.
60
56
  */
61
57
  highlightPostTag?: string;
62
58
 
@@ -66,7 +62,7 @@ export type IndexSettingsAsSearchParams = {
66
62
  snippetEllipsisText?: string;
67
63
 
68
64
  /**
69
- * Restrict highlighting and snippeting to items that matched the query.
65
+ * Whether to restrict highlighting and snippeting to items that at least partially matched the search query. By default, all items are highlighted and snippeted.
70
66
  */
71
67
  restrictHighlightAndSnippetArrays?: boolean;
72
68
 
@@ -76,24 +72,24 @@ export type IndexSettingsAsSearchParams = {
76
72
  hitsPerPage?: number;
77
73
 
78
74
  /**
79
- * Minimum number of characters a word in the query string must contain to accept matches with [one typo](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/in-depth/configuring-typo-tolerance/#configuring-word-length-for-typos).
75
+ * Minimum number of characters a word in the search query must contain to accept matches with [one typo](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/in-depth/configuring-typo-tolerance/#configuring-word-length-for-typos).
80
76
  */
81
77
  minWordSizefor1Typo?: number;
82
78
 
83
79
  /**
84
- * Minimum number of characters a word in the query string must contain to accept matches with [two typos](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/in-depth/configuring-typo-tolerance/#configuring-word-length-for-typos).
80
+ * Minimum number of characters a word in the search query must contain to accept matches with [two typos](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/in-depth/configuring-typo-tolerance/#configuring-word-length-for-typos).
85
81
  */
86
82
  minWordSizefor2Typos?: number;
87
83
 
88
84
  typoTolerance?: TypoTolerance;
89
85
 
90
86
  /**
91
- * Whether to allow typos on numbers (\"numeric tokens\") in the query string.
87
+ * Whether to allow typos on numbers in the search query. Turn off this setting to reduce the number of irrelevant matches when searching in large sets of similar numbers.
92
88
  */
93
89
  allowTyposOnNumericTokens?: boolean;
94
90
 
95
91
  /**
96
- * Attributes for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/).
92
+ * Attributes for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/). Attribute names are case-sensitive. Returning only exact matches can help when: - [Searching in hyphenated attributes](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/how-to/how-to-search-in-hyphenated-attributes/). - Reducing the number of matches when you have too many. This can happen with attributes that are long blocks of text, such as product descriptions. Consider alternatives such as `disableTypoToleranceOnWords` or adding synonyms if your attributes have intentional unusual spellings that might look like typos.
97
93
  */
98
94
  disableTypoToleranceOnAttributes?: string[];
99
95
 
@@ -102,27 +98,27 @@ export type IndexSettingsAsSearchParams = {
102
98
  removeStopWords?: RemoveStopWords;
103
99
 
104
100
  /**
105
- * Characters that the engine shouldn\'t automatically [normalize](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/).
101
+ * Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
106
102
  */
107
103
  keepDiacriticsOnCharacters?: string;
108
104
 
109
105
  /**
110
- * Sets your user\'s search language. This adjusts language-specific settings and features such as `ignorePlurals`, `removeStopWords`, and [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) word detection.
106
+ * Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` settings. This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) languages. To support this, you must place the CJK language **first**. **You should always specify a query language.** If you don\'t specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/), or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/).
111
107
  */
112
- queryLanguages?: string[];
108
+ queryLanguages?: SupportedLanguage[];
113
109
 
114
110
  /**
115
- * [Splits compound words](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/#splitting-compound-words) into their component word parts in the query.
111
+ * Whether to split compound words into their building blocks. For more information, see [Word segmentation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/#splitting-compound-words). Word segmentation is supported for these languages: German, Dutch, Finnish, Swedish, and Norwegian.
116
112
  */
117
113
  decompoundQuery?: boolean;
118
114
 
119
115
  /**
120
- * Incidates whether [Rules](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/) are enabled.
116
+ * Whether to enable rules.
121
117
  */
122
118
  enableRules?: boolean;
123
119
 
124
120
  /**
125
- * Incidates whether [Personalization](https://www.algolia.com/doc/guides/personalization/what-is-personalization/) is enabled.
121
+ * Whether to enable Personalization.
126
122
  */
127
123
  enablePersonalization?: boolean;
128
124
 
@@ -135,51 +131,51 @@ export type IndexSettingsAsSearchParams = {
135
131
  semanticSearch?: SemanticSearch;
136
132
 
137
133
  /**
138
- * Enables the [advanced query syntax](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/#advanced-syntax).
134
+ * Whether to support phrase matching and excluding words from search queries. Use the `advancedSyntaxFeatures` parameter to control which feature is supported.
139
135
  */
140
136
  advancedSyntax?: boolean;
141
137
 
142
138
  /**
143
- * Words which should be considered [optional](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/#creating-a-list-of-optional-words) when found in a query.
139
+ * Words that should be considered optional when found in the query. By default, records must match all words in the search query to be included in the search results. Adding optional words can help to increase the number of search results by running an additional search query that doesn\'t include the optional words. For example, if the search query is \"action video\" and \"video\" is an optional word, the search engine runs two queries. One for \"action video\" and one for \"action\". Records that match all words are ranked higher. For a search query with 4 or more words **and** all its words are optional, the number of matched words required for a record to be included in the search results increases for every 1,000 records: - If `optionalWords` has less than 10 words, the required number of matched words increases by 1: results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 2 matched words. - If `optionalWords` has 10 or more words, the number of required matched words increases by the number of optional words dividied by 5 (rounded down). For example, with 18 optional words: results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 4 matched words. For more information, see [Optional words](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/#creating-a-list-of-optional-words).
144
140
  */
145
141
  optionalWords?: string[];
146
142
 
147
143
  /**
148
- * 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).
144
+ * Searchable attributes for which you want to [turn off the Exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes). Attribute names are case-sensitive. This can be useful for attributes with long values, where the likelyhood of an exact match is high, such as product descriptions. Turning off the Exact ranking criterion for these attributes favors exact matching on other attributes. This reduces the impact of individual attributes with a lot of content on ranking.
149
145
  */
150
146
  disableExactOnAttributes?: string[];
151
147
 
152
148
  exactOnSingleWordQuery?: ExactOnSingleWordQuery;
153
149
 
154
150
  /**
155
- * Alternatives that should be considered an exact match by [the exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes).
151
+ * Alternatives of query words that should be considered as exact matches by the Exact ranking criterion. - `ignorePlurals`. Plurals and similar declensions added by the `ignorePlurals` setting are considered exact matches. - `singleWordSynonym`. Single-word synonyms, such as \"NY/NYC\" are considered exact matches. - `multiWordsSynonym`. Multi-word synonyms, such as \"NY/New York\" are considered exact matches.
156
152
  */
157
153
  alternativesAsExact?: AlternativesAsExact[];
158
154
 
159
155
  /**
160
- * Allows you to specify which advanced syntax features are active when `advancedSyntax` is enabled.
156
+ * Advanced search syntax features you want to support. - `exactPhrase`. Phrases in quotes must match exactly. For example, `sparkly blue \"iPhone case\"` only returns records with the exact string \"iPhone case\". - `excludeWords`. Query words prefixed with a `-` must not occur in a record. For example, `search -engine` matches records that contain \"search\" but not \"engine\". This setting only has an effect if `advancedSyntax` is true.
161
157
  */
162
158
  advancedSyntaxFeatures?: AdvancedSyntaxFeatures[];
163
159
 
164
160
  distinct?: Distinct;
165
161
 
166
162
  /**
167
- * Whether to highlight and snippet the original word that matches the synonym or the synonym itself.
163
+ * Whether to replace a highlighted word with the matched synonym. By default, the original words are highlighted even if a synonym matches. For example, with `home` as a synonym for `house` and a search for `home`, records matching either \"home\" or \"house\" are included in the search results, and either \"home\" or \"house\" are highlighted. With `replaceSynonymsInHighlight` set to `true`, a search for `home` still matches the same records, but all occurences of \"house\" are replaced by \"home\" in the highlighted response.
168
164
  */
169
165
  replaceSynonymsInHighlight?: boolean;
170
166
 
171
167
  /**
172
- * Precision of the [proximity ranking criterion](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#proximity).
168
+ * Minimum proximity score for two matching words. This adjusts the [Proximity ranking criterion](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#proximity) by equally scoring matches that are farther apart. For example, if `minProximity` is 2, neighboring matches and matches with one word between them would have the same score.
173
169
  */
174
170
  minProximity?: number;
175
171
 
176
172
  /**
177
- * Attributes to include in the API response for search and browse queries.
173
+ * Properties to include in the API response of `search` and `browse` requests. By default, all response properties are included. To reduce the response size, you can select, which attributes should be included. You can\'t exclude these properties: `message`, `warning`, `cursor`, `serverUsed`, `indexUsed`, `abTestVariantID`, `parsedQuery`, or any property triggered by the `getRankingInfo` parameter. Don\'t exclude properties that you might need in your search UI.
178
174
  */
179
175
  responseFields?: string[];
180
176
 
181
177
  /**
182
- * Maximum number of facet hits to return when [searching for facet values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values).
178
+ * Maximum number of facet values to return when [searching for facet values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values).
183
179
  */
184
180
  maxFacetHits?: number;
185
181
 
@@ -189,19 +185,19 @@ export type IndexSettingsAsSearchParams = {
189
185
  maxValuesPerFacet?: number;
190
186
 
191
187
  /**
192
- * Controls how facet values are fetched.
188
+ * Order in which to retrieve facet values. - `count`. Facet values are retrieved by decreasing count. The count is the number of matching records containing this facet value. - `alpha`. Retrieve facet values alphabetically. This setting doesn\'t influence how facet values are displayed in your UI (see `renderingContent`). For more information, see [facet value display](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/facet-display/js/).
193
189
  */
194
190
  sortFacetValuesBy?: string;
195
191
 
196
192
  /**
197
- * When the [Attribute criterion is ranked above Proximity](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#attribute-and-proximity-combinations) in your ranking formula, Proximity is used to select which searchable attribute is matched in the Attribute ranking stage.
193
+ * Whether the best matching attribute should be determined by minimum proximity. This setting only affects ranking if the Attribute ranking criterion comes before Proximity in the `ranking` setting. If true, the best matching attribute is selected based on the minimum proximity of multiple matches. Otherwise, the best matching attribute is determined by the order in the `searchableAttributes` setting.
198
194
  */
199
195
  attributeCriteriaComputedByMinProximity?: boolean;
200
196
 
201
197
  renderingContent?: RenderingContent;
202
198
 
203
199
  /**
204
- * Indicates whether this search will use [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/).
200
+ * Whether this search will use [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/). This setting only has an effect if you activated Dynamic Re-Ranking for this index in the Algolia dashboard.
205
201
  */
206
202
  enableReRanking?: boolean;
207
203