algoliasearch 5.0.0-alpha.106 → 5.0.0-alpha.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/algoliasearch/builds/browser.d.ts +2 -2
- package/dist/algoliasearch/builds/node.d.ts +2 -2
- package/dist/algoliasearch.cjs +191 -191
- package/dist/algoliasearch.esm.browser.js +191 -191
- package/dist/algoliasearch.esm.node.js +191 -191
- package/dist/algoliasearch.umd.js +2 -2
- package/dist/client-abtesting/model/aBTestResponse.d.ts +1 -1
- package/dist/client-abtesting/model/clientMethodProps.d.ts +2 -2
- package/dist/client-abtesting/src/abtestingClient.d.ts +3 -3
- package/dist/client-analytics/model/clientMethodProps.d.ts +65 -65
- package/dist/client-analytics/model/searchNoResultEvent.d.ts +1 -1
- package/dist/client-analytics/model/topSearch.d.ts +1 -1
- package/dist/client-analytics/model/topSearchWithAnalytics.d.ts +1 -1
- package/dist/client-analytics/src/analyticsClient.d.ts +66 -66
- package/dist/client-personalization/src/personalizationClient.d.ts +1 -1
- package/dist/client-search/model/acl.d.ts +1 -1
- package/dist/client-search/model/action.d.ts +1 -1
- package/dist/client-search/model/addApiKeyResponse.d.ts +1 -1
- package/dist/client-search/model/anchoring.d.ts +1 -1
- package/dist/client-search/model/apiKey.d.ts +8 -8
- package/dist/client-search/model/aroundPrecision.d.ts +1 -1
- package/dist/client-search/model/aroundPrecisionFromValueInner.d.ts +9 -0
- package/dist/client-search/model/aroundPrecisionFromValueInner.d.ts.map +1 -1
- package/dist/client-search/model/aroundRadius.d.ts +1 -1
- package/dist/client-search/model/aroundRadiusAll.d.ts +3 -0
- package/dist/client-search/model/aroundRadiusAll.d.ts.map +1 -1
- package/dist/client-search/model/automaticFacetFilter.d.ts +4 -4
- package/dist/client-search/model/automaticFacetFilters.d.ts +1 -1
- package/dist/client-search/model/baseIndexSettings.d.ts +22 -17
- package/dist/client-search/model/baseIndexSettings.d.ts.map +1 -1
- package/dist/client-search/model/baseSearchParamsWithoutQuery.d.ts +24 -28
- package/dist/client-search/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
- package/dist/client-search/model/baseSearchResponse.d.ts +6 -6
- package/dist/client-search/model/batchDictionaryEntriesParams.d.ts +3 -3
- package/dist/client-search/model/batchResponse.d.ts +2 -2
- package/dist/client-search/model/builtInOperation.d.ts +2 -2
- package/dist/client-search/model/builtInOperationType.d.ts +1 -1
- package/dist/client-search/model/clientMethodProps.d.ts +63 -63
- package/dist/client-search/model/condition.d.ts +7 -3
- package/dist/client-search/model/condition.d.ts.map +1 -1
- package/dist/client-search/model/consequence.d.ts +5 -5
- package/dist/client-search/model/consequenceHide.d.ts +2 -2
- package/dist/client-search/model/consequenceQuery.d.ts +1 -1
- package/dist/client-search/model/consequenceQueryObject.d.ts +2 -2
- package/dist/client-search/model/createdAtResponse.d.ts +1 -1
- package/dist/client-search/model/cursor.d.ts +1 -1
- package/dist/client-search/model/deleteByParams.d.ts +4 -4
- package/dist/client-search/model/deletedAtResponse.d.ts +1 -1
- package/dist/client-search/model/dictionaryEntry.d.ts +6 -8
- package/dist/client-search/model/dictionaryEntry.d.ts.map +1 -1
- package/dist/client-search/model/dictionaryEntryState.d.ts +1 -1
- package/dist/client-search/model/dictionaryLanguage.d.ts +2 -2
- package/dist/client-search/model/dictionarySettingsParams.d.ts +1 -1
- package/dist/client-search/model/distinct.d.ts +1 -1
- package/dist/client-search/model/edit.d.ts +1 -1
- package/dist/client-search/model/exactOnSingleWordQuery.d.ts +1 -1
- package/dist/client-search/model/facetFilters.d.ts +1 -1
- package/dist/client-search/model/facetHits.d.ts +2 -2
- package/dist/client-search/model/facetOrdering.d.ts +2 -2
- package/dist/client-search/model/facets.d.ts +2 -2
- package/dist/client-search/model/getObjectsRequest.d.ts +3 -3
- package/dist/client-search/model/getObjectsResponse.d.ts +1 -1
- package/dist/client-search/model/hasPendingMappingsResponse.d.ts +1 -1
- package/dist/client-search/model/highlightResultOption.d.ts +3 -3
- package/dist/client-search/model/hit.d.ts +4 -4
- package/dist/client-search/model/ignorePlurals.d.ts +3 -2
- package/dist/client-search/model/ignorePlurals.d.ts.map +1 -1
- package/dist/client-search/model/index.d.ts +2 -0
- package/dist/client-search/model/index.d.ts.map +1 -1
- package/dist/client-search/model/indexSettings.d.ts +1 -1
- package/dist/client-search/model/indexSettingsAsSearchParams.d.ts +32 -35
- package/dist/client-search/model/indexSettingsAsSearchParams.d.ts.map +1 -1
- package/dist/client-search/model/log.d.ts +11 -11
- package/dist/client-search/model/logQuery.d.ts +1 -1
- package/dist/client-search/model/matchLevel.d.ts +1 -1
- package/dist/client-search/model/mode.d.ts +1 -1
- package/dist/client-search/model/multipleBatchResponse.d.ts +2 -2
- package/dist/client-search/model/numericFilters.d.ts +1 -1
- package/dist/client-search/model/operationIndexParams.d.ts +2 -2
- package/dist/client-search/model/operationType.d.ts +1 -1
- package/dist/client-search/model/optionalFilters.d.ts +1 -1
- package/dist/client-search/model/params.d.ts +1 -1
- package/dist/client-search/model/promoteObjectID.d.ts +2 -2
- package/dist/client-search/model/promoteObjectIDs.d.ts +2 -2
- package/dist/client-search/model/queryType.d.ts +1 -1
- package/dist/client-search/model/rankingInfo.d.ts +10 -7
- package/dist/client-search/model/rankingInfo.d.ts.map +1 -1
- package/dist/client-search/model/reRankingApplyFilter.d.ts +1 -1
- package/dist/client-search/model/removeStopWords.d.ts +3 -2
- package/dist/client-search/model/removeStopWords.d.ts.map +1 -1
- package/dist/client-search/model/removeWordsIfNoResults.d.ts +1 -1
- package/dist/client-search/model/renderingContent.d.ts +1 -1
- package/dist/client-search/model/rule.d.ts +5 -5
- package/dist/client-search/model/saveObjectResponse.d.ts +3 -3
- package/dist/client-search/model/saveSynonymResponse.d.ts +1 -1
- package/dist/client-search/model/searchDictionaryEntriesParams.d.ts +5 -7
- package/dist/client-search/model/searchDictionaryEntriesParams.d.ts.map +1 -1
- package/dist/client-search/model/searchDictionaryEntriesResponse.d.ts +20 -0
- package/dist/client-search/model/searchDictionaryEntriesResponse.d.ts.map +1 -0
- package/dist/client-search/model/searchForFacetValuesRequest.d.ts +1 -1
- package/dist/client-search/model/searchForFacetValuesResponse.d.ts +3 -0
- package/dist/client-search/model/searchForFacetValuesResponse.d.ts.map +1 -1
- package/dist/client-search/model/searchForFacetsOptions.d.ts +2 -2
- package/dist/client-search/model/searchForHitsOptions.d.ts +1 -1
- package/dist/client-search/model/searchHits.d.ts +4 -1
- package/dist/client-search/model/searchHits.d.ts.map +1 -1
- package/dist/client-search/model/searchParamsQuery.d.ts +1 -1
- package/dist/client-search/model/searchRulesParams.d.ts +4 -8
- package/dist/client-search/model/searchRulesParams.d.ts.map +1 -1
- package/dist/client-search/model/searchRulesResponse.d.ts +2 -2
- package/dist/client-search/model/searchStrategy.d.ts +1 -1
- package/dist/client-search/model/searchSynonymsParams.d.ts +2 -2
- package/dist/client-search/model/searchSynonymsResponse.d.ts +2 -2
- package/dist/client-search/model/searchUserIdsParams.d.ts +1 -1
- package/dist/client-search/model/searchUserIdsResponse.d.ts +2 -2
- package/dist/client-search/model/securedAPIKeyRestrictions.d.ts +5 -5
- package/dist/client-search/model/semanticSearch.d.ts +2 -2
- package/dist/client-search/model/snippetResultOption.d.ts +2 -2
- package/dist/client-search/model/sortRemainingBy.d.ts +1 -1
- package/dist/client-search/model/supportedLanguage.d.ts +5 -0
- package/dist/client-search/model/supportedLanguage.d.ts.map +1 -0
- package/dist/client-search/model/tagFilters.d.ts +1 -1
- package/dist/client-search/model/taskStatus.d.ts +1 -1
- package/dist/client-search/model/timeRange.d.ts +2 -2
- package/dist/client-search/model/typoTolerance.d.ts +1 -1
- package/dist/client-search/model/typoToleranceEnum.d.ts +3 -0
- package/dist/client-search/model/typoToleranceEnum.d.ts.map +1 -1
- package/dist/client-search/model/updatedAtResponse.d.ts +1 -1
- package/dist/client-search/model/updatedAtWithObjectIdResponse.d.ts +2 -2
- package/dist/client-search/model/updatedRuleResponse.d.ts +2 -2
- package/dist/client-search/model/userHit.d.ts +1 -1
- package/dist/client-search/model/userId.d.ts +1 -1
- package/dist/client-search/model/value.d.ts +1 -1
- package/dist/client-search/src/searchClient.d.ts +124 -123
- package/dist/client-search/src/searchClient.d.ts.map +1 -1
- package/dist/lite/lite.cjs +3 -3
- package/dist/lite/lite.esm.browser.js +3 -3
- package/dist/lite/lite.esm.node.js +3 -3
- package/dist/lite/lite.umd.js +2 -2
- package/dist/lite/model/acl.d.ts +1 -1
- package/dist/lite/model/action.d.ts +1 -1
- package/dist/lite/model/addApiKeyResponse.d.ts +1 -1
- package/dist/lite/model/anchoring.d.ts +1 -1
- package/dist/lite/model/apiKey.d.ts +8 -8
- package/dist/lite/model/aroundPrecision.d.ts +1 -1
- package/dist/lite/model/aroundPrecisionFromValueInner.d.ts +9 -0
- package/dist/lite/model/aroundPrecisionFromValueInner.d.ts.map +1 -1
- package/dist/lite/model/aroundRadius.d.ts +1 -1
- package/dist/lite/model/aroundRadiusAll.d.ts +3 -0
- package/dist/lite/model/aroundRadiusAll.d.ts.map +1 -1
- package/dist/lite/model/automaticFacetFilter.d.ts +4 -4
- package/dist/lite/model/automaticFacetFilters.d.ts +1 -1
- package/dist/lite/model/baseIndexSettings.d.ts +22 -17
- package/dist/lite/model/baseIndexSettings.d.ts.map +1 -1
- package/dist/lite/model/baseSearchParamsWithoutQuery.d.ts +24 -28
- package/dist/lite/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
- package/dist/lite/model/baseSearchResponse.d.ts +6 -6
- package/dist/lite/model/builtInOperation.d.ts +2 -2
- package/dist/lite/model/builtInOperationType.d.ts +1 -1
- package/dist/lite/model/condition.d.ts +7 -3
- package/dist/lite/model/condition.d.ts.map +1 -1
- package/dist/lite/model/consequence.d.ts +5 -5
- package/dist/lite/model/consequenceHide.d.ts +2 -2
- package/dist/lite/model/consequenceQuery.d.ts +1 -1
- package/dist/lite/model/consequenceQueryObject.d.ts +2 -2
- package/dist/lite/model/cursor.d.ts +1 -1
- package/dist/lite/model/deleteByParams.d.ts +4 -4
- package/dist/lite/model/dictionaryEntry.d.ts +6 -8
- package/dist/lite/model/dictionaryEntry.d.ts.map +1 -1
- package/dist/lite/model/dictionaryEntryState.d.ts +1 -1
- package/dist/lite/model/dictionaryLanguage.d.ts +2 -2
- package/dist/lite/model/distinct.d.ts +1 -1
- package/dist/lite/model/edit.d.ts +1 -1
- package/dist/lite/model/exactOnSingleWordQuery.d.ts +1 -1
- package/dist/lite/model/facetFilters.d.ts +1 -1
- package/dist/lite/model/facetHits.d.ts +2 -2
- package/dist/lite/model/facetOrdering.d.ts +2 -2
- package/dist/lite/model/facets.d.ts +2 -2
- package/dist/lite/model/highlightResultOption.d.ts +3 -3
- package/dist/lite/model/hit.d.ts +4 -4
- package/dist/lite/model/ignorePlurals.d.ts +3 -2
- package/dist/lite/model/ignorePlurals.d.ts.map +1 -1
- package/dist/lite/model/index.d.ts +2 -0
- package/dist/lite/model/index.d.ts.map +1 -1
- package/dist/lite/model/indexSettings.d.ts +1 -1
- package/dist/lite/model/indexSettingsAsSearchParams.d.ts +32 -35
- package/dist/lite/model/indexSettingsAsSearchParams.d.ts.map +1 -1
- package/dist/lite/model/matchLevel.d.ts +1 -1
- package/dist/lite/model/mode.d.ts +1 -1
- package/dist/lite/model/numericFilters.d.ts +1 -1
- package/dist/lite/model/operationType.d.ts +1 -1
- package/dist/lite/model/optionalFilters.d.ts +1 -1
- package/dist/lite/model/params.d.ts +1 -1
- package/dist/lite/model/promoteObjectID.d.ts +2 -2
- package/dist/lite/model/promoteObjectIDs.d.ts +2 -2
- package/dist/lite/model/queryType.d.ts +1 -1
- package/dist/lite/model/rankingInfo.d.ts +10 -7
- package/dist/lite/model/rankingInfo.d.ts.map +1 -1
- package/dist/lite/model/reRankingApplyFilter.d.ts +1 -1
- package/dist/lite/model/removeStopWords.d.ts +3 -2
- package/dist/lite/model/removeStopWords.d.ts.map +1 -1
- package/dist/lite/model/removeWordsIfNoResults.d.ts +1 -1
- package/dist/lite/model/renderingContent.d.ts +1 -1
- package/dist/lite/model/rule.d.ts +5 -5
- package/dist/lite/model/searchDictionaryEntriesResponse.d.ts +20 -0
- package/dist/lite/model/searchDictionaryEntriesResponse.d.ts.map +1 -0
- package/dist/lite/model/searchForFacetValuesResponse.d.ts +3 -0
- package/dist/lite/model/searchForFacetValuesResponse.d.ts.map +1 -1
- package/dist/lite/model/searchForFacetsOptions.d.ts +2 -2
- package/dist/lite/model/searchForHitsOptions.d.ts +1 -1
- package/dist/lite/model/searchHits.d.ts +4 -1
- package/dist/lite/model/searchHits.d.ts.map +1 -1
- package/dist/lite/model/searchParamsQuery.d.ts +1 -1
- package/dist/lite/model/searchStrategy.d.ts +1 -1
- package/dist/lite/model/searchSynonymsResponse.d.ts +2 -2
- package/dist/lite/model/securedAPIKeyRestrictions.d.ts +5 -5
- package/dist/lite/model/semanticSearch.d.ts +2 -2
- package/dist/lite/model/snippetResultOption.d.ts +2 -2
- package/dist/lite/model/sortRemainingBy.d.ts +1 -1
- package/dist/lite/model/supportedLanguage.d.ts +5 -0
- package/dist/lite/model/supportedLanguage.d.ts.map +1 -0
- package/dist/lite/model/tagFilters.d.ts +1 -1
- package/dist/lite/model/taskStatus.d.ts +1 -1
- package/dist/lite/model/timeRange.d.ts +2 -2
- package/dist/lite/model/typoTolerance.d.ts +1 -1
- package/dist/lite/model/typoToleranceEnum.d.ts +3 -0
- package/dist/lite/model/typoToleranceEnum.d.ts.map +1 -1
- package/dist/lite/model/updatedRuleResponse.d.ts +2 -2
- package/dist/lite/model/userId.d.ts +1 -1
- package/dist/lite/model/value.d.ts +1 -1
- package/dist/lite/src/liteClient.d.ts +3 -3
- package/dist/lite/src/liteClient.d.ts.map +1 -1
- package/lite/model/acl.ts +1 -1
- package/lite/model/action.ts +1 -1
- package/lite/model/addApiKeyResponse.ts +1 -1
- package/lite/model/anchoring.ts +1 -1
- package/lite/model/apiKey.ts +8 -8
- package/lite/model/aroundPrecision.ts +1 -1
- package/lite/model/aroundPrecisionFromValueInner.ts +9 -0
- package/lite/model/aroundRadius.ts +1 -1
- package/lite/model/aroundRadiusAll.ts +3 -0
- package/lite/model/automaticFacetFilter.ts +4 -4
- package/lite/model/automaticFacetFilters.ts +1 -1
- package/lite/model/baseIndexSettings.ts +24 -17
- package/lite/model/baseSearchParamsWithoutQuery.ts +24 -29
- package/lite/model/baseSearchResponse.ts +6 -6
- package/lite/model/builtInOperation.ts +2 -2
- package/lite/model/builtInOperationType.ts +1 -1
- package/lite/model/condition.ts +8 -3
- package/lite/model/consequence.ts +5 -5
- package/lite/model/consequenceHide.ts +2 -2
- package/lite/model/consequenceQuery.ts +1 -1
- package/lite/model/consequenceQueryObject.ts +2 -2
- package/lite/model/cursor.ts +1 -1
- package/lite/model/deleteByParams.ts +4 -4
- package/lite/model/dictionaryEntry.ts +6 -8
- package/lite/model/dictionaryEntryState.ts +1 -1
- package/lite/model/dictionaryLanguage.ts +2 -2
- package/lite/model/distinct.ts +1 -1
- package/lite/model/edit.ts +1 -1
- package/lite/model/exactOnSingleWordQuery.ts +1 -1
- package/lite/model/facetFilters.ts +1 -1
- package/lite/model/facetHits.ts +2 -2
- package/lite/model/facetOrdering.ts +2 -2
- package/lite/model/facets.ts +2 -2
- package/lite/model/highlightResultOption.ts +3 -3
- package/lite/model/hit.ts +4 -4
- package/lite/model/ignorePlurals.ts +4 -2
- package/lite/model/index.ts +2 -0
- package/lite/model/indexSettings.ts +1 -1
- package/lite/model/indexSettingsAsSearchParams.ts +32 -36
- package/lite/model/matchLevel.ts +1 -1
- package/lite/model/mode.ts +1 -1
- package/lite/model/numericFilters.ts +1 -1
- package/lite/model/operationType.ts +1 -1
- package/lite/model/optionalFilters.ts +1 -1
- package/lite/model/params.ts +1 -1
- package/lite/model/promoteObjectID.ts +2 -2
- package/lite/model/promoteObjectIDs.ts +2 -2
- package/lite/model/queryType.ts +1 -1
- package/lite/model/rankingInfo.ts +10 -7
- package/lite/model/reRankingApplyFilter.ts +1 -1
- package/lite/model/removeStopWords.ts +4 -2
- package/lite/model/removeWordsIfNoResults.ts +1 -1
- package/lite/model/renderingContent.ts +1 -1
- package/lite/model/rule.ts +5 -5
- package/lite/model/searchDictionaryEntriesResponse.ts +25 -0
- package/lite/model/searchForFacetValuesResponse.ts +3 -0
- package/lite/model/searchForFacetsOptions.ts +2 -2
- package/lite/model/searchForHitsOptions.ts +1 -1
- package/lite/model/searchHits.ts +4 -1
- package/lite/model/searchParamsQuery.ts +1 -1
- package/lite/model/searchStrategy.ts +1 -1
- package/lite/model/searchSynonymsResponse.ts +2 -2
- package/lite/model/securedAPIKeyRestrictions.ts +5 -5
- package/lite/model/semanticSearch.ts +2 -2
- package/lite/model/snippetResultOption.ts +2 -2
- package/lite/model/sortRemainingBy.ts +1 -1
- package/lite/model/supportedLanguage.ts +74 -0
- package/lite/model/tagFilters.ts +1 -1
- package/lite/model/taskStatus.ts +1 -1
- package/lite/model/timeRange.ts +2 -2
- package/lite/model/typoTolerance.ts +1 -1
- package/lite/model/typoToleranceEnum.ts +3 -0
- package/lite/model/updatedRuleResponse.ts +2 -2
- package/lite/model/userId.ts +1 -1
- package/lite/model/value.ts +1 -1
- package/lite/src/liteClient.ts +3 -3
- package/package.json +11 -11
|
@@ -30,6 +30,7 @@ import type { ReplaceSourceResponse } from '../model/replaceSourceResponse';
|
|
|
30
30
|
import type { Rule } from '../model/rule';
|
|
31
31
|
import type { SaveObjectResponse } from '../model/saveObjectResponse';
|
|
32
32
|
import type { SaveSynonymResponse } from '../model/saveSynonymResponse';
|
|
33
|
+
import type { SearchDictionaryEntriesResponse } from '../model/searchDictionaryEntriesResponse';
|
|
33
34
|
import type { SearchForFacetValuesResponse } from '../model/searchForFacetValuesResponse';
|
|
34
35
|
import type { SearchMethodParams } from '../model/searchMethodParams';
|
|
35
36
|
import type { SearchResponse } from '../model/searchResponse';
|
|
@@ -45,7 +46,7 @@ import type { UpdatedAtResponse } from '../model/updatedAtResponse';
|
|
|
45
46
|
import type { UpdatedAtWithObjectIdResponse } from '../model/updatedAtWithObjectIdResponse';
|
|
46
47
|
import type { UpdatedRuleResponse } from '../model/updatedRuleResponse';
|
|
47
48
|
import type { UserId } from '../model/userId';
|
|
48
|
-
export declare const apiClientVersion = "5.0.0-alpha.
|
|
49
|
+
export declare const apiClientVersion = "5.0.0-alpha.108";
|
|
49
50
|
export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
|
|
50
51
|
transporter: import("@algolia/client-common").Transporter;
|
|
51
52
|
/**
|
|
@@ -103,7 +104,7 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
|
|
|
103
104
|
* @param browseObjects.aggregator - The function that runs right after the API call has been resolved, allows you to do anything with the response before `validate`.
|
|
104
105
|
* @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `browse` method and merged with the transporter requestOptions.
|
|
105
106
|
*/
|
|
106
|
-
browseObjects<T>({ indexName, browseParams, ...browseObjectsOptions }:
|
|
107
|
+
browseObjects<T>({ indexName, browseParams, ...browseObjectsOptions }: BrowseOptions<BrowseResponse<T>> & BrowseProps, requestOptions?: RequestOptions): Promise<BrowseResponse<T>>;
|
|
107
108
|
/**
|
|
108
109
|
* Helper: Iterate on the `searchRules` method of the client to allow aggregating rules of an index.
|
|
109
110
|
*
|
|
@@ -175,7 +176,7 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
|
|
|
175
176
|
*/
|
|
176
177
|
replaceAllObjects({ indexName, objects, batchSize }: ReplaceAllObjectsOptions, requestOptions?: RequestOptions): Promise<ReplaceAllObjectsResponse>;
|
|
177
178
|
/**
|
|
178
|
-
*
|
|
179
|
+
* Creates a new API key with specific permissions and restrictions.
|
|
179
180
|
*
|
|
180
181
|
* Required API Key ACLs:
|
|
181
182
|
* - admin.
|
|
@@ -185,20 +186,20 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
|
|
|
185
186
|
*/
|
|
186
187
|
addApiKey(apiKey: ApiKey, requestOptions?: RequestOptions): Promise<AddApiKeyResponse>;
|
|
187
188
|
/**
|
|
188
|
-
* If
|
|
189
|
+
* If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index. To update _some_ attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
|
|
189
190
|
*
|
|
190
191
|
* Required API Key ACLs:
|
|
191
192
|
* - addObject.
|
|
192
193
|
*
|
|
193
194
|
* @param addOrUpdateObject - The addOrUpdateObject object.
|
|
194
|
-
* @param addOrUpdateObject.indexName -
|
|
195
|
-
* @param addOrUpdateObject.objectID - Unique record
|
|
196
|
-
* @param addOrUpdateObject.body -
|
|
195
|
+
* @param addOrUpdateObject.indexName - Name of the index on which to perform the operation.
|
|
196
|
+
* @param addOrUpdateObject.objectID - Unique record identifier.
|
|
197
|
+
* @param addOrUpdateObject.body - The record, a schemaless object with attributes that are useful in the context of search and discovery.
|
|
197
198
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
198
199
|
*/
|
|
199
200
|
addOrUpdateObject({ indexName, objectID, body }: AddOrUpdateObjectProps, requestOptions?: RequestOptions): Promise<UpdatedAtWithObjectIdResponse>;
|
|
200
201
|
/**
|
|
201
|
-
*
|
|
202
|
+
* Adds a source to the list of allowed sources.
|
|
202
203
|
*
|
|
203
204
|
* Required API Key ACLs:
|
|
204
205
|
* - admin.
|
|
@@ -208,94 +209,94 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
|
|
|
208
209
|
*/
|
|
209
210
|
appendSource(source: Source, requestOptions?: RequestOptions): Promise<CreatedAtResponse>;
|
|
210
211
|
/**
|
|
211
|
-
*
|
|
212
|
+
* Assigns or moves a user ID to a cluster. The time it takes to move a user is proportional to the amount of data linked to the user ID.
|
|
212
213
|
*
|
|
213
214
|
* Required API Key ACLs:
|
|
214
215
|
* - admin.
|
|
215
216
|
*
|
|
216
217
|
* @param assignUserId - The assignUserId object.
|
|
217
|
-
* @param assignUserId.xAlgoliaUserID -
|
|
218
|
+
* @param assignUserId.xAlgoliaUserID - User ID to assign.
|
|
218
219
|
* @param assignUserId.assignUserIdParams - The assignUserIdParams object.
|
|
219
220
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
220
221
|
*/
|
|
221
222
|
assignUserId({ xAlgoliaUserID, assignUserIdParams }: AssignUserIdProps, requestOptions?: RequestOptions): Promise<CreatedAtResponse>;
|
|
222
223
|
/**
|
|
223
|
-
*
|
|
224
|
+
* Adds, updates, or deletes records in one index with a single API request. Batching index updates reduces latency and increases data integrity. - Actions are applied in the order they\'re specified. - Actions are equivalent to the individual API requests of the same name.
|
|
224
225
|
*
|
|
225
226
|
* @param batch - The batch object.
|
|
226
|
-
* @param batch.indexName -
|
|
227
|
+
* @param batch.indexName - Name of the index on which to perform the operation.
|
|
227
228
|
* @param batch.batchWriteParams - The batchWriteParams object.
|
|
228
229
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
229
230
|
*/
|
|
230
231
|
batch({ indexName, batchWriteParams }: BatchProps, requestOptions?: RequestOptions): Promise<BatchResponse>;
|
|
231
232
|
/**
|
|
232
|
-
*
|
|
233
|
+
* Assigns multiple user IDs to a cluster. **You can\'t move users with this operation**.
|
|
233
234
|
*
|
|
234
235
|
* Required API Key ACLs:
|
|
235
236
|
* - admin.
|
|
236
237
|
*
|
|
237
238
|
* @param batchAssignUserIds - The batchAssignUserIds object.
|
|
238
|
-
* @param batchAssignUserIds.xAlgoliaUserID -
|
|
239
|
+
* @param batchAssignUserIds.xAlgoliaUserID - User ID to assign.
|
|
239
240
|
* @param batchAssignUserIds.batchAssignUserIdsParams - The batchAssignUserIdsParams object.
|
|
240
241
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
241
242
|
*/
|
|
242
243
|
batchAssignUserIds({ xAlgoliaUserID, batchAssignUserIdsParams }: BatchAssignUserIdsProps, requestOptions?: RequestOptions): Promise<CreatedAtResponse>;
|
|
243
244
|
/**
|
|
244
|
-
*
|
|
245
|
+
* Adds or deletes multiple entries from your plurals, segmentation, or stop word dictionaries.
|
|
245
246
|
*
|
|
246
247
|
* Required API Key ACLs:
|
|
247
248
|
* - editSettings.
|
|
248
249
|
*
|
|
249
250
|
* @param batchDictionaryEntries - The batchDictionaryEntries object.
|
|
250
|
-
* @param batchDictionaryEntries.dictionaryName - Dictionary to search
|
|
251
|
+
* @param batchDictionaryEntries.dictionaryName - Dictionary type in which to search.
|
|
251
252
|
* @param batchDictionaryEntries.batchDictionaryEntriesParams - The batchDictionaryEntriesParams object.
|
|
252
253
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
253
254
|
*/
|
|
254
255
|
batchDictionaryEntries({ dictionaryName, batchDictionaryEntriesParams, }: BatchDictionaryEntriesProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
255
256
|
/**
|
|
256
|
-
*
|
|
257
|
+
* Retrieves records from an index, up to 1,000 per request. While searching retrieves _hits_ (records augmented with attributes for highlighting and ranking details), browsing _just_ returns matching records. This can be useful if you want to export your indices. - The Analytics API doesn\'t collect data when using `browse`. - Records are ranked by attributes and custom ranking. - Deduplication (`distinct`) is turned off. - There\'s no ranking for: typo-tolerance, number of matched words, proximity, geo distance.
|
|
257
258
|
*
|
|
258
259
|
* Required API Key ACLs:
|
|
259
260
|
* - browse.
|
|
260
261
|
*
|
|
261
262
|
* @param browse - The browse object.
|
|
262
|
-
* @param browse.indexName -
|
|
263
|
+
* @param browse.indexName - Name of the index on which to perform the operation.
|
|
263
264
|
* @param browse.browseParams - The browseParams object.
|
|
264
265
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
265
266
|
*/
|
|
266
267
|
browse<T_2>({ indexName, browseParams }: BrowseProps, requestOptions?: RequestOptions): Promise<BrowseResponse<T_2>>;
|
|
267
268
|
/**
|
|
268
|
-
*
|
|
269
|
+
* Deletes only the records from an index while keeping settings, synonyms, and rules.
|
|
269
270
|
*
|
|
270
271
|
* Required API Key ACLs:
|
|
271
272
|
* - deleteIndex.
|
|
272
273
|
*
|
|
273
274
|
* @param clearObjects - The clearObjects object.
|
|
274
|
-
* @param clearObjects.indexName -
|
|
275
|
+
* @param clearObjects.indexName - Name of the index on which to perform the operation.
|
|
275
276
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
276
277
|
*/
|
|
277
278
|
clearObjects({ indexName }: ClearObjectsProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
278
279
|
/**
|
|
279
|
-
*
|
|
280
|
+
* Deletes all rules from the index.
|
|
280
281
|
*
|
|
281
282
|
* Required API Key ACLs:
|
|
282
283
|
* - editSettings.
|
|
283
284
|
*
|
|
284
285
|
* @param clearRules - The clearRules object.
|
|
285
|
-
* @param clearRules.indexName -
|
|
286
|
-
* @param clearRules.forwardToReplicas -
|
|
286
|
+
* @param clearRules.indexName - Name of the index on which to perform the operation.
|
|
287
|
+
* @param clearRules.forwardToReplicas - Whether changes are applied to replica indices.
|
|
287
288
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
288
289
|
*/
|
|
289
290
|
clearRules({ indexName, forwardToReplicas }: ClearRulesProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
290
291
|
/**
|
|
291
|
-
*
|
|
292
|
+
* Deletes all synonyms from the index.
|
|
292
293
|
*
|
|
293
294
|
* Required API Key ACLs:
|
|
294
295
|
* - editSettings.
|
|
295
296
|
*
|
|
296
297
|
* @param clearSynonyms - The clearSynonyms object.
|
|
297
|
-
* @param clearSynonyms.indexName -
|
|
298
|
-
* @param clearSynonyms.forwardToReplicas -
|
|
298
|
+
* @param clearSynonyms.indexName - Name of the index on which to perform the operation.
|
|
299
|
+
* @param clearSynonyms.forwardToReplicas - Whether changes are applied to replica indices.
|
|
299
300
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
300
301
|
*/
|
|
301
302
|
clearSynonyms({ indexName, forwardToReplicas }: ClearSynonymsProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
@@ -338,7 +339,7 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
|
|
|
338
339
|
*/
|
|
339
340
|
customPut({ path, parameters, body }: CustomPutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
340
341
|
/**
|
|
341
|
-
*
|
|
342
|
+
* Deletes the API key.
|
|
342
343
|
*
|
|
343
344
|
* Required API Key ACLs:
|
|
344
345
|
* - admin.
|
|
@@ -349,55 +350,55 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
|
|
|
349
350
|
*/
|
|
350
351
|
deleteApiKey({ key }: DeleteApiKeyProps, requestOptions?: RequestOptions): Promise<DeleteApiKeyResponse>;
|
|
351
352
|
/**
|
|
352
|
-
* This operation doesn\'t
|
|
353
|
+
* This operation doesn\'t accept empty queries or filters. It\'s more efficient to get a list of object IDs with the [`browse` operation](#tag/Search/operation/browse), and then delete the records using the [`batch` operation](tag/Records/operation/batch).
|
|
353
354
|
*
|
|
354
355
|
* Required API Key ACLs:
|
|
355
356
|
* - deleteIndex.
|
|
356
357
|
*
|
|
357
358
|
* @param deleteBy - The deleteBy object.
|
|
358
|
-
* @param deleteBy.indexName -
|
|
359
|
+
* @param deleteBy.indexName - Name of the index on which to perform the operation.
|
|
359
360
|
* @param deleteBy.deleteByParams - The deleteByParams object.
|
|
360
361
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
361
362
|
*/
|
|
362
363
|
deleteBy({ indexName, deleteByParams }: DeleteByProps, requestOptions?: RequestOptions): Promise<DeletedAtResponse>;
|
|
363
364
|
/**
|
|
364
|
-
*
|
|
365
|
+
* Deletes an index and all its settings. - Deleting an index doesn\'t delete its analytics data. - If you try to delete a non-existing index, the operation is ignored without warning. - If the index you want to delete has replica indices, the replicas become independent indices. - If the index you want to delete is a replica index, you must first unlink it from its primary index before you can delete it. For more information, see [Delete replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/how-to/deleting-replicas/).
|
|
365
366
|
*
|
|
366
367
|
* Required API Key ACLs:
|
|
367
368
|
* - deleteIndex.
|
|
368
369
|
*
|
|
369
370
|
* @param deleteIndex - The deleteIndex object.
|
|
370
|
-
* @param deleteIndex.indexName -
|
|
371
|
+
* @param deleteIndex.indexName - Name of the index on which to perform the operation.
|
|
371
372
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
372
373
|
*/
|
|
373
374
|
deleteIndex({ indexName }: DeleteIndexProps, requestOptions?: RequestOptions): Promise<DeletedAtResponse>;
|
|
374
375
|
/**
|
|
375
|
-
* To delete
|
|
376
|
+
* Deletes a record by its object ID. To delete more than one record, use the [`batch` operation](#tag/Records/operation/batch). To delete records matching a query, use the [`deleteByQuery` operation](#tag/Records/operation/deleteBy).
|
|
376
377
|
*
|
|
377
378
|
* Required API Key ACLs:
|
|
378
379
|
* - deleteObject.
|
|
379
380
|
*
|
|
380
381
|
* @param deleteObject - The deleteObject object.
|
|
381
|
-
* @param deleteObject.indexName -
|
|
382
|
-
* @param deleteObject.objectID - Unique record
|
|
382
|
+
* @param deleteObject.indexName - Name of the index on which to perform the operation.
|
|
383
|
+
* @param deleteObject.objectID - Unique record identifier.
|
|
383
384
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
384
385
|
*/
|
|
385
386
|
deleteObject({ indexName, objectID }: DeleteObjectProps, requestOptions?: RequestOptions): Promise<DeletedAtResponse>;
|
|
386
387
|
/**
|
|
387
|
-
*
|
|
388
|
+
* Deletes a rule by its ID. To find the object ID for rules, use the [`search` operation](#tag/Rules/operation/searchRules).
|
|
388
389
|
*
|
|
389
390
|
* Required API Key ACLs:
|
|
390
391
|
* - editSettings.
|
|
391
392
|
*
|
|
392
393
|
* @param deleteRule - The deleteRule object.
|
|
393
|
-
* @param deleteRule.indexName -
|
|
394
|
+
* @param deleteRule.indexName - Name of the index on which to perform the operation.
|
|
394
395
|
* @param deleteRule.objectID - Unique identifier of a rule object.
|
|
395
|
-
* @param deleteRule.forwardToReplicas -
|
|
396
|
+
* @param deleteRule.forwardToReplicas - Whether changes are applied to replica indices.
|
|
396
397
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
397
398
|
*/
|
|
398
399
|
deleteRule({ indexName, objectID, forwardToReplicas }: DeleteRuleProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
399
400
|
/**
|
|
400
|
-
*
|
|
401
|
+
* Deletes a source from the list of allowed sources.
|
|
401
402
|
*
|
|
402
403
|
* Required API Key ACLs:
|
|
403
404
|
* - admin.
|
|
@@ -408,20 +409,20 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
|
|
|
408
409
|
*/
|
|
409
410
|
deleteSource({ source }: DeleteSourceProps, requestOptions?: RequestOptions): Promise<DeleteSourceResponse>;
|
|
410
411
|
/**
|
|
411
|
-
*
|
|
412
|
+
* Deletes a synonym by its ID. To find the object IDs of your synonyms, use the [`search` operation](#tag/Synonyms/operation/searchSynonyms).
|
|
412
413
|
*
|
|
413
414
|
* Required API Key ACLs:
|
|
414
415
|
* - editSettings.
|
|
415
416
|
*
|
|
416
417
|
* @param deleteSynonym - The deleteSynonym object.
|
|
417
|
-
* @param deleteSynonym.indexName -
|
|
418
|
+
* @param deleteSynonym.indexName - Name of the index on which to perform the operation.
|
|
418
419
|
* @param deleteSynonym.objectID - Unique identifier of a synonym object.
|
|
419
|
-
* @param deleteSynonym.forwardToReplicas -
|
|
420
|
+
* @param deleteSynonym.forwardToReplicas - Whether changes are applied to replica indices.
|
|
420
421
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
421
422
|
*/
|
|
422
423
|
deleteSynonym({ indexName, objectID, forwardToReplicas }: DeleteSynonymProps, requestOptions?: RequestOptions): Promise<DeletedAtResponse>;
|
|
423
424
|
/**
|
|
424
|
-
*
|
|
425
|
+
* Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application\'s keys. When authenticating with other API keys, you can only retrieve information for that key.
|
|
425
426
|
*
|
|
426
427
|
* @param getApiKey - The getApiKey object.
|
|
427
428
|
* @param getApiKey.key - API key.
|
|
@@ -429,7 +430,7 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
|
|
|
429
430
|
*/
|
|
430
431
|
getApiKey({ key }: GetApiKeyProps, requestOptions?: RequestOptions): Promise<GetApiKeyResponse>;
|
|
431
432
|
/**
|
|
432
|
-
* Lists
|
|
433
|
+
* Lists supported languages with their supported dictionary types and number of custom entries.
|
|
433
434
|
*
|
|
434
435
|
* Required API Key ACLs:
|
|
435
436
|
* - settings.
|
|
@@ -438,7 +439,7 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
|
|
|
438
439
|
*/
|
|
439
440
|
getDictionaryLanguages(requestOptions?: RequestOptions): Promise<Record<string, Languages>>;
|
|
440
441
|
/**
|
|
441
|
-
*
|
|
442
|
+
* Retrieves the languages for which standard dictionary entries are turned off.
|
|
442
443
|
*
|
|
443
444
|
* Required API Key ACLs:
|
|
444
445
|
* - settings.
|
|
@@ -447,34 +448,34 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
|
|
|
447
448
|
*/
|
|
448
449
|
getDictionarySettings(requestOptions?: RequestOptions): Promise<GetDictionarySettingsResponse>;
|
|
449
450
|
/**
|
|
450
|
-
* The request must be authenticated by an API key with the [`logs` ACL](https://www.algolia.com/doc/guides/security/api-keys/#access-control-list-acl). Logs are held for the last seven days.
|
|
451
|
+
* The request must be authenticated by an API key with the [`logs` ACL](https://www.algolia.com/doc/guides/security/api-keys/#access-control-list-acl). - Logs are held for the last seven days. - Up to 1,000 API requests per server are logged. - This request counts towards your [operations quota](https://support.algolia.com/hc/en-us/articles/4406981829777-How-does-Algolia-count-records-and-operations-) but doesn\'t appear in the logs itself.
|
|
451
452
|
*
|
|
452
453
|
* Required API Key ACLs:
|
|
453
454
|
* - logs.
|
|
454
455
|
*
|
|
455
456
|
* @param getLogs - The getLogs object.
|
|
456
|
-
* @param getLogs.offset - First log entry to retrieve.
|
|
457
|
+
* @param getLogs.offset - First log entry to retrieve. The most recent entries are listed first.
|
|
457
458
|
* @param getLogs.length - Maximum number of entries to retrieve.
|
|
458
|
-
* @param getLogs.indexName - Index for which log entries
|
|
459
|
-
* @param getLogs.type - Type of log entries to retrieve.
|
|
459
|
+
* @param getLogs.indexName - Index for which to retrieve log entries. By default, log entries are retrieved for all indices.
|
|
460
|
+
* @param getLogs.type - Type of log entries to retrieve. By default, all log entries are retrieved.
|
|
460
461
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
461
462
|
*/
|
|
462
463
|
getLogs({ offset, length, indexName, type }?: GetLogsProps, requestOptions?: RequestOptions | undefined): Promise<GetLogsResponse>;
|
|
463
464
|
/**
|
|
464
|
-
* To
|
|
465
|
+
* Retrieves one record by its object ID. To retrieve more than one record, use the [`objects` operation](#tag/Records/operation/getObjects).
|
|
465
466
|
*
|
|
466
467
|
* Required API Key ACLs:
|
|
467
468
|
* - search.
|
|
468
469
|
*
|
|
469
470
|
* @param getObject - The getObject object.
|
|
470
|
-
* @param getObject.indexName -
|
|
471
|
-
* @param getObject.objectID - Unique record
|
|
472
|
-
* @param getObject.attributesToRetrieve - Attributes to include with the records in the response. This is useful to reduce the size of the API response. By default, all retrievable attributes are returned.
|
|
471
|
+
* @param getObject.indexName - Name of the index on which to perform the operation.
|
|
472
|
+
* @param getObject.objectID - Unique record identifier.
|
|
473
|
+
* @param getObject.attributesToRetrieve - Attributes to include with the records in the response. This is useful to reduce the size of the API response. By default, all retrievable attributes are returned. `objectID` is always retrieved. Attributes included in `unretrievableAttributes` won\'t be retrieved unless the request is authenticated with the admin API key.
|
|
473
474
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
474
475
|
*/
|
|
475
476
|
getObject({ indexName, objectID, attributesToRetrieve }: GetObjectProps, requestOptions?: RequestOptions): Promise<Record<string, string>>;
|
|
476
477
|
/**
|
|
477
|
-
*
|
|
478
|
+
* Retrieves one or more records, potentially from different indices. Records are returned in the same order as the requests.
|
|
478
479
|
*
|
|
479
480
|
* Required API Key ACLs:
|
|
480
481
|
* - search.
|
|
@@ -484,30 +485,30 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
|
|
|
484
485
|
*/
|
|
485
486
|
getObjects<T_3>(getObjectsParams: GetObjectsParams, requestOptions?: RequestOptions): Promise<GetObjectsResponse<T_3>>;
|
|
486
487
|
/**
|
|
487
|
-
*
|
|
488
|
+
* Retrieves a rule by its ID. To find the object ID of rules, use the [`search` operation](#tag/Rules/operation/searchRules).
|
|
488
489
|
*
|
|
489
490
|
* Required API Key ACLs:
|
|
490
491
|
* - settings.
|
|
491
492
|
*
|
|
492
493
|
* @param getRule - The getRule object.
|
|
493
|
-
* @param getRule.indexName -
|
|
494
|
+
* @param getRule.indexName - Name of the index on which to perform the operation.
|
|
494
495
|
* @param getRule.objectID - Unique identifier of a rule object.
|
|
495
496
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
496
497
|
*/
|
|
497
498
|
getRule({ indexName, objectID }: GetRuleProps, requestOptions?: RequestOptions): Promise<Rule>;
|
|
498
499
|
/**
|
|
499
|
-
*
|
|
500
|
+
* Retrieves an object with non-null index settings.
|
|
500
501
|
*
|
|
501
502
|
* Required API Key ACLs:
|
|
502
503
|
* - search.
|
|
503
504
|
*
|
|
504
505
|
* @param getSettings - The getSettings object.
|
|
505
|
-
* @param getSettings.indexName -
|
|
506
|
+
* @param getSettings.indexName - Name of the index on which to perform the operation.
|
|
506
507
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
507
508
|
*/
|
|
508
509
|
getSettings({ indexName }: GetSettingsProps, requestOptions?: RequestOptions): Promise<IndexSettings>;
|
|
509
510
|
/**
|
|
510
|
-
*
|
|
511
|
+
* Retrieves all allowed IP addresses with access to your application.
|
|
511
512
|
*
|
|
512
513
|
* Required API Key ACLs:
|
|
513
514
|
* - admin.
|
|
@@ -516,31 +517,31 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
|
|
|
516
517
|
*/
|
|
517
518
|
getSources(requestOptions?: RequestOptions): Promise<Source[]>;
|
|
518
519
|
/**
|
|
519
|
-
*
|
|
520
|
+
* Retrieves a syonym by its ID. To find the object IDs for your synonyms, use the [`search` operation](#tag/Synonyms/operation/searchSynonyms).
|
|
520
521
|
*
|
|
521
522
|
* Required API Key ACLs:
|
|
522
523
|
* - settings.
|
|
523
524
|
*
|
|
524
525
|
* @param getSynonym - The getSynonym object.
|
|
525
|
-
* @param getSynonym.indexName -
|
|
526
|
+
* @param getSynonym.indexName - Name of the index on which to perform the operation.
|
|
526
527
|
* @param getSynonym.objectID - Unique identifier of a synonym object.
|
|
527
528
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
528
529
|
*/
|
|
529
530
|
getSynonym({ indexName, objectID }: GetSynonymProps, requestOptions?: RequestOptions): Promise<SynonymHit>;
|
|
530
531
|
/**
|
|
531
|
-
*
|
|
532
|
+
* Checks the status of a given task. Indexing tasks are asynchronous. When you add, update, or delete records or indices, a task is created on a queue and completed depending on the load on the server. The indexing tasks\' responses include a task ID that you can use to check the status.
|
|
532
533
|
*
|
|
533
534
|
* Required API Key ACLs:
|
|
534
535
|
* - addObject.
|
|
535
536
|
*
|
|
536
537
|
* @param getTask - The getTask object.
|
|
537
|
-
* @param getTask.indexName -
|
|
538
|
+
* @param getTask.indexName - Name of the index on which to perform the operation.
|
|
538
539
|
* @param getTask.taskID - Unique task identifier.
|
|
539
540
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
540
541
|
*/
|
|
541
542
|
getTask({ indexName, taskID }: GetTaskProps, requestOptions?: RequestOptions): Promise<GetTaskResponse>;
|
|
542
543
|
/**
|
|
543
|
-
* Get the IDs of the 10 users with the highest number of records per cluster.
|
|
544
|
+
* Get the IDs of the 10 users with the highest number of records per cluster. Since it can take a few seconds to get the data from the different clusters, the response isn\'t real-time.
|
|
544
545
|
*
|
|
545
546
|
* Required API Key ACLs:
|
|
546
547
|
* - admin.
|
|
@@ -549,13 +550,13 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
|
|
|
549
550
|
*/
|
|
550
551
|
getTopUserIds(requestOptions?: RequestOptions): Promise<GetTopUserIdsResponse>;
|
|
551
552
|
/**
|
|
552
|
-
* Returns the
|
|
553
|
+
* Returns the user ID data stored in the mapping. Since it can take a few seconds to get the data from the different clusters, the response isn\'t real-time.
|
|
553
554
|
*
|
|
554
555
|
* Required API Key ACLs:
|
|
555
556
|
* - admin.
|
|
556
557
|
*
|
|
557
558
|
* @param getUserId - The getUserId object.
|
|
558
|
-
* @param getUserId.userID -
|
|
559
|
+
* @param getUserId.userID - User ID to assign.
|
|
559
560
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
560
561
|
*/
|
|
561
562
|
getUserId({ userID }: GetUserIdProps, requestOptions?: RequestOptions): Promise<UserId>;
|
|
@@ -566,12 +567,12 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
|
|
|
566
567
|
* - admin.
|
|
567
568
|
*
|
|
568
569
|
* @param hasPendingMappings - The hasPendingMappings object.
|
|
569
|
-
* @param hasPendingMappings.getClusters -
|
|
570
|
+
* @param hasPendingMappings.getClusters - Whether to include the cluster\'s pending mapping state in the response.
|
|
570
571
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
571
572
|
*/
|
|
572
573
|
hasPendingMappings({ getClusters }?: HasPendingMappingsProps, requestOptions?: RequestOptions | undefined): Promise<HasPendingMappingsResponse>;
|
|
573
574
|
/**
|
|
574
|
-
*
|
|
575
|
+
* Lists all API keys associated with your Algolia application, including their permissions and restrictions.
|
|
575
576
|
*
|
|
576
577
|
* Required API Key ACLs:
|
|
577
578
|
* - admin.
|
|
@@ -580,7 +581,7 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
|
|
|
580
581
|
*/
|
|
581
582
|
listApiKeys(requestOptions?: RequestOptions): Promise<ListApiKeysResponse>;
|
|
582
583
|
/**
|
|
583
|
-
*
|
|
584
|
+
* Lists the available clusters in a multi-cluster setup.
|
|
584
585
|
*
|
|
585
586
|
* Required API Key ACLs:
|
|
586
587
|
* - admin.
|
|
@@ -589,75 +590,75 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
|
|
|
589
590
|
*/
|
|
590
591
|
listClusters(requestOptions?: RequestOptions): Promise<ListClustersResponse>;
|
|
591
592
|
/**
|
|
592
|
-
*
|
|
593
|
+
* Lists all indices in the current Algolia application. The request follows any index restrictions of the API key you use to make the request.
|
|
593
594
|
*
|
|
594
595
|
* Required API Key ACLs:
|
|
595
596
|
* - listIndexes.
|
|
596
597
|
*
|
|
597
598
|
* @param listIndices - The listIndices object.
|
|
598
|
-
* @param listIndices.page -
|
|
599
|
-
* @param listIndices.hitsPerPage -
|
|
599
|
+
* @param listIndices.page - Requested page of the API response. If `null`, the API response is not paginated.
|
|
600
|
+
* @param listIndices.hitsPerPage - Number of hits per page.
|
|
600
601
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
601
602
|
*/
|
|
602
603
|
listIndices({ page, hitsPerPage }?: ListIndicesProps, requestOptions?: RequestOptions | undefined): Promise<ListIndicesResponse>;
|
|
603
604
|
/**
|
|
604
|
-
*
|
|
605
|
+
* Lists the userIDs assigned to a multi-cluster application. Since it can take a few seconds to get the data from the different clusters, the response isn\'t real-time.
|
|
605
606
|
*
|
|
606
607
|
* Required API Key ACLs:
|
|
607
608
|
* - admin.
|
|
608
609
|
*
|
|
609
610
|
* @param listUserIds - The listUserIds object.
|
|
610
|
-
* @param listUserIds.page -
|
|
611
|
-
* @param listUserIds.hitsPerPage -
|
|
611
|
+
* @param listUserIds.page - Requested page of the API response. If `null`, the API response is not paginated.
|
|
612
|
+
* @param listUserIds.hitsPerPage - Number of hits per page.
|
|
612
613
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
613
614
|
*/
|
|
614
615
|
listUserIds({ page, hitsPerPage }?: ListUserIdsProps, requestOptions?: RequestOptions | undefined): Promise<ListUserIdsResponse>;
|
|
615
616
|
/**
|
|
616
|
-
*
|
|
617
|
+
* Adds, updates, or deletes records in multiple indices with a single API request. - Actions are applied in the order they are specified. - Actions are equivalent to the individual API requests of the same name.
|
|
617
618
|
*
|
|
618
619
|
* @param batchParams - The batchParams object.
|
|
619
620
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
620
621
|
*/
|
|
621
622
|
multipleBatch(batchParams: BatchParams, requestOptions?: RequestOptions): Promise<MultipleBatchResponse>;
|
|
622
623
|
/**
|
|
623
|
-
*
|
|
624
|
+
* Copies or moves (renames) an index within the same Algolia application. - Existing destination indices are overwritten, except for index-specific API keys and analytics data. - If the destination index doesn\'t exist yet, it\'ll be created. **Copy** - Copying a source index that doesn\'t exist creates a new index with 0 records and default settings. - The API keys of the source index are merged with the existing keys in the destination index. - You can\'t copy the `enableReRanking`, `mode`, and `replicas` settings. - You can\'t copy to a destination index that already has replicas. - Be aware of the [size limits](https://www.algolia.com/doc/guides/scaling/algolia-service-limits/#application-record-and-index-limits). - Related guide: [Copy indices](https://www.algolia.com/doc/guides/sending-and-managing-data/manage-indices-and-apps/manage-indices/how-to/copy-indices/) **Move** - Moving a source index that doesn\'t exist is ignored without returning an error. - When moving an index, the analytics data keep their original name and a new set of analytics data is started for the new name. To access the original analytics in the dashboard, create an index with the original name. - If the destination index has replicas, moving will overwrite the existing index and copy the data to the replica indices. - Related guide: [Move indices](https://www.algolia.com/doc/guides/sending-and-managing-data/manage-indices-and-apps/manage-indices/how-to/move-indices/).
|
|
624
625
|
*
|
|
625
626
|
* Required API Key ACLs:
|
|
626
627
|
* - addObject.
|
|
627
628
|
*
|
|
628
629
|
* @param operationIndex - The operationIndex object.
|
|
629
|
-
* @param operationIndex.indexName -
|
|
630
|
+
* @param operationIndex.indexName - Name of the index on which to perform the operation.
|
|
630
631
|
* @param operationIndex.operationIndexParams - The operationIndexParams object.
|
|
631
632
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
632
633
|
*/
|
|
633
634
|
operationIndex({ indexName, operationIndexParams }: OperationIndexProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
634
635
|
/**
|
|
635
|
-
*
|
|
636
|
+
* Adds new attributes to a record, or update existing ones. - If a record with the specified object ID doesn\'t exist, a new record is added to the index **if** `createIfNotExists` is true. - If the index doesn\'t exist yet, this method creates a new index. - You can use any first-level attribute but not nested attributes. If you specify a nested attribute, the engine treats it as a replacement for its first-level ancestor.
|
|
636
637
|
*
|
|
637
638
|
* Required API Key ACLs:
|
|
638
639
|
* - addObject.
|
|
639
640
|
*
|
|
640
641
|
* @param partialUpdateObject - The partialUpdateObject object.
|
|
641
|
-
* @param partialUpdateObject.indexName -
|
|
642
|
-
* @param partialUpdateObject.objectID - Unique record
|
|
643
|
-
* @param partialUpdateObject.attributesToUpdate -
|
|
644
|
-
* @param partialUpdateObject.createIfNotExists -
|
|
642
|
+
* @param partialUpdateObject.indexName - Name of the index on which to perform the operation.
|
|
643
|
+
* @param partialUpdateObject.objectID - Unique record identifier.
|
|
644
|
+
* @param partialUpdateObject.attributesToUpdate - Attributes with their values.
|
|
645
|
+
* @param partialUpdateObject.createIfNotExists - Whether to create a new record if it doesn\'t exist.
|
|
645
646
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
646
647
|
*/
|
|
647
648
|
partialUpdateObject({ indexName, objectID, attributesToUpdate, createIfNotExists, }: PartialUpdateObjectProps, requestOptions?: RequestOptions): Promise<UpdatedAtWithObjectIdResponse>;
|
|
648
649
|
/**
|
|
649
|
-
*
|
|
650
|
+
* Deletes a user ID and its associated data from the clusters.
|
|
650
651
|
*
|
|
651
652
|
* Required API Key ACLs:
|
|
652
653
|
* - admin.
|
|
653
654
|
*
|
|
654
655
|
* @param removeUserId - The removeUserId object.
|
|
655
|
-
* @param removeUserId.userID -
|
|
656
|
+
* @param removeUserId.userID - User ID to assign.
|
|
656
657
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
657
658
|
*/
|
|
658
659
|
removeUserId({ userID }: RemoveUserIdProps, requestOptions?: RequestOptions): Promise<RemoveUserIdResponse>;
|
|
659
660
|
/**
|
|
660
|
-
*
|
|
661
|
+
* Replaces the list of allowed sources.
|
|
661
662
|
*
|
|
662
663
|
* Required API Key ACLs:
|
|
663
664
|
* - admin.
|
|
@@ -668,7 +669,7 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
|
|
|
668
669
|
*/
|
|
669
670
|
replaceSources({ source }: ReplaceSourcesProps, requestOptions?: RequestOptions): Promise<ReplaceSourceResponse>;
|
|
670
671
|
/**
|
|
671
|
-
*
|
|
672
|
+
* Restores a deleted API key. Restoring resets the `validity` attribute to `0`. Algolia stores up to 1,000 API keys per application. If you create more, the oldest API keys are deleted and can\'t be restored.
|
|
672
673
|
*
|
|
673
674
|
* Required API Key ACLs:
|
|
674
675
|
* - admin.
|
|
@@ -679,146 +680,146 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
|
|
|
679
680
|
*/
|
|
680
681
|
restoreApiKey({ key }: RestoreApiKeyProps, requestOptions?: RequestOptions): Promise<AddApiKeyResponse>;
|
|
681
682
|
/**
|
|
682
|
-
*
|
|
683
|
+
* Adds a record to an index or replace it. - If the record doesn\'t have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn\'t exist, a new record is added to your index. - If you add a record to an index that doesn\'t exist yet, a new index is created. To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/partial). To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
|
|
683
684
|
*
|
|
684
685
|
* Required API Key ACLs:
|
|
685
686
|
* - addObject.
|
|
686
687
|
*
|
|
687
688
|
* @param saveObject - The saveObject object.
|
|
688
|
-
* @param saveObject.indexName -
|
|
689
|
-
* @param saveObject.body - The
|
|
689
|
+
* @param saveObject.indexName - Name of the index on which to perform the operation.
|
|
690
|
+
* @param saveObject.body - The record, a schemaless object with attributes that are useful in the context of search and discovery.
|
|
690
691
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
691
692
|
*/
|
|
692
693
|
saveObject({ indexName, body }: SaveObjectProps, requestOptions?: RequestOptions): Promise<SaveObjectResponse>;
|
|
693
694
|
/**
|
|
694
|
-
* To create or update more than one rule, use the [`batch` operation](#tag/Rules/operation/saveRules).
|
|
695
|
+
* If a rule with the specified object ID doesn\'t exist, it\'s created. Otherwise, the existing rule is replaced. To create or update more than one rule, use the [`batch` operation](#tag/Rules/operation/saveRules).
|
|
695
696
|
*
|
|
696
697
|
* Required API Key ACLs:
|
|
697
698
|
* - editSettings.
|
|
698
699
|
*
|
|
699
700
|
* @param saveRule - The saveRule object.
|
|
700
|
-
* @param saveRule.indexName -
|
|
701
|
+
* @param saveRule.indexName - Name of the index on which to perform the operation.
|
|
701
702
|
* @param saveRule.objectID - Unique identifier of a rule object.
|
|
702
703
|
* @param saveRule.rule - The rule object.
|
|
703
|
-
* @param saveRule.forwardToReplicas -
|
|
704
|
+
* @param saveRule.forwardToReplicas - Whether changes are applied to replica indices.
|
|
704
705
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
705
706
|
*/
|
|
706
707
|
saveRule({ indexName, objectID, rule, forwardToReplicas }: SaveRuleProps, requestOptions?: RequestOptions): Promise<UpdatedRuleResponse>;
|
|
707
708
|
/**
|
|
708
|
-
* Create or update multiple rules.
|
|
709
|
+
* Create or update multiple rules. If a rule with the specified object ID doesn\'t exist, Algolia creates a new one. Otherwise, existing rules are replaced.
|
|
709
710
|
*
|
|
710
711
|
* Required API Key ACLs:
|
|
711
712
|
* - editSettings.
|
|
712
713
|
*
|
|
713
714
|
* @param saveRules - The saveRules object.
|
|
714
|
-
* @param saveRules.indexName -
|
|
715
|
+
* @param saveRules.indexName - Name of the index on which to perform the operation.
|
|
715
716
|
* @param saveRules.rules - The rules object.
|
|
716
|
-
* @param saveRules.forwardToReplicas -
|
|
717
|
-
* @param saveRules.clearExistingRules -
|
|
717
|
+
* @param saveRules.forwardToReplicas - Whether changes are applied to replica indices.
|
|
718
|
+
* @param saveRules.clearExistingRules - Whether existing rules should be deleted before adding this batch.
|
|
718
719
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
719
720
|
*/
|
|
720
721
|
saveRules({ indexName, rules, forwardToReplicas, clearExistingRules, }: SaveRulesProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
721
722
|
/**
|
|
722
|
-
*
|
|
723
|
+
* If a synonym with the specified object ID doesn\'t exist, Algolia adds a new one. Otherwise, the existing synonym is replaced. To add multiple synonyms in a single API request, use the [`batch` operation](#tag/Synonyms/operation/saveSynonyms).
|
|
723
724
|
*
|
|
724
725
|
* Required API Key ACLs:
|
|
725
726
|
* - editSettings.
|
|
726
727
|
*
|
|
727
728
|
* @param saveSynonym - The saveSynonym object.
|
|
728
|
-
* @param saveSynonym.indexName -
|
|
729
|
+
* @param saveSynonym.indexName - Name of the index on which to perform the operation.
|
|
729
730
|
* @param saveSynonym.objectID - Unique identifier of a synonym object.
|
|
730
731
|
* @param saveSynonym.synonymHit - The synonymHit object.
|
|
731
|
-
* @param saveSynonym.forwardToReplicas -
|
|
732
|
+
* @param saveSynonym.forwardToReplicas - Whether changes are applied to replica indices.
|
|
732
733
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
733
734
|
*/
|
|
734
735
|
saveSynonym({ indexName, objectID, synonymHit, forwardToReplicas }: SaveSynonymProps, requestOptions?: RequestOptions): Promise<SaveSynonymResponse>;
|
|
735
736
|
/**
|
|
736
|
-
*
|
|
737
|
+
* If a synonym with the `objectID` doesn\'t exist, Algolia adds a new one. Otherwise, existing synonyms are replaced.
|
|
737
738
|
*
|
|
738
739
|
* Required API Key ACLs:
|
|
739
740
|
* - editSettings.
|
|
740
741
|
*
|
|
741
742
|
* @param saveSynonyms - The saveSynonyms object.
|
|
742
|
-
* @param saveSynonyms.indexName -
|
|
743
|
+
* @param saveSynonyms.indexName - Name of the index on which to perform the operation.
|
|
743
744
|
* @param saveSynonyms.synonymHit - The synonymHit object.
|
|
744
|
-
* @param saveSynonyms.forwardToReplicas -
|
|
745
|
-
* @param saveSynonyms.replaceExistingSynonyms -
|
|
745
|
+
* @param saveSynonyms.forwardToReplicas - Whether changes are applied to replica indices.
|
|
746
|
+
* @param saveSynonyms.replaceExistingSynonyms - Whether to replace all synonyms in the index with the ones sent with this request.
|
|
746
747
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
747
748
|
*/
|
|
748
749
|
saveSynonyms({ indexName, synonymHit, forwardToReplicas, replaceExistingSynonyms, }: SaveSynonymsProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
749
750
|
/**
|
|
750
|
-
*
|
|
751
|
+
* Sends multiple search request to one or more indices. This can be useful in these cases: - Different indices for different purposes, such as, one index for products, another one for marketing content. - Multiple searches to the same index—for example, with different filters.
|
|
751
752
|
*
|
|
752
753
|
* Required API Key ACLs:
|
|
753
754
|
* - search.
|
|
754
755
|
*
|
|
755
|
-
* @param searchMethodParams -
|
|
756
|
+
* @param searchMethodParams - Muli-search request body. Results are returned in the same order as the requests.
|
|
756
757
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
757
758
|
*/
|
|
758
759
|
search<T_4>(searchMethodParams: LegacySearchMethodProps | SearchMethodParams, requestOptions?: RequestOptions): Promise<SearchResponses<T_4>>;
|
|
759
760
|
/**
|
|
760
|
-
*
|
|
761
|
+
* Searches for standard and custom dictionary entries.
|
|
761
762
|
*
|
|
762
763
|
* Required API Key ACLs:
|
|
763
764
|
* - settings.
|
|
764
765
|
*
|
|
765
766
|
* @param searchDictionaryEntries - The searchDictionaryEntries object.
|
|
766
|
-
* @param searchDictionaryEntries.dictionaryName - Dictionary to search
|
|
767
|
+
* @param searchDictionaryEntries.dictionaryName - Dictionary type in which to search.
|
|
767
768
|
* @param searchDictionaryEntries.searchDictionaryEntriesParams - The searchDictionaryEntriesParams object.
|
|
768
769
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
769
770
|
*/
|
|
770
|
-
searchDictionaryEntries({ dictionaryName, searchDictionaryEntriesParams, }: SearchDictionaryEntriesProps, requestOptions?: RequestOptions): Promise<
|
|
771
|
+
searchDictionaryEntries({ dictionaryName, searchDictionaryEntriesParams, }: SearchDictionaryEntriesProps, requestOptions?: RequestOptions): Promise<SearchDictionaryEntriesResponse>;
|
|
771
772
|
/**
|
|
772
|
-
*
|
|
773
|
+
* Searches for values of a specified facet attribute. - By default, facet values are sorted by decreasing count. You can adjust this with the `sortFacetValueBy` parameter. - Searching for facet values doesn\'t work if you have **more than 65 searchable facets and searchable attributes combined**.
|
|
773
774
|
*
|
|
774
775
|
* Required API Key ACLs:
|
|
775
776
|
* - search.
|
|
776
777
|
*
|
|
777
778
|
* @param searchForFacetValues - The searchForFacetValues object.
|
|
778
|
-
* @param searchForFacetValues.indexName -
|
|
779
|
-
* @param searchForFacetValues.facetName - Facet
|
|
779
|
+
* @param searchForFacetValues.indexName - Name of the index on which to perform the operation.
|
|
780
|
+
* @param searchForFacetValues.facetName - Facet attribute in which to search for values. This attribute must be included in the `attributesForFaceting` index setting with the `searchable()` modifier.
|
|
780
781
|
* @param searchForFacetValues.searchForFacetValuesRequest - The searchForFacetValuesRequest object.
|
|
781
782
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
782
783
|
*/
|
|
783
784
|
searchForFacetValues({ indexName, facetName, searchForFacetValuesRequest, }: SearchForFacetValuesProps, requestOptions?: RequestOptions): Promise<SearchForFacetValuesResponse>;
|
|
784
785
|
/**
|
|
785
|
-
*
|
|
786
|
+
* Searches for rules in your index.
|
|
786
787
|
*
|
|
787
788
|
* Required API Key ACLs:
|
|
788
789
|
* - settings.
|
|
789
790
|
*
|
|
790
791
|
* @param searchRules - The searchRules object.
|
|
791
|
-
* @param searchRules.indexName -
|
|
792
|
+
* @param searchRules.indexName - Name of the index on which to perform the operation.
|
|
792
793
|
* @param searchRules.searchRulesParams - The searchRulesParams object.
|
|
793
794
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
794
795
|
*/
|
|
795
796
|
searchRules({ indexName, searchRulesParams }: SearchRulesProps, requestOptions?: RequestOptions): Promise<SearchRulesResponse>;
|
|
796
797
|
/**
|
|
797
|
-
*
|
|
798
|
+
* Searches a single index and return matching search results (_hits_). This method lets you retrieve up to 1,000 hits. If you need more, use the [`browse` operation](#tag/Search/operation/browse) or increase the `paginatedLimitedTo` index setting.
|
|
798
799
|
*
|
|
799
800
|
* Required API Key ACLs:
|
|
800
801
|
* - search.
|
|
801
802
|
*
|
|
802
803
|
* @param searchSingleIndex - The searchSingleIndex object.
|
|
803
|
-
* @param searchSingleIndex.indexName -
|
|
804
|
+
* @param searchSingleIndex.indexName - Name of the index on which to perform the operation.
|
|
804
805
|
* @param searchSingleIndex.searchParams - The searchParams object.
|
|
805
806
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
806
807
|
*/
|
|
807
808
|
searchSingleIndex<T_5>({ indexName, searchParams }: SearchSingleIndexProps, requestOptions?: RequestOptions): Promise<SearchResponse<T_5>>;
|
|
808
809
|
/**
|
|
809
|
-
*
|
|
810
|
+
* Searches for synonyms in your index.
|
|
810
811
|
*
|
|
811
812
|
* Required API Key ACLs:
|
|
812
813
|
* - settings.
|
|
813
814
|
*
|
|
814
815
|
* @param searchSynonyms - The searchSynonyms object.
|
|
815
|
-
* @param searchSynonyms.indexName -
|
|
816
|
+
* @param searchSynonyms.indexName - Name of the index on which to perform the operation.
|
|
816
817
|
* @param searchSynonyms.searchSynonymsParams - Body of the `searchSynonyms` operation.
|
|
817
818
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
818
819
|
*/
|
|
819
820
|
searchSynonyms({ indexName, searchSynonymsParams }: SearchSynonymsProps, requestOptions?: RequestOptions): Promise<SearchSynonymsResponse>;
|
|
820
821
|
/**
|
|
821
|
-
* Since it can take
|
|
822
|
+
* Since it can take a few seconds to get the data from the different clusters, the response isn\'t real-time. To ensure rapid updates, the user IDs index isn\'t built at the same time as the mapping. Instead, it\'s built every 12 hours, at the same time as the update of user ID usage. For example, if you add or move a user ID, the search will show an old value until the next time the mapping is rebuilt (every 12 hours).
|
|
822
823
|
*
|
|
823
824
|
* Required API Key ACLs:
|
|
824
825
|
* - admin.
|
|
@@ -828,7 +829,7 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
|
|
|
828
829
|
*/
|
|
829
830
|
searchUserIds(searchUserIdsParams: SearchUserIdsParams, requestOptions?: RequestOptions): Promise<SearchUserIdsResponse>;
|
|
830
831
|
/**
|
|
831
|
-
*
|
|
832
|
+
* Turns standard stop word dictionary entries on or off for a given language.
|
|
832
833
|
*
|
|
833
834
|
* Required API Key ACLs:
|
|
834
835
|
* - editSettings.
|
|
@@ -838,20 +839,20 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
|
|
|
838
839
|
*/
|
|
839
840
|
setDictionarySettings(dictionarySettingsParams: DictionarySettingsParams, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
840
841
|
/**
|
|
841
|
-
* Update the specified
|
|
842
|
+
* Update the specified index settings. Index settings that you don\'t specify are left unchanged. Specify `null` to reset a setting to its default value. For best performance, update the index settings before you add new records to your index.
|
|
842
843
|
*
|
|
843
844
|
* Required API Key ACLs:
|
|
844
845
|
* - editSettings.
|
|
845
846
|
*
|
|
846
847
|
* @param setSettings - The setSettings object.
|
|
847
|
-
* @param setSettings.indexName -
|
|
848
|
+
* @param setSettings.indexName - Name of the index on which to perform the operation.
|
|
848
849
|
* @param setSettings.indexSettings - The indexSettings object.
|
|
849
|
-
* @param setSettings.forwardToReplicas -
|
|
850
|
+
* @param setSettings.forwardToReplicas - Whether changes are applied to replica indices.
|
|
850
851
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
851
852
|
*/
|
|
852
853
|
setSettings({ indexName, indexSettings, forwardToReplicas }: SetSettingsProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
853
854
|
/**
|
|
854
|
-
*
|
|
855
|
+
* Replaces the permissions of an existing API key. Any unspecified attribute resets that attribute to its default value.
|
|
855
856
|
*
|
|
856
857
|
* Required API Key ACLs:
|
|
857
858
|
* - admin.
|