algoliasearch 5.0.0-alpha.105 → 5.0.0-alpha.107

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 (297) 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 +20 -16
  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 +5 -5
  50. package/dist/client-search/model/dictionaryEntryState.d.ts +1 -1
  51. package/dist/client-search/model/dictionaryLanguage.d.ts +2 -2
  52. package/dist/client-search/model/dictionarySettingsParams.d.ts +1 -1
  53. package/dist/client-search/model/distinct.d.ts +1 -1
  54. package/dist/client-search/model/edit.d.ts +1 -1
  55. package/dist/client-search/model/exactOnSingleWordQuery.d.ts +1 -1
  56. package/dist/client-search/model/facetFilters.d.ts +1 -1
  57. package/dist/client-search/model/facetHits.d.ts +2 -2
  58. package/dist/client-search/model/facetOrdering.d.ts +2 -2
  59. package/dist/client-search/model/facets.d.ts +2 -2
  60. package/dist/client-search/model/getObjectsRequest.d.ts +3 -3
  61. package/dist/client-search/model/getObjectsResponse.d.ts +1 -1
  62. package/dist/client-search/model/hasPendingMappingsResponse.d.ts +1 -1
  63. package/dist/client-search/model/highlightResultOption.d.ts +3 -3
  64. package/dist/client-search/model/hit.d.ts +4 -4
  65. package/dist/client-search/model/ignorePlurals.d.ts +1 -1
  66. package/dist/client-search/model/index.d.ts +1 -0
  67. package/dist/client-search/model/index.d.ts.map +1 -1
  68. package/dist/client-search/model/indexSettings.d.ts +1 -1
  69. package/dist/client-search/model/indexSettingsAsSearchParams.d.ts +30 -34
  70. package/dist/client-search/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  71. package/dist/client-search/model/log.d.ts +11 -11
  72. package/dist/client-search/model/logQuery.d.ts +1 -1
  73. package/dist/client-search/model/matchLevel.d.ts +1 -1
  74. package/dist/client-search/model/mode.d.ts +1 -1
  75. package/dist/client-search/model/multipleBatchResponse.d.ts +2 -2
  76. package/dist/client-search/model/numericFilters.d.ts +1 -1
  77. package/dist/client-search/model/operationIndexParams.d.ts +2 -2
  78. package/dist/client-search/model/operationType.d.ts +1 -1
  79. package/dist/client-search/model/optionalFilters.d.ts +1 -1
  80. package/dist/client-search/model/params.d.ts +1 -1
  81. package/dist/client-search/model/promoteObjectID.d.ts +2 -2
  82. package/dist/client-search/model/promoteObjectIDs.d.ts +2 -2
  83. package/dist/client-search/model/queryType.d.ts +1 -1
  84. package/dist/client-search/model/rankingInfo.d.ts +10 -7
  85. package/dist/client-search/model/rankingInfo.d.ts.map +1 -1
  86. package/dist/client-search/model/reRankingApplyFilter.d.ts +1 -1
  87. package/dist/client-search/model/removeStopWords.d.ts +1 -1
  88. package/dist/client-search/model/removeWordsIfNoResults.d.ts +1 -1
  89. package/dist/client-search/model/renderingContent.d.ts +1 -1
  90. package/dist/client-search/model/rule.d.ts +5 -5
  91. package/dist/client-search/model/saveObjectResponse.d.ts +3 -3
  92. package/dist/client-search/model/saveSynonymResponse.d.ts +1 -1
  93. package/dist/client-search/model/searchDictionaryEntriesParams.d.ts +4 -4
  94. package/dist/client-search/model/searchDictionaryEntriesResponse.d.ts +20 -0
  95. package/dist/client-search/model/searchDictionaryEntriesResponse.d.ts.map +1 -0
  96. package/dist/client-search/model/searchForFacetValuesRequest.d.ts +1 -1
  97. package/dist/client-search/model/searchForFacetValuesResponse.d.ts +3 -0
  98. package/dist/client-search/model/searchForFacetValuesResponse.d.ts.map +1 -1
  99. package/dist/client-search/model/searchForFacetsOptions.d.ts +2 -2
  100. package/dist/client-search/model/searchForHitsOptions.d.ts +1 -1
  101. package/dist/client-search/model/searchHits.d.ts +6 -3
  102. package/dist/client-search/model/searchHits.d.ts.map +1 -1
  103. package/dist/client-search/model/searchParamsQuery.d.ts +1 -1
  104. package/dist/client-search/model/searchRulesParams.d.ts +4 -8
  105. package/dist/client-search/model/searchRulesParams.d.ts.map +1 -1
  106. package/dist/client-search/model/searchRulesResponse.d.ts +2 -2
  107. package/dist/client-search/model/searchStrategy.d.ts +1 -1
  108. package/dist/client-search/model/searchSynonymsParams.d.ts +2 -2
  109. package/dist/client-search/model/searchSynonymsResponse.d.ts +2 -2
  110. package/dist/client-search/model/searchUserIdsParams.d.ts +1 -1
  111. package/dist/client-search/model/searchUserIdsResponse.d.ts +2 -2
  112. package/dist/client-search/model/securedAPIKeyRestrictions.d.ts +5 -5
  113. package/dist/client-search/model/semanticSearch.d.ts +2 -2
  114. package/dist/client-search/model/snippetResultOption.d.ts +2 -2
  115. package/dist/client-search/model/sortRemainingBy.d.ts +1 -1
  116. package/dist/client-search/model/tagFilters.d.ts +1 -1
  117. package/dist/client-search/model/taskStatus.d.ts +1 -1
  118. package/dist/client-search/model/timeRange.d.ts +2 -2
  119. package/dist/client-search/model/typoTolerance.d.ts +1 -1
  120. package/dist/client-search/model/typoToleranceEnum.d.ts +3 -0
  121. package/dist/client-search/model/typoToleranceEnum.d.ts.map +1 -1
  122. package/dist/client-search/model/updatedAtResponse.d.ts +1 -1
  123. package/dist/client-search/model/updatedAtWithObjectIdResponse.d.ts +2 -2
  124. package/dist/client-search/model/updatedRuleResponse.d.ts +2 -2
  125. package/dist/client-search/model/userHit.d.ts +1 -1
  126. package/dist/client-search/model/userId.d.ts +1 -1
  127. package/dist/client-search/model/value.d.ts +1 -1
  128. package/dist/client-search/src/searchClient.d.ts +124 -123
  129. package/dist/client-search/src/searchClient.d.ts.map +1 -1
  130. package/dist/lite/lite.cjs +3 -3
  131. package/dist/lite/lite.esm.browser.js +3 -3
  132. package/dist/lite/lite.esm.node.js +3 -3
  133. package/dist/lite/lite.umd.js +2 -2
  134. package/dist/lite/model/acl.d.ts +1 -1
  135. package/dist/lite/model/action.d.ts +1 -1
  136. package/dist/lite/model/addApiKeyResponse.d.ts +1 -1
  137. package/dist/lite/model/anchoring.d.ts +1 -1
  138. package/dist/lite/model/apiKey.d.ts +8 -8
  139. package/dist/lite/model/aroundPrecision.d.ts +1 -1
  140. package/dist/lite/model/aroundPrecisionFromValueInner.d.ts +9 -0
  141. package/dist/lite/model/aroundPrecisionFromValueInner.d.ts.map +1 -1
  142. package/dist/lite/model/aroundRadius.d.ts +1 -1
  143. package/dist/lite/model/aroundRadiusAll.d.ts +3 -0
  144. package/dist/lite/model/aroundRadiusAll.d.ts.map +1 -1
  145. package/dist/lite/model/automaticFacetFilter.d.ts +4 -4
  146. package/dist/lite/model/automaticFacetFilters.d.ts +1 -1
  147. package/dist/lite/model/baseIndexSettings.d.ts +20 -16
  148. package/dist/lite/model/baseIndexSettings.d.ts.map +1 -1
  149. package/dist/lite/model/baseSearchParamsWithoutQuery.d.ts +24 -28
  150. package/dist/lite/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  151. package/dist/lite/model/baseSearchResponse.d.ts +6 -6
  152. package/dist/lite/model/builtInOperation.d.ts +2 -2
  153. package/dist/lite/model/builtInOperationType.d.ts +1 -1
  154. package/dist/lite/model/condition.d.ts +7 -3
  155. package/dist/lite/model/condition.d.ts.map +1 -1
  156. package/dist/lite/model/consequence.d.ts +5 -5
  157. package/dist/lite/model/consequenceHide.d.ts +2 -2
  158. package/dist/lite/model/consequenceQuery.d.ts +1 -1
  159. package/dist/lite/model/consequenceQueryObject.d.ts +2 -2
  160. package/dist/lite/model/cursor.d.ts +1 -1
  161. package/dist/lite/model/deleteByParams.d.ts +4 -4
  162. package/dist/lite/model/dictionaryEntry.d.ts +5 -5
  163. package/dist/lite/model/dictionaryEntryState.d.ts +1 -1
  164. package/dist/lite/model/dictionaryLanguage.d.ts +2 -2
  165. package/dist/lite/model/distinct.d.ts +1 -1
  166. package/dist/lite/model/edit.d.ts +1 -1
  167. package/dist/lite/model/exactOnSingleWordQuery.d.ts +1 -1
  168. package/dist/lite/model/facetFilters.d.ts +1 -1
  169. package/dist/lite/model/facetHits.d.ts +2 -2
  170. package/dist/lite/model/facetOrdering.d.ts +2 -2
  171. package/dist/lite/model/facets.d.ts +2 -2
  172. package/dist/lite/model/highlightResultOption.d.ts +3 -3
  173. package/dist/lite/model/hit.d.ts +4 -4
  174. package/dist/lite/model/ignorePlurals.d.ts +1 -1
  175. package/dist/lite/model/index.d.ts +1 -0
  176. package/dist/lite/model/index.d.ts.map +1 -1
  177. package/dist/lite/model/indexSettings.d.ts +1 -1
  178. package/dist/lite/model/indexSettingsAsSearchParams.d.ts +30 -34
  179. package/dist/lite/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  180. package/dist/lite/model/matchLevel.d.ts +1 -1
  181. package/dist/lite/model/mode.d.ts +1 -1
  182. package/dist/lite/model/numericFilters.d.ts +1 -1
  183. package/dist/lite/model/operationType.d.ts +1 -1
  184. package/dist/lite/model/optionalFilters.d.ts +1 -1
  185. package/dist/lite/model/params.d.ts +1 -1
  186. package/dist/lite/model/promoteObjectID.d.ts +2 -2
  187. package/dist/lite/model/promoteObjectIDs.d.ts +2 -2
  188. package/dist/lite/model/queryType.d.ts +1 -1
  189. package/dist/lite/model/rankingInfo.d.ts +10 -7
  190. package/dist/lite/model/rankingInfo.d.ts.map +1 -1
  191. package/dist/lite/model/reRankingApplyFilter.d.ts +1 -1
  192. package/dist/lite/model/removeStopWords.d.ts +1 -1
  193. package/dist/lite/model/removeWordsIfNoResults.d.ts +1 -1
  194. package/dist/lite/model/renderingContent.d.ts +1 -1
  195. package/dist/lite/model/rule.d.ts +5 -5
  196. package/dist/lite/model/searchDictionaryEntriesResponse.d.ts +20 -0
  197. package/dist/lite/model/searchDictionaryEntriesResponse.d.ts.map +1 -0
  198. package/dist/lite/model/searchForFacetValuesResponse.d.ts +3 -0
  199. package/dist/lite/model/searchForFacetValuesResponse.d.ts.map +1 -1
  200. package/dist/lite/model/searchForFacetsOptions.d.ts +2 -2
  201. package/dist/lite/model/searchForHitsOptions.d.ts +1 -1
  202. package/dist/lite/model/searchHits.d.ts +6 -3
  203. package/dist/lite/model/searchHits.d.ts.map +1 -1
  204. package/dist/lite/model/searchParamsQuery.d.ts +1 -1
  205. package/dist/lite/model/searchStrategy.d.ts +1 -1
  206. package/dist/lite/model/searchSynonymsResponse.d.ts +2 -2
  207. package/dist/lite/model/securedAPIKeyRestrictions.d.ts +5 -5
  208. package/dist/lite/model/semanticSearch.d.ts +2 -2
  209. package/dist/lite/model/snippetResultOption.d.ts +2 -2
  210. package/dist/lite/model/sortRemainingBy.d.ts +1 -1
  211. package/dist/lite/model/tagFilters.d.ts +1 -1
  212. package/dist/lite/model/taskStatus.d.ts +1 -1
  213. package/dist/lite/model/timeRange.d.ts +2 -2
  214. package/dist/lite/model/typoTolerance.d.ts +1 -1
  215. package/dist/lite/model/typoToleranceEnum.d.ts +3 -0
  216. package/dist/lite/model/typoToleranceEnum.d.ts.map +1 -1
  217. package/dist/lite/model/updatedRuleResponse.d.ts +2 -2
  218. package/dist/lite/model/userId.d.ts +1 -1
  219. package/dist/lite/model/value.d.ts +1 -1
  220. package/dist/lite/src/liteClient.d.ts +3 -3
  221. package/dist/lite/src/liteClient.d.ts.map +1 -1
  222. package/lite/model/acl.ts +1 -1
  223. package/lite/model/action.ts +1 -1
  224. package/lite/model/addApiKeyResponse.ts +1 -1
  225. package/lite/model/anchoring.ts +1 -1
  226. package/lite/model/apiKey.ts +8 -8
  227. package/lite/model/aroundPrecision.ts +1 -1
  228. package/lite/model/aroundPrecisionFromValueInner.ts +9 -0
  229. package/lite/model/aroundRadius.ts +1 -1
  230. package/lite/model/aroundRadiusAll.ts +3 -0
  231. package/lite/model/automaticFacetFilter.ts +4 -4
  232. package/lite/model/automaticFacetFilters.ts +1 -1
  233. package/lite/model/baseIndexSettings.ts +21 -16
  234. package/lite/model/baseSearchParamsWithoutQuery.ts +24 -29
  235. package/lite/model/baseSearchResponse.ts +6 -6
  236. package/lite/model/builtInOperation.ts +2 -2
  237. package/lite/model/builtInOperationType.ts +1 -1
  238. package/lite/model/condition.ts +8 -3
  239. package/lite/model/consequence.ts +5 -5
  240. package/lite/model/consequenceHide.ts +2 -2
  241. package/lite/model/consequenceQuery.ts +1 -1
  242. package/lite/model/consequenceQueryObject.ts +2 -2
  243. package/lite/model/cursor.ts +1 -1
  244. package/lite/model/deleteByParams.ts +4 -4
  245. package/lite/model/dictionaryEntry.ts +5 -5
  246. package/lite/model/dictionaryEntryState.ts +1 -1
  247. package/lite/model/dictionaryLanguage.ts +2 -2
  248. package/lite/model/distinct.ts +1 -1
  249. package/lite/model/edit.ts +1 -1
  250. package/lite/model/exactOnSingleWordQuery.ts +1 -1
  251. package/lite/model/facetFilters.ts +1 -1
  252. package/lite/model/facetHits.ts +2 -2
  253. package/lite/model/facetOrdering.ts +2 -2
  254. package/lite/model/facets.ts +2 -2
  255. package/lite/model/highlightResultOption.ts +3 -3
  256. package/lite/model/hit.ts +4 -4
  257. package/lite/model/ignorePlurals.ts +1 -1
  258. package/lite/model/index.ts +1 -0
  259. package/lite/model/indexSettings.ts +1 -1
  260. package/lite/model/indexSettingsAsSearchParams.ts +30 -35
  261. package/lite/model/matchLevel.ts +1 -1
  262. package/lite/model/mode.ts +1 -1
  263. package/lite/model/numericFilters.ts +1 -1
  264. package/lite/model/operationType.ts +1 -1
  265. package/lite/model/optionalFilters.ts +1 -1
  266. package/lite/model/params.ts +1 -1
  267. package/lite/model/promoteObjectID.ts +2 -2
  268. package/lite/model/promoteObjectIDs.ts +2 -2
  269. package/lite/model/queryType.ts +1 -1
  270. package/lite/model/rankingInfo.ts +10 -7
  271. package/lite/model/reRankingApplyFilter.ts +1 -1
  272. package/lite/model/removeStopWords.ts +1 -1
  273. package/lite/model/removeWordsIfNoResults.ts +1 -1
  274. package/lite/model/renderingContent.ts +1 -1
  275. package/lite/model/rule.ts +5 -5
  276. package/lite/model/searchDictionaryEntriesResponse.ts +25 -0
  277. package/lite/model/searchForFacetValuesResponse.ts +3 -0
  278. package/lite/model/searchForFacetsOptions.ts +2 -2
  279. package/lite/model/searchForHitsOptions.ts +1 -1
  280. package/lite/model/searchHits.ts +6 -3
  281. package/lite/model/searchParamsQuery.ts +1 -1
  282. package/lite/model/searchStrategy.ts +1 -1
  283. package/lite/model/searchSynonymsResponse.ts +2 -2
  284. package/lite/model/securedAPIKeyRestrictions.ts +5 -5
  285. package/lite/model/semanticSearch.ts +2 -2
  286. package/lite/model/snippetResultOption.ts +2 -2
  287. package/lite/model/sortRemainingBy.ts +1 -1
  288. package/lite/model/tagFilters.ts +1 -1
  289. package/lite/model/taskStatus.ts +1 -1
  290. package/lite/model/timeRange.ts +2 -2
  291. package/lite/model/typoTolerance.ts +1 -1
  292. package/lite/model/typoToleranceEnum.ts +3 -0
  293. package/lite/model/updatedRuleResponse.ts +2 -2
  294. package/lite/model/userId.ts +1 -1
  295. package/lite/model/value.ts +1 -1
  296. package/lite/src/liteClient.ts +3 -3
  297. package/package.json +11 -11
