algoliasearch 5.9.1 → 5.10.0

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 (168) hide show
  1. package/README.md +5 -5
  2. package/dist/algoliasearch.umd.js +7 -7
  3. package/dist/browser.d.ts +5 -5
  4. package/dist/browser.js +3 -3
  5. package/dist/browser.js.map +1 -1
  6. package/dist/browser.min.js +1 -1
  7. package/dist/browser.min.js.map +1 -1
  8. package/dist/fetch.d.ts +5 -5
  9. package/dist/fetch.js +3 -3
  10. package/dist/fetch.js.map +1 -1
  11. package/dist/lite/browser.d.ts +7 -7
  12. package/dist/lite/builds/browser.js +1 -1
  13. package/dist/lite/builds/browser.js.map +1 -1
  14. package/dist/lite/builds/browser.min.js +1 -1
  15. package/dist/lite/builds/browser.min.js.map +1 -1
  16. package/dist/lite/builds/browser.umd.js +1 -1
  17. package/dist/lite/builds/node.cjs +1 -1
  18. package/dist/lite/builds/node.cjs.map +1 -1
  19. package/dist/lite/builds/node.js +1 -1
  20. package/dist/lite/builds/node.js.map +1 -1
  21. package/dist/lite/node.d.cts +7 -7
  22. package/dist/lite/node.d.ts +7 -7
  23. package/dist/lite/src/liteClient.cjs +1 -1
  24. package/dist/lite/src/liteClient.cjs.map +1 -1
  25. package/dist/lite/src/liteClient.js +1 -1
  26. package/dist/lite/src/liteClient.js.map +1 -1
  27. package/dist/node.cjs +3 -3
  28. package/dist/node.cjs.map +1 -1
  29. package/dist/node.d.cts +5 -5
  30. package/dist/node.d.ts +5 -5
  31. package/dist/node.js +3 -3
  32. package/dist/node.js.map +1 -1
  33. package/package.json +17 -19
  34. package/builds/browser.ts +0 -130
  35. package/builds/fetch.ts +0 -130
  36. package/builds/models.ts +0 -250
  37. package/builds/node.ts +0 -130
  38. package/lite/builds/browser.ts +0 -51
  39. package/lite/builds/node.ts +0 -47
  40. package/lite/model/acl.ts +0 -21
  41. package/lite/model/advancedSyntaxFeatures.ts +0 -3
  42. package/lite/model/alternativesAsExact.ts +0 -3
  43. package/lite/model/apiKey.ts +0 -48
  44. package/lite/model/aroundPrecision.ts +0 -8
  45. package/lite/model/aroundRadius.ts +0 -8
  46. package/lite/model/aroundRadiusAll.ts +0 -6
  47. package/lite/model/automaticFacetFilter.ts +0 -21
  48. package/lite/model/automaticFacetFilters.ts +0 -8
  49. package/lite/model/banner.ts +0 -13
  50. package/lite/model/bannerImage.ts +0 -12
  51. package/lite/model/bannerImageUrl.ts +0 -8
  52. package/lite/model/bannerLink.ts +0 -8
  53. package/lite/model/baseGetApiKeyResponse.ts +0 -13
  54. package/lite/model/baseIndexSettings.ts +0 -90
  55. package/lite/model/baseRecommendIndexSettings.ts +0 -184
  56. package/lite/model/baseRecommendRequest.ts +0 -22
  57. package/lite/model/baseRecommendSearchParams.ts +0 -133
  58. package/lite/model/baseSearchParams.ts +0 -6
  59. package/lite/model/baseSearchParamsWithoutQuery.ts +0 -148
  60. package/lite/model/baseSearchResponse.ts +0 -129
  61. package/lite/model/booleanString.ts +0 -3
  62. package/lite/model/boughtTogetherQuery.ts +0 -6
  63. package/lite/model/browsePagination.ts +0 -23
  64. package/lite/model/browseParamsObject.ts +0 -6
  65. package/lite/model/browseResponse.ts +0 -8
  66. package/lite/model/clientMethodProps.ts +0 -63
  67. package/lite/model/consequenceParams.ts +0 -7
  68. package/lite/model/consequenceQuery.ts +0 -8
  69. package/lite/model/consequenceQueryObject.ts +0 -15
  70. package/lite/model/cursor.ts +0 -8
  71. package/lite/model/distinct.ts +0 -6
  72. package/lite/model/edit.ts +0 -17
  73. package/lite/model/editType.ts +0 -6
  74. package/lite/model/errorBase.ts +0 -8
  75. package/lite/model/exactOnSingleWordQuery.ts +0 -6
  76. package/lite/model/exhaustive.ts +0 -31
  77. package/lite/model/facetFilters.ts +0 -6
  78. package/lite/model/facetHits.ts +0 -18
  79. package/lite/model/facetOrdering.ts +0 -16
  80. package/lite/model/facetStats.ts +0 -23
  81. package/lite/model/fallbackParams.ts +0 -5
  82. package/lite/model/fbtModel.ts +0 -6
  83. package/lite/model/frequentlyBoughtTogether.ts +0 -12
  84. package/lite/model/getApiKeyResponse.ts +0 -6
  85. package/lite/model/getRecommendationsParams.ts +0 -13
  86. package/lite/model/getRecommendationsResponse.ts +0 -7
  87. package/lite/model/highlightResult.ts +0 -5
  88. package/lite/model/highlightResultOption.ts +0 -25
  89. package/lite/model/hit.ts +0 -29
  90. package/lite/model/ignorePlurals.ts +0 -9
  91. package/lite/model/index.ts +0 -128
  92. package/lite/model/indexSettings.ts +0 -9
  93. package/lite/model/indexSettingsAsSearchParams.ts +0 -205
  94. package/lite/model/indexSettingsFacets.ts +0 -11
  95. package/lite/model/lookingSimilar.ts +0 -15
  96. package/lite/model/lookingSimilarModel.ts +0 -6
  97. package/lite/model/lookingSimilarQuery.ts +0 -6
  98. package/lite/model/matchLevel.ts +0 -6
  99. package/lite/model/matchedGeoLocation.ts +0 -18
  100. package/lite/model/mode.ts +0 -6
  101. package/lite/model/numericFilters.ts +0 -6
  102. package/lite/model/optionalFilters.ts +0 -6
  103. package/lite/model/params.ts +0 -18
  104. package/lite/model/personalization.ts +0 -18
  105. package/lite/model/queryType.ts +0 -6
  106. package/lite/model/range.ts +0 -16
  107. package/lite/model/rankingInfo.ts +0 -68
  108. package/lite/model/reRankingApplyFilter.ts +0 -6
  109. package/lite/model/recommendHit.ts +0 -34
  110. package/lite/model/recommendIndexSettings.ts +0 -9
  111. package/lite/model/recommendSearchParams.ts +0 -10
  112. package/lite/model/recommendationsHit.ts +0 -7
  113. package/lite/model/recommendationsHits.ts +0 -7
  114. package/lite/model/recommendationsRequest.ts +0 -18
  115. package/lite/model/recommendationsResults.ts +0 -7
  116. package/lite/model/recommendedForYou.ts +0 -10
  117. package/lite/model/recommendedForYouModel.ts +0 -6
  118. package/lite/model/recommendedForYouQuery.ts +0 -6
  119. package/lite/model/redirect.ts +0 -10
  120. package/lite/model/redirectRuleIndexData.ts +0 -8
  121. package/lite/model/redirectRuleIndexMetadata.ts +0 -27
  122. package/lite/model/redirectURL.ts +0 -8
  123. package/lite/model/relatedModel.ts +0 -6
  124. package/lite/model/relatedProducts.ts +0 -15
  125. package/lite/model/relatedQuery.ts +0 -6
  126. package/lite/model/removeStopWords.ts +0 -8
  127. package/lite/model/removeWordsIfNoResults.ts +0 -6
  128. package/lite/model/renderingContent.ts +0 -16
  129. package/lite/model/searchForFacetValuesResponse.ts +0 -20
  130. package/lite/model/searchForFacets.ts +0 -6
  131. package/lite/model/searchForFacetsOptions.ts +0 -27
  132. package/lite/model/searchForHits.ts +0 -6
  133. package/lite/model/searchForHitsOptions.ts +0 -12
  134. package/lite/model/searchHits.ts +0 -20
  135. package/lite/model/searchMethodParams.ts +0 -10
  136. package/lite/model/searchPagination.ts +0 -23
  137. package/lite/model/searchParams.ts +0 -6
  138. package/lite/model/searchParamsObject.ts +0 -9
  139. package/lite/model/searchParamsQuery.ts +0 -8
  140. package/lite/model/searchParamsString.ts +0 -11
  141. package/lite/model/searchQuery.ts +0 -6
  142. package/lite/model/searchResponse.ts +0 -7
  143. package/lite/model/searchResponses.ts +0 -7
  144. package/lite/model/searchResult.ts +0 -6
  145. package/lite/model/searchStrategy.ts +0 -6
  146. package/lite/model/searchTypeDefault.ts +0 -6
  147. package/lite/model/searchTypeFacet.ts +0 -6
  148. package/lite/model/semanticSearch.ts +0 -11
  149. package/lite/model/settingsResponse.ts +0 -6
  150. package/lite/model/snippetResult.ts +0 -5
  151. package/lite/model/snippetResultOption.ts +0 -15
  152. package/lite/model/sortRemainingBy.ts +0 -6
  153. package/lite/model/supportedLanguage.ts +0 -74
  154. package/lite/model/tagFilters.ts +0 -6
  155. package/lite/model/trendingFacetHit.ts +0 -21
  156. package/lite/model/trendingFacets.ts +0 -15
  157. package/lite/model/trendingFacetsModel.ts +0 -6
  158. package/lite/model/trendingFacetsQuery.ts +0 -6
  159. package/lite/model/trendingItems.ts +0 -20
  160. package/lite/model/trendingItemsModel.ts +0 -6
  161. package/lite/model/trendingItemsQuery.ts +0 -6
  162. package/lite/model/typoTolerance.ts +0 -8
  163. package/lite/model/typoToleranceEnum.ts +0 -6
  164. package/lite/model/value.ts +0 -17
  165. package/lite/model/widgets.ts +0 -13
  166. package/lite/model/withPrimary.ts +0 -8
  167. package/lite/src/liteClient.ts +0 -305
  168. package/lite/tsconfig.json +0 -9
@@ -1,47 +0,0 @@
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
- export type LiteClient = ReturnType<typeof createLiteClient>;
4
-
5
- import { createHttpRequester } from '@algolia/requester-node-http';
6
-
7
- import {
8
- ClientOptions,
9
- createMemoryCache,
10
- createNullCache,
11
- createNullLogger,
12
- DEFAULT_CONNECT_TIMEOUT_NODE,
13
- DEFAULT_READ_TIMEOUT_NODE,
14
- DEFAULT_WRITE_TIMEOUT_NODE,
15
- } from '@algolia/client-common';
16
-
17
- import { createLiteClient } from '../src/liteClient';
18
-
19
- export * from '../model';
20
- export { apiClientVersion } from '../src/liteClient';
21
-
22
- export function liteClient(appId: string, apiKey: string, options?: ClientOptions): LiteClient {
23
- if (!appId || typeof appId !== 'string') {
24
- throw new Error('`appId` is missing.');
25
- }
26
-
27
- if (!apiKey || typeof apiKey !== 'string') {
28
- throw new Error('`apiKey` is missing.');
29
- }
30
-
31
- return createLiteClient({
32
- appId,
33
- apiKey,
34
- timeouts: {
35
- connect: DEFAULT_CONNECT_TIMEOUT_NODE,
36
- read: DEFAULT_READ_TIMEOUT_NODE,
37
- write: DEFAULT_WRITE_TIMEOUT_NODE,
38
- },
39
- logger: createNullLogger(),
40
- requester: createHttpRequester(),
41
- algoliaAgents: [{ segment: 'Node.js', version: process.versions.node }],
42
- responsesCache: createNullCache(),
43
- requestsCache: createNullCache(),
44
- hostsCache: createMemoryCache(),
45
- ...options,
46
- });
47
- }
package/lite/model/acl.ts DELETED
@@ -1,21 +0,0 @@
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
- /**
4
- * Access control list permissions.
5
- */
6
- export type Acl =
7
- | 'addObject'
8
- | 'analytics'
9
- | 'browse'
10
- | 'deleteObject'
11
- | 'deleteIndex'
12
- | 'editSettings'
13
- | 'inference'
14
- | 'listIndexes'
15
- | 'logs'
16
- | 'personalization'
17
- | 'recommendation'
18
- | 'search'
19
- | 'seeUnretrievableAttributes'
20
- | 'settings'
21
- | 'usage';
@@ -1,3 +0,0 @@
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
- export type AdvancedSyntaxFeatures = 'exactPhrase' | 'excludeWords';
@@ -1,3 +0,0 @@
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
- export type AlternativesAsExact = 'ignorePlurals' | 'singleWordSynonym' | 'multiWordsSynonym';
@@ -1,48 +0,0 @@
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 { Acl } from './acl';
4
-
5
- /**
6
- * API key object.
7
- */
8
- export type ApiKey = {
9
- /**
10
- * Permissions that determine the type of API requests this key can make. The required ACL is listed in each endpoint\'s reference. For more information, see [access control list](https://www.algolia.com/doc/guides/security/api-keys/#access-control-list-acl).
11
- */
12
- acl: Array<Acl>;
13
-
14
- /**
15
- * Description of an API key to help you identify this API key.
16
- */
17
- description?: string;
18
-
19
- /**
20
- * Index names or patterns that this API key can access. By default, an API key can access all indices in the same application. You can use leading and trailing wildcard characters (`*`): - `dev_*` matches all indices starting with \"dev_\". - `*_dev` matches all indices ending with \"_dev\". - `*_products_*` matches all indices containing \"_products_\".
21
- */
22
- indexes?: Array<string>;
23
-
24
- /**
25
- * Maximum number of results this API key can retrieve in one query. By default, there\'s no limit.
26
- */
27
- maxHitsPerQuery?: number;
28
-
29
- /**
30
- * Maximum number of API requests allowed per IP address or [user token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/) per hour. If this limit is reached, the API returns an error with status code `429`. By default, there\'s no limit.
31
- */
32
- maxQueriesPerIPPerHour?: number;
33
-
34
- /**
35
- * Query parameters to add when making API requests with this API key. To restrict this API key to specific IP addresses, add the `restrictSources` parameter. You can only add a single source, but you can provide a range of IP addresses. Creating an API key fails if the request is made from an IP address outside the restricted range.
36
- */
37
- queryParameters?: string;
38
-
39
- /**
40
- * Allowed HTTP referrers for this API key. By default, all referrers are allowed. You can use leading and trailing wildcard characters (`*`): - `https://algolia.com/_*` allows all referrers starting with \"https://algolia.com/\" - `*.algolia.com` allows all referrers ending with \".algolia.com\" - `*algolia.com*` allows all referrers in the domain \"algolia.com\". Like all HTTP headers, referrers can be spoofed. Don\'t rely on them to secure your data. For more information, see [HTTP referrer restrictions](https://www.algolia.com/doc/guides/security/security-best-practices/#http-referrers-restrictions).
41
- */
42
- referers?: Array<string>;
43
-
44
- /**
45
- * Duration (in seconds) after which the API key expires. By default, API keys don\'t expire.
46
- */
47
- validity?: number;
48
- };
@@ -1,8 +0,0 @@
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 { Range } from './range';
4
-
5
- /**
6
- * Precision of a coordinate-based search in meters to group results with similar distances. The Geo ranking criterion considers all matches within the same range of distances to be equal.
7
- */
8
- export type AroundPrecision = number | Array<Range>;
@@ -1,8 +0,0 @@
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 { AroundRadiusAll } from './aroundRadiusAll';
4
-
5
- /**
6
- * Maximum radius for a search around a central location. This parameter works in combination with the `aroundLatLng` and `aroundLatLngViaIP` parameters. By default, the search radius is determined automatically from the density of hits around the central location. The search radius is small if there are many hits close to the central coordinates.
7
- */
8
- export type AroundRadius = number | AroundRadiusAll;
@@ -1,6 +0,0 @@
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
- /**
4
- * Return all records with a valid `_geoloc` attribute. Don\'t filter by distance.
5
- */
6
- export type AroundRadiusAll = 'all';
@@ -1,21 +0,0 @@
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
- /**
4
- * Filter or optional filter to be applied to the search.
5
- */
6
- export type AutomaticFacetFilter = {
7
- /**
8
- * Facet name to be applied as filter. The name must match placeholders in the `pattern` parameter. For example, with `pattern: {facet:genre}`, `automaticFacetFilters` must be `genre`.
9
- */
10
- facet: string;
11
-
12
- /**
13
- * Filter scores to give different weights to individual filters.
14
- */
15
- score?: number;
16
-
17
- /**
18
- * Whether the filter is disjunctive or conjunctive. If true the filter has multiple matches, multiple occurences are combined with the logical `OR` operation. If false, multiple occurences are combined with the logical `AND` operation.
19
- */
20
- disjunctive?: boolean;
21
- };
@@ -1,8 +0,0 @@
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 { AutomaticFacetFilter } from './automaticFacetFilter';
4
-
5
- /**
6
- * Filter to be applied to the search. You can use this to respond to search queries that match a facet value. For example, if users search for \"comedy\", which matches a facet value of the \"genre\" facet, you can filter the results to show the top-ranked comedy movies.
7
- */
8
- export type AutomaticFacetFilters = Array<AutomaticFacetFilter> | Array<string>;
@@ -1,13 +0,0 @@
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 { BannerImage } from './bannerImage';
4
- import type { BannerLink } from './bannerLink';
5
-
6
- /**
7
- * a search banner with image and url.
8
- */
9
- export type Banner = {
10
- image?: BannerImage;
11
-
12
- link?: BannerLink;
13
- };
@@ -1,12 +0,0 @@
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 { BannerImageUrl } from './bannerImageUrl';
4
-
5
- /**
6
- * image of a search banner.
7
- */
8
- export type BannerImage = {
9
- urls?: Array<BannerImageUrl>;
10
-
11
- title?: string;
12
- };
@@ -1,8 +0,0 @@
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
- /**
4
- * url for a search banner image.
5
- */
6
- export type BannerImageUrl = {
7
- url?: string;
8
- };
@@ -1,8 +0,0 @@
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
- /**
4
- * link for a banner defined in merchandising studio.
5
- */
6
- export type BannerLink = {
7
- url?: string;
8
- };
@@ -1,13 +0,0 @@
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
- export type BaseGetApiKeyResponse = {
4
- /**
5
- * API key.
6
- */
7
- value: string;
8
-
9
- /**
10
- * Timestamp when the object was created, in milliseconds since the Unix epoch.
11
- */
12
- createdAt: number;
13
- };
@@ -1,90 +0,0 @@
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 { SupportedLanguage } from './supportedLanguage';
4
-
5
- export type BaseIndexSettings = {
6
- /**
7
- * Attributes used for [faceting](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/). Facets are attributes that let you categorize search results. They can be used for filtering search results. By default, no attribute is used for faceting. Attribute names are case-sensitive. **Modifiers** - `filterOnly(\"ATTRIBUTE\")`. Allows the attribute to be used as a filter but doesn\'t evaluate the facet values. - `searchable(\"ATTRIBUTE\")`. Allows searching for facet values. - `afterDistinct(\"ATTRIBUTE\")`. Evaluates the facet count _after_ deduplication with `distinct`. This ensures accurate facet counts. You can apply this modifier to searchable facets: `afterDistinct(searchable(ATTRIBUTE))`.
8
- */
9
- attributesForFaceting?: Array<string>;
10
-
11
- /**
12
- * Creates [replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/). Replicas are copies of a primary index with the same records but different settings, synonyms, or rules. If you want to offer a different ranking or sorting of your search results, you\'ll use replica indices. All index operations on a primary index are automatically forwarded to its replicas. To add a replica index, you must provide the complete set of replicas to this parameter. If you omit a replica from this list, the replica turns into a regular, standalone index that will no longer be synced with the primary index. **Modifier** - `virtual(\"REPLICA\")`. Create a virtual replica, Virtual replicas don\'t increase the number of records and are optimized for [Relevant sorting](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/relevant-sort/).
13
- */
14
- replicas?: Array<string>;
15
-
16
- /**
17
- * Maximum number of search results that can be obtained through pagination. Higher pagination limits might slow down your search. For pagination limits above 1,000, the sorting of results beyond the 1,000th hit can\'t be guaranteed.
18
- */
19
- paginationLimitedTo?: number;
20
-
21
- /**
22
- * Attributes that can\'t be retrieved at query time. This can be useful if you want to use an attribute for ranking or to [restrict access](https://www.algolia.com/doc/guides/security/api-keys/how-to/user-restricted-access-to-data/), but don\'t want to include it in the search results. Attribute names are case-sensitive.
23
- */
24
- unretrievableAttributes?: Array<string>;
25
-
26
- /**
27
- * Creates a list of [words which require exact matches](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/in-depth/configuring-typo-tolerance/#turn-off-typo-tolerance-for-certain-words). This also turns off [word splitting and concatenation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/splitting-and-concatenation/) for the specified words.
28
- */
29
- disableTypoToleranceOnWords?: Array<string>;
30
-
31
- /**
32
- * Attributes, for which you want to support [Japanese transliteration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/#japanese-transliteration-and-type-ahead). Transliteration supports searching in any of the Japanese writing systems. To support transliteration, you must set the indexing language to Japanese. Attribute names are case-sensitive.
33
- */
34
- attributesToTransliterate?: Array<string>;
35
-
36
- /**
37
- * Attributes for which to split [camel case](https://wikipedia.org/wiki/Camel_case) words. Attribute names are case-sensitive.
38
- */
39
- camelCaseAttributes?: Array<string>;
40
-
41
- /**
42
- * Searchable attributes to which Algolia should apply [word segmentation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/how-to/customize-segmentation/) (decompounding). Attribute names are case-sensitive. Compound words are formed by combining two or more individual words, and are particularly prevalent in Germanic languages—for example, \"firefighter\". With decompounding, the individual components are indexed separately. You can specify different lists for different languages. Decompounding is supported for these languages: Dutch (`nl`), German (`de`), Finnish (`fi`), Danish (`da`), Swedish (`sv`), and Norwegian (`no`). Decompounding doesn\'t work for words with [non-spacing mark Unicode characters](https://www.charactercodes.net/category/non-spacing_mark). For example, `Gartenstühle` won\'t be decompounded if the `ü` consists of `u` (U+0075) and `◌̈` (U+0308).
43
- */
44
- decompoundedAttributes?: Record<string, unknown>;
45
-
46
- /**
47
- * Languages for language-specific processing steps, such as word detection and dictionary settings. **You should always specify an indexing 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/).
48
- */
49
- indexLanguages?: Array<SupportedLanguage>;
50
-
51
- /**
52
- * Searchable attributes for which you want to turn off [prefix matching](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/#adjusting-prefix-search). Attribute names are case-sensitive.
53
- */
54
- disablePrefixOnAttributes?: Array<string>;
55
-
56
- /**
57
- * Whether arrays with exclusively non-negative integers should be compressed for better performance. If true, the compressed arrays may be reordered.
58
- */
59
- allowCompressionOfIntegerArray?: boolean;
60
-
61
- /**
62
- * Numeric attributes that can be used as [numerical filters](https://www.algolia.com/doc/guides/managing-results/rules/detecting-intent/how-to/applying-a-custom-filter-for-a-specific-query/#numerical-filters). Attribute names are case-sensitive. By default, all numeric attributes are available as numerical filters. For faster indexing, reduce the number of numeric attributes. To turn off filtering for all numeric attributes, specify an attribute that doesn\'t exist in your index, such as `NO_NUMERIC_FILTERING`. **Modifier** - `equalOnly(\"ATTRIBUTE\")`. Support only filtering based on equality comparisons `=` and `!=`.
63
- */
64
- numericAttributesForFiltering?: Array<string>;
65
-
66
- /**
67
- * Control which non-alphanumeric characters are indexed. By default, Algolia ignores [non-alphanumeric characters](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/how-to/how-to-search-in-hyphenated-attributes/#handling-non-alphanumeric-characters) like hyphen (`-`), plus (`+`), and parentheses (`(`,`)`). To include such characters, define them with `separatorsToIndex`. Separators are all non-letter characters except spaces and currency characters, such as $€£¥. With `separatorsToIndex`, Algolia treats separator characters as separate words. For example, in a search for \"Disney+\", Algolia considers \"Disney\" and \"+\" as two separate words.
68
- */
69
- separatorsToIndex?: string;
70
-
71
- /**
72
- * Attributes used for searching. Attribute names are case-sensitive. By default, all attributes are searchable and the [Attribute](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#attribute) ranking criterion is turned off. With a non-empty list, Algolia only returns results with matches in the selected attributes. In addition, the Attribute ranking criterion is turned on: matches in attributes that are higher in the list of `searchableAttributes` rank first. To make matches in two attributes rank equally, include them in a comma-separated string, such as `\"title,alternate_title\"`. Attributes with the same priority are always unordered. For more information, see [Searchable attributes](https://www.algolia.com/doc/guides/sending-and-managing-data/prepare-your-data/how-to/setting-searchable-attributes/). **Modifier** - `unordered(\"ATTRIBUTE\")`. Ignore the position of a match within the attribute. Without a modifier, matches at the beginning of an attribute rank higher than matches at the end.
73
- */
74
- searchableAttributes?: Array<string>;
75
-
76
- /**
77
- * An object with custom data. You can store up to 32kB as custom data.
78
- */
79
- userData?: Record<string, unknown>;
80
-
81
- /**
82
- * Characters and their normalized replacements. This overrides Algolia\'s default [normalization](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/).
83
- */
84
- customNormalization?: { [key: string]: { [key: string]: string } };
85
-
86
- /**
87
- * Attribute that should be used to establish groups of results. Attribute names are case-sensitive. All records with the same value for this attribute are considered a group. You can combine `attributeForDistinct` with the `distinct` search parameter to control how many items per group are included in the search results. If you want to use the same attribute also for faceting, use the `afterDistinct` modifier of the `attributesForFaceting` setting. This applies faceting _after_ deduplication, which will result in accurate facet counts.
88
- */
89
- attributeForDistinct?: string;
90
- };
@@ -1,184 +0,0 @@
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 { AdvancedSyntaxFeatures } from './advancedSyntaxFeatures';
4
- import type { AlternativesAsExact } from './alternativesAsExact';
5
- import type { Distinct } from './distinct';
6
- import type { ExactOnSingleWordQuery } from './exactOnSingleWordQuery';
7
- import type { IgnorePlurals } from './ignorePlurals';
8
- import type { QueryType } from './queryType';
9
- import type { ReRankingApplyFilter } from './reRankingApplyFilter';
10
- import type { RemoveStopWords } from './removeStopWords';
11
- import type { RemoveWordsIfNoResults } from './removeWordsIfNoResults';
12
- import type { RenderingContent } from './renderingContent';
13
- import type { SupportedLanguage } from './supportedLanguage';
14
- import type { TypoTolerance } from './typoTolerance';
15
-
16
- export type BaseRecommendIndexSettings = {
17
- /**
18
- * 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.
19
- */
20
- attributesToRetrieve?: Array<string>;
21
-
22
- /**
23
- * 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/).
24
- */
25
- ranking?: Array<string>;
26
-
27
- /**
28
- * 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.
29
- */
30
- relevancyStrictness?: number;
31
-
32
- /**
33
- * Attributes to highlight. By default, all searchable attributes are highlighted. Use `*` to highlight all attributes or use an empty array `[]` to turn off highlighting. 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/).
34
- */
35
- attributesToHighlight?: Array<string>;
36
-
37
- /**
38
- * 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.
39
- */
40
- attributesToSnippet?: Array<string>;
41
-
42
- /**
43
- * HTML tag to insert before the highlighted parts in all highlighted results and snippets.
44
- */
45
- highlightPreTag?: string;
46
-
47
- /**
48
- * HTML tag to insert after the highlighted parts in all highlighted results and snippets.
49
- */
50
- highlightPostTag?: string;
51
-
52
- /**
53
- * String used as an ellipsis indicator when a snippet is truncated.
54
- */
55
- snippetEllipsisText?: string;
56
-
57
- /**
58
- * Whether to restrict highlighting and snippeting to items that at least partially matched the search query. By default, all items are highlighted and snippeted.
59
- */
60
- restrictHighlightAndSnippetArrays?: boolean;
61
-
62
- /**
63
- * 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).
64
- */
65
- minWordSizefor1Typo?: number;
66
-
67
- /**
68
- * Minimum number of characters a word in the search query must contain to accept matches with [two typos](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/in-depth/configuring-typo-tolerance/#configuring-word-length-for-typos).
69
- */
70
- minWordSizefor2Typos?: number;
71
-
72
- typoTolerance?: TypoTolerance;
73
-
74
- /**
75
- * 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.
76
- */
77
- allowTyposOnNumericTokens?: boolean;
78
-
79
- /**
80
- * 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.
81
- */
82
- disableTypoToleranceOnAttributes?: Array<string>;
83
-
84
- ignorePlurals?: IgnorePlurals;
85
-
86
- removeStopWords?: RemoveStopWords;
87
-
88
- /**
89
- * 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/).
90
- */
91
- queryLanguages?: Array<SupportedLanguage>;
92
-
93
- /**
94
- * Whether to split compound words in the query 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. Decompounding doesn\'t work for words with [non-spacing mark Unicode characters](https://www.charactercodes.net/category/non-spacing_mark). For example, `Gartenstühle` won\'t be decompounded if the `ü` consists of `u` (U+0075) and `◌̈` (U+0308).
95
- */
96
- decompoundQuery?: boolean;
97
-
98
- /**
99
- * Whether to enable rules.
100
- */
101
- enableRules?: boolean;
102
-
103
- /**
104
- * Whether to enable Personalization.
105
- */
106
- enablePersonalization?: boolean;
107
-
108
- queryType?: QueryType;
109
-
110
- removeWordsIfNoResults?: RemoveWordsIfNoResults;
111
-
112
- /**
113
- * Whether to support phrase matching and excluding words from search queries. Use the `advancedSyntaxFeatures` parameter to control which feature is supported.
114
- */
115
- advancedSyntax?: boolean;
116
-
117
- /**
118
- * 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 divided 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).
119
- */
120
- optionalWords?: Array<string>;
121
-
122
- /**
123
- * 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 likelihood 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.
124
- */
125
- disableExactOnAttributes?: Array<string>;
126
-
127
- exactOnSingleWordQuery?: ExactOnSingleWordQuery;
128
-
129
- /**
130
- * Determine which plurals and synonyms should be considered an exact matches. By default, Algolia treats singular and plural forms of a word, and single-word synonyms, as [exact](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#exact) matches when searching. For example: - \"swimsuit\" and \"swimsuits\" are treated the same - \"swimsuit\" and \"swimwear\" are treated the same (if they are [synonyms](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/adding-synonyms/#regular-synonyms)). - `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.
131
- */
132
- alternativesAsExact?: Array<AlternativesAsExact>;
133
-
134
- /**
135
- * 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.
136
- */
137
- advancedSyntaxFeatures?: Array<AdvancedSyntaxFeatures>;
138
-
139
- distinct?: Distinct;
140
-
141
- /**
142
- * 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 occurrences of \"house\" are replaced by \"home\" in the highlighted response.
143
- */
144
- replaceSynonymsInHighlight?: boolean;
145
-
146
- /**
147
- * 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.
148
- */
149
- minProximity?: number;
150
-
151
- /**
152
- * 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.
153
- */
154
- responseFields?: Array<string>;
155
-
156
- /**
157
- * 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).
158
- */
159
- maxFacetHits?: number;
160
-
161
- /**
162
- * Maximum number of facet values to return for each facet.
163
- */
164
- maxValuesPerFacet?: number;
165
-
166
- /**
167
- * 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/).
168
- */
169
- sortFacetValuesBy?: string;
170
-
171
- /**
172
- * 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.
173
- */
174
- attributeCriteriaComputedByMinProximity?: boolean;
175
-
176
- renderingContent?: RenderingContent;
177
-
178
- /**
179
- * 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.
180
- */
181
- enableReRanking?: boolean;
182
-
183
- reRankingApplyFilter?: ReRankingApplyFilter | null;
184
- };
@@ -1,22 +0,0 @@
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 { RecommendSearchParams } from './recommendSearchParams';
4
-
5
- export type BaseRecommendRequest = {
6
- /**
7
- * Index name (case-sensitive).
8
- */
9
- indexName: string;
10
-
11
- /**
12
- * Minimum score a recommendation must have to be included in the response.
13
- */
14
- threshold: number;
15
-
16
- /**
17
- * Maximum number of recommendations to retrieve. By default, all recommendations are returned and no fallback request is made. Depending on the available recommendations and the other request parameters, the actual number of recommendations may be lower than this value.
18
- */
19
- maxRecommendations?: number;
20
-
21
- queryParameters?: RecommendSearchParams;
22
- };