@@ -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;
@@ -16,47 +16,42 @@ import type { TypoTolerance } from './typoTolerance';
16
16
 
17
17
  export type IndexSettingsAsSearchParams = {
18
18
  /**
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.
19
+ * Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. - `*` retrieves all attributes, except attributes included in the `customRanking` and `unretrievableAttributes` settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the `*`: `[\"*\", \"-ATTRIBUTE\"]`. - The `objectID` attribute is always included.
25
20
  */
26
21
  attributesToRetrieve?: string[];
27
22
 
28
23
  /**
29
- * Determines the order in which Algolia [returns your results](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/).
24
+ * Determines the order in which Algolia returns your results. By default, each entry corresponds to a [ranking criteria](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/). The tie-breaking algorithm sequentially applies each criterion in the order they\'re specified. If you configure a replica index for [sorting by an attribute](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/how-to/sort-by-attribute/), you put the sorting attribute at the top of the list. **Modifiers** <dl> <dt><code>asc(\"ATTRIBUTE\")</code></dt> <dd>Sort the index by the values of an attribute, in ascending order.</dd> <dt><code>desc(\"ATTRIBUTE\")</code></dt> <dd>Sort the index by the values of an attribute, in descending order.</dd> </dl> Before you modify the default setting, you should test your changes in the dashboard, and by [A/B testing](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing/).
30
25
  */
31
26
  ranking?: string[];
32
27
 
33
28
  /**
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.
29
+ * Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** <dl> <dt><code>asc(\"ATTRIBUTE\")</code></dt> <dd>Sort the index by the values of an attribute, in ascending order.</dd> <dt><code>desc(\"ATTRIBUTE\")</code></dt> <dd>Sort the index by the values of an attribute, in descending order.</dd> </dl> If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
35
30
  */
36
31
  customRanking?: string[];
37
32
 
38
33
  /**
39
- * Relevancy threshold below which less relevant results aren\'t included in the results.
34
+ * 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
35
  */
41
36
  relevancyStrictness?: number;
42
37
 
43
38
  /**
44
- * Attributes to highlight. Strings that match the search query in the attributes are highlighted by surrounding them with HTML tags (`highlightPreTag` and `highlightPostTag`).
39
+ * Attributes to highlight. By default, all searchable attributes are highlighted. Use `*` to highlight all attributes or use an empty array `[]` to turn off highlighting. With highlighting, strings that match the search query are surrounded by HTML tags defined by `highlightPreTag` and `highlightPostTag`. You can use this to visually highlight matching parts of a search query in your UI. For more information, see [Highlighting and snippeting](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/highlighting-snippeting/js/).
45
40
  */
46
41
  attributesToHighlight?: string[];
47
42
 
48
43
  /**
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`.
44
+ * Attributes for which to enable snippets. Snippets provide additional context to matched words. If you enable snippets, they include 10 words, including the matched word. The matched word will also be wrapped by HTML tags for highlighting. You can adjust the number of words with the following notation: `ATTRIBUTE:NUMBER`, where `NUMBER` is the number of words to be extracted.
50
45
  */
51
46
  attributesToSnippet?: string[];
52
47
 
53
48
  /**
54
- * HTML string to insert before the highlighted parts in all highlight and snippet results.
49
+ * HTML tag to insert before the highlighted parts in all highlighted results and snippets.
55
50
  */
56
51
  highlightPreTag?: string;
57
52
 
58
53
  /**
59
- * HTML string to insert after the highlighted parts in all highlight and snippet results.
54
+ * HTML tag to insert after the highlighted parts in all highlighted results and snippets.
60
55
  */
61
56
  highlightPostTag?: string;
62
57
 
@@ -66,7 +61,7 @@ export type IndexSettingsAsSearchParams = {
66
61
  snippetEllipsisText?: string;
67
62
 
68
63
  /**
69
- * Restrict highlighting and snippeting to items that matched the query.
64
+ * 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
65
  */
71
66
  restrictHighlightAndSnippetArrays?: boolean;
72
67
 
@@ -76,24 +71,24 @@ export type IndexSettingsAsSearchParams = {
76
71
  hitsPerPage?: number;
77
72
 
78
73
  /**
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).
74
+ * 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
75
  */
81
76
  minWordSizefor1Typo?: number;
82
77
 
83
78
  /**
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).
79
+ * 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
80
  */
86
81
  minWordSizefor2Typos?: number;
87
82
 
88
83
  typoTolerance?: TypoTolerance;
89
84
 
90
85
  /**
91
- * Whether to allow typos on numbers (\"numeric tokens\") in the query string.
86
+ * 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
87
  */
93
88
  allowTyposOnNumericTokens?: boolean;
94
89
 
95
90
  /**
96
- * Attributes for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/).
91
+ * Attributes for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/). Returning only exact matches can help when: - [Searching in hyphenated attributes](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/how-to/how-to-search-in-hyphenated-attributes/). - Reducing the number of matches when you have too many. This can happen with attributes that are long blocks of text, such as product descriptions. Consider alternatives such as `disableTypoToleranceOnWords` or adding synonyms if your attributes have intentional unusual spellings that might look like typos.
97
92
  */
98
93
  disableTypoToleranceOnAttributes?: string[];
99
94
 
@@ -102,27 +97,27 @@ export type IndexSettingsAsSearchParams = {
102
97
  removeStopWords?: RemoveStopWords;
103
98
 
104
99
  /**
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/).
100
+ * 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
101
  */
107
102
  keepDiacriticsOnCharacters?: string;
108
103
 
109
104
  /**
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.
105
+ * [ISO code](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) for language-specific settings such as plurals, stop words, 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
106
  */
112
107
  queryLanguages?: string[];
113
108
 
114
109
  /**
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.
110
+ * 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
111
  */
117
112
  decompoundQuery?: boolean;
118
113
 
119
114
  /**
120
- * Incidates whether [Rules](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/) are enabled.
115
+ * Whether to enable rules.
121
116
  */
122
117
  enableRules?: boolean;
123
118
 
124
119
  /**
125
- * Incidates whether [Personalization](https://www.algolia.com/doc/guides/personalization/what-is-personalization/) is enabled.
120
+ * Whether to enable Personalization.
126
121
  */
127
122
  enablePersonalization?: boolean;
128
123
 
@@ -135,51 +130,51 @@ export type IndexSettingsAsSearchParams = {
135
130
  semanticSearch?: SemanticSearch;
136
131
 
137
132
  /**
138
- * Enables the [advanced query syntax](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/#advanced-syntax).
133
+ * Whether to support phrase matching and excluding words from search queries. Use the `advancedSyntaxFeatures` parameter to control which feature is supported.
139
134
  */
140
135
  advancedSyntax?: boolean;
141
136
 
142
137
  /**
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.
138
+ * 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
139
  */
145
140
  optionalWords?: string[];
146
141
 
147
142
  /**
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).
143
+ * Searchable attributes for which you want to [turn off the Exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes). This can be useful for attributes with long values, where the likelyhood of an exact match is high, such as product descriptions. Turning off the Exact ranking criterion for these attributes favors exact matching on other attributes. This reduces the impact of individual attributes with a lot of content on ranking.
149
144
  */
150
145
  disableExactOnAttributes?: string[];
151
146
 
152
147
  exactOnSingleWordQuery?: ExactOnSingleWordQuery;
153
148
 
154
149
  /**
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).
150
+ * Alternatives of query words that should be considered as exact matches by the Exact ranking criterion. <dl> <dt><code>ignorePlurals</code></dt> <dd> Plurals and similar declensions added by the `ignorePlurals` setting are considered exact matches. </dd> <dt><code>singleWordSynonym</code></dt> <dd> Single-word synonyms, such as \"NY/NYC\" are considered exact matches. </dd> <dt><code>multiWordsSynonym</code></dt> <dd> Multi-word synonyms, such as \"NY/New York\" are considered exact matches. </dd> </dl>.
156
151
  */
157
152
  alternativesAsExact?: AlternativesAsExact[];
158
153
 
159
154
  /**
160
- * Allows you to specify which advanced syntax features are active when `advancedSyntax` is enabled.
155
+ * Advanced search syntax features you want to support. <dl> <dt><code>exactPhrase</code></dt> <dd> Phrases in quotes must match exactly. For example, `sparkly blue \"iPhone case\"` only returns records with the exact string \"iPhone case\". </dd> <dt><code>excludeWords</code></dt> <dd> Query words prefixed with a `-` must not occur in a record. For example, `search -engine` matches records that contain \"search\" but not \"engine\". </dd> </dl> This setting only has an effect if `advancedSyntax` is true.
161
156
  */
162
157
  advancedSyntaxFeatures?: AdvancedSyntaxFeatures[];
163
158
 
164
159
  distinct?: Distinct;
165
160
 
166
161
  /**
167
- * Whether to highlight and snippet the original word that matches the synonym or the synonym itself.
162
+ * 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
163
  */
169
164
  replaceSynonymsInHighlight?: boolean;
170
165
 
171
166
  /**
172
- * Precision of the [proximity ranking criterion](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#proximity).
167
+ * 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
168
  */
174
169
  minProximity?: number;
175
170
 
176
171
  /**
177
- * Attributes to include in the API response for search and browse queries.
172
+ * 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
173
  */
179
174
  responseFields?: string[];
180
175
 
181
176
  /**
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).
177
+ * 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
178
  */
184
179
  maxFacetHits?: number;
185
180
 
@@ -189,19 +184,19 @@ export type IndexSettingsAsSearchParams = {
189
184
  maxValuesPerFacet?: number;
190
185
 
191
186
  /**
192
- * Controls how facet values are fetched.
187
+ * Order in which to retrieve facet values. <dl> <dt><code>count</code></dt> <dd> Facet values are retrieved by decreasing count. The count is the number of matching records containing this facet value. </dd> <dt><code>alpha</code></dt> <dd>Retrieve facet values alphabetically.</dd> </dl> This setting doesn\'t influence how facet values are displayed in your UI (see `renderingContent`). For more information, see [facet value display](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/facet-display/js/).
193
188
  */
194
189
  sortFacetValuesBy?: string;
195
190
 
196
191
  /**
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.
192
+ * 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
193
  */
199
194
  attributeCriteriaComputedByMinProximity?: boolean;
200
195
 
201
196
  renderingContent?: RenderingContent;
202
197
 
203
198
  /**
204
- * Indicates whether this search will use [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/).
199
+ * 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
200
  */
206
201
  enableReRanking?: boolean;
207
202
 
@@ -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 how well the attribute matched the search query.
4
+ * Whether the whole query string matches or only a part.
5
5
  */
6
6
  export type MatchLevel = 'full' | 'none' | 'partial';
@@ -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
- * Search mode the index will use to query for results.
4
+ * Search mode the index will use to query for results. This setting only applies to indices, for which Algolia enabled NeuralSearch for you.
5
5
  */
6
6
  export type Mode = 'keywordSearch' | 'neuralSearch';
@@ -3,6 +3,6 @@
3
3
  import type { MixedSearchFilters } from './mixedSearchFilters';
4
4
 
5
5
  /**
6
- * [Filter on numeric attributes](https://www.algolia.com/doc/api-reference/api-parameters/numericFilters/).
6
+ * Filter by numeric facets. **Prefer using the `filters` parameter, which supports all filter types and combinations with boolean operators.** You can use numeric comparison operators: `<`, `<=`, `=`, `!=`, `>`, `>=`. Comparsions are precise up to 3 decimals. You can also provide ranges: `facet:<lower> TO <upper>`. The range includes the lower and upper boundaries. The same combination rules apply as for `facetFilters`.
7
7
  */
8
8
  export type NumericFilters = MixedSearchFilters[] | string;
@@ -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
- * Operation to perform (_move_ or _copy_).
4
+ * Operation to perform on the index.
5
5
  */
6
6
  export type OperationType = 'copy' | 'move';
@@ -3,6 +3,6 @@
3
3
  import type { MixedSearchFilters } from './mixedSearchFilters';
4
4
 
5
5
  /**
6
- * Create filters to boost or demote records. Records that match the filter are ranked higher for positive and lower for negative optional filters. In contrast to regular filters, records that don\'t match the optional filter are still included in the results, only their ranking is affected.
6
+ * Filters to promote or demote records in the search results. Optional filters work like facet filters, but they don\'t exclude records from the search results. Records that match the optional filter rank before records that don\'t match. If you\'re using a negative filter `facet:-value`, matching records rank after records that don\'t match. - Optional filters don\'t work on virtual replicas. - Optional filters are applied _after_ sort-by attributes. - Optional filters don\'t work with numeric attributes.
7
7
  */
8
8
  export type OptionalFilters = MixedSearchFilters[] | string;
@@ -5,7 +5,7 @@ import type { ConsequenceQuery } from './consequenceQuery';
5
5
  import type { RenderingContent } from './renderingContent';
6
6
 
7
7
  /**
8
- * Additional search parameters.
8
+ * Parameters to apply to this search. You can use all search parameters, plus special `automaticFacetFilters`, `automaticOptionalFacetFilters`, and `query`.
9
9
  */
10
10
  export type Params = {
11
11
  query?: ConsequenceQuery;
@@ -5,12 +5,12 @@
5
5
  */
6
6
  export type PromoteObjectID = {
7
7
  /**
8
- * Unique identifier of the record to promote.
8
+ * Unique record identifier.
9
9
  */
10
10
  objectID: string;
11
11
 
12
12
  /**
13
- * The position to promote the records to. If you pass objectIDs, the records are placed at this position as a group. For example, if you pronmote four objectIDs to position 0, the records take the first four positions.
13
+ * Position in the search results where you want to show the promoted records.
14
14
  */
15
15
  position: number;
16
16
  };
@@ -5,12 +5,12 @@
5
5
  */
6
6
  export type PromoteObjectIDs = {
7
7
  /**
8
- * Unique identifiers of the records to promote.
8
+ * Object IDs of the records you want to promote. The records are placed as a group at the `position`. For example, if you want to promote four records to position `0`, they will be the first four search results.
9
9
  */
10
10
  objectIDs: string[];
11
11
 
12
12
  /**
13
- * The position to promote the records to. If you pass objectIDs, the records are placed at this position as a group. For example, if you pronmote four objectIDs to position 0, the records take the first four positions.
13
+ * Position in the search results where you want to show the promoted records.
14
14
  */
15
15
  position: number;
16
16
  };
@@ -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 query words are [interpreted as prefixes](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/prefix-searching/).
4
+ * Determines if and how query words are interpreted as prefixes. By default, only the last query word is treated as prefix (`prefixLast`). To turn off prefix search, use `prefixNone`. Avoid `prefixAll`, which treats all query words as prefixes. This might lead to counterintuitive results and makes your search slower. For more information, see [Prefix searching](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/prefix-searching/).
5
5
  */
6
6
  export type QueryType = 'prefixAll' | 'prefixLast' | 'prefixNone';
@@ -3,14 +3,17 @@
3
3
  import type { MatchedGeoLocation } from './matchedGeoLocation';
4
4
  import type { Personalization } from './personalization';
5
5
 
6
+ /**
7
+ * Object with detailed information about the record\'s ranking.
8
+ */
6
9
  export type RankingInfo = {
7
10
  /**
8
- * This field is reserved for advanced usage.
11
+ * Whether a filter matched the query.
9
12
  */
10
13
  filters: number;
11
14
 
12
15
  /**
13
- * Position of the most important matched attribute in the attributes to index list.
16
+ * Position of the first matched word in the best matching attribute of the record.
14
17
  */
15
18
  firstMatchedWord: number;
16
19
 
@@ -39,27 +42,27 @@ export type RankingInfo = {
39
42
  nbTypos: number;
40
43
 
41
44
  /**
42
- * Present and set to true if a Rule promoted the hit.
45
+ * Whether the record was promoted by a rule.
43
46
  */
44
47
  promoted: boolean;
45
48
 
46
49
  /**
47
- * When the query contains more than one word, the sum of the distances between matched words (in meters).
50
+ * Number of words between multiple matches in the query plus 1. For single word queries, `proximityDistance` is 0.
48
51
  */
49
52
  proximityDistance?: number;
50
53
 
51
54
  /**
52
- * Custom ranking for the object, expressed as a single integer value.
55
+ * Overall ranking of the record, expressed as a single integer. This attribute is internal.
53
56
  */
54
57
  userScore: number;
55
58
 
56
59
  /**
57
- * Number of matched words, including prefixes and typos.
60
+ * Number of matched words.
58
61
  */
59
62
  words: number;
60
63
 
61
64
  /**
62
- * Wether the record are promoted by the re-ranking strategy.
65
+ * Whether the record is re-ranked.
63
66
  */
64
67
  promotedByReRanking?: boolean;
65
68
  };
@@ -3,6 +3,6 @@
3
3
  import type { MixedSearchFilters } from './mixedSearchFilters';
4
4
 
5
5
  /**
6
- * When [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/) is enabled, only records that match these filters will be affected by Dynamic Re-Ranking.
6
+ * Restrict [Dynamic Re-ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/) to records that match these filters.
7
7
  */
8
8
  export type ReRankingApplyFilter = MixedSearchFilters[] | string;
@@ -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
- * Removes stop (common) words from the query before executing it. `removeStopWords` is used in conjunction with the `queryLanguages` setting. _list_: language ISO codes for which stop words should be enabled. This list will override any values that you may have set in `queryLanguages`. _true_: enables the stop words feature, ensuring that stop words are removed from consideration in a search. 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 stop words feature, allowing stop words to be taken into account in a search.
4
+ * Removes stop words from the search query. Stop words are common words like articles, conjunctions, prepositions, or pronouns that have little or no meaning on their own. In English, \"the\", \"a\", or \"and\" are stop words. You should only use this feature for the languages used in your index.
5
5
  */
6
6
  export type RemoveStopWords = string[] | boolean;
@@ -1,7 +1,7 @@
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
- * Strategy to [remove words](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/in-depth/why-use-remove-words-if-no-results/) from the query when it doesn\'t match any hits.
4
+ * Strategy for removing words from the query when it doesn\'t return any results. This helps to avoid returning empty search results. <dl> <dt><code>none</code></dt> <dd>No words are removed when a query doesn\'t return results.</dd> <dt><code>lastWords</code></dt> <dd>Treat the last (then second to last, then third to last) word as optional, until there are results or at most 5 words have been removed.</dd> <dt><code>firstWords</code></dt> <dd>Treat the first (then second, then third) word as optional, until there are results or at most 5 words have been removed.</dd> <dt><code>allOptional</code></dt> <dd>Treat all words as optional.</dd> </dl> For more information, see [Remove words to improve results](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/in-depth/why-use-remove-words-if-no-results/).
5
5
  */
6
6
  export type RemoveWordsIfNoResults =
7
7
  | 'allOptional'
@@ -3,7 +3,7 @@
3
3
  import type { FacetOrdering } from './facetOrdering';
4
4
 
5
5
  /**
6
- * Extra content for the search UI, for example, to control the [ordering and display of facets](https://www.algolia.com/doc/guides/managing-results/rules/merchandising-and-promoting/how-to/merchandising-facets/#merchandise-facets-and-their-values-in-the-manual-editor). You can set a default value and dynamically override it with [Rules](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/).
6
+ * Extra data that can be used in the search UI. You can use this to control aspects of your search UI, such as, the order of facet names and values without changing your frontend code.
7
7
  */
8
8
  export type RenderingContent = {
9
9
  facetOrdering?: FacetOrdering;
@@ -9,29 +9,29 @@ import type { TimeRange } from './timeRange';
9
9
  */
10
10
  export type Rule = {
11
11
  /**
12
- * Unique identifier for a rule object.
12
+ * Unique identifier of a rule object.
13
13
  */
14
14
  objectID: string;
15
15
 
16
16
  /**
17
- * [Conditions](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#conditions) required to activate a rule. You can use up to 25 conditions per rule.
17
+ * Conditions that trigger a rule. Some consequences require specific conditions or don\'t require any condition. For more information, see [Conditions](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#conditions).
18
18
  */
19
19
  conditions?: Condition[];
20
20
 
21
21
  consequence?: Consequence;
22
22
 
23
23
  /**
24
- * Description of the rule\'s purpose. This can be helpful for display in the Algolia dashboard.
24
+ * Description of the rule\'s purpose to help you distinguish between different rules.
25
25
  */
26
26
  description?: string;
27
27
 
28
28
  /**
29
- * Indicates whether to enable the rule. If it isn\'t enabled, it isn\'t applied at query time.
29
+ * Whether the rule is active.
30
30
  */
31
31
  enabled?: boolean;
32
32
 
33
33
  /**
34
- * If you specify a validity period, the rule _only_ applies only during that period. If specified, the array must not be empty.
34
+ * Time periods when the rule is active.
35
35
  */
36
36
  validity?: TimeRange[];
37
37
  };
@@ -0,0 +1,25 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ import type { DictionaryEntry } from './dictionaryEntry';
4
+
5
+ export type SearchDictionaryEntriesResponse = {
6
+ /**
7
+ * Dictionary entries matching the search criteria.
8
+ */
9
+ hits: DictionaryEntry[];
10
+
11
+ /**
12
+ * Requested page of the API response.
13
+ */
14
+ page: number;
15
+
16
+ /**
17
+ * Number of results (hits).
18
+ */
19
+ nbHits: number;
20
+
21
+ /**
22
+ * Number of pages of results.
23
+ */
24
+ nbPages: number;
25
+ };
@@ -3,6 +3,9 @@
3
3
  import type { FacetHits } from './facetHits';
4
4
 
5
5
  export type SearchForFacetValuesResponse = {
6
+ /**
7
+ * Matching facet values.
8
+ */
6
9
  facetHits: FacetHits[];
7
10
 
8
11
  /**
@@ -9,7 +9,7 @@ export type SearchForFacetsOptions = {
9
9
  facet: string;
10
10
 
11
11
  /**
12
- * Algolia index name.
12
+ * Index name.
13
13
  */
14
14
  indexName: string;
15
15
 
@@ -19,7 +19,7 @@ export type SearchForFacetsOptions = {
19
19
  facetQuery?: string;
20
20
 
21
21
  /**
22
- * 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).
22
+ * 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).
23
23
  */
24
24
  maxFacetHits?: number;
25
25
 
@@ -4,7 +4,7 @@ import type { SearchTypeDefault } from './searchTypeDefault';
4
4
 
5
5
  export type SearchForHitsOptions = {
6
6
  /**
7
- * Algolia index name.
7
+ * Index name.
8
8
  */
9
9
  indexName: string;
10
10
 
@@ -3,15 +3,18 @@
3
3
  import type { Hit } from './hit';
4
4
 
5
5
  export type SearchHits<T = Record<string, any>> = Record<string, any> & {
6
+ /**
7
+ * Search results (hits). Hits are records from your index that match the search criteria, augmented with additional attributes, such as, for highlighting.
8
+ */
6
9
  hits: Array<Hit<T>>;
7
10
 
8
11
  /**
9
- * Text to search for in an index.
12
+ * Search query.
10
13
  */
11
- query: T;
14
+ query: string;
12
15
 
13
16
  /**
14
17
  * URL-encoded string of all search parameters.
15
18
  */
16
- params: T;
19
+ params: string;
17
20
  };
@@ -2,7 +2,7 @@
2
2
 
3
3
  export type SearchParamsQuery = {
4
4
  /**
5
- * Text to search for in an index.
5
+ * Search query.
6
6
  */
7
7
  query?: string;
8
8
  };
@@ -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
- * - `none`: executes all queries. - `stopIfEnoughMatches`: executes queries one by one, stopping further query execution as soon as a query matches at least the `hitsPerPage` number of results.
4
+ * Strategy for multiple search queries: - `none`. Run all queries. - `stopIfEnoughMatches`. Run the queries one by one, stopping as soon as a query matches at least the `hitsPerPage` number of results.
5
5
  */
6
6
  export type SearchStrategy = 'none' | 'stopIfEnoughMatches';
@@ -4,12 +4,12 @@ import type { SynonymHit } from './synonymHit';
4
4
 
5
5
  export type SearchSynonymsResponse = Record<string, any> & {
6
6
  /**
7
- * Synonym objects.
7
+ * Matching synonyms.
8
8
  */
9
9
  hits: SynonymHit[];
10
10
 
11
11
  /**
12
- * Number of hits the search query matched.
12
+ * Number of results (hits).
13
13
  */
14
14
  nbHits: number;
15
15
  };