algoliasearch 5.0.0-alpha.72 → 5.0.0-alpha.75
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.cjs.js +342 -340
- package/dist/algoliasearch.esm.browser.js +342 -338
- package/dist/algoliasearch.esm.node.js +342 -338
- package/dist/algoliasearch.umd.js +2 -2
- package/dist/builds/browser.d.ts +2 -2
- package/dist/builds/node.d.ts +2 -2
- package/dist/client-abtesting/model/aBTest.d.ts +8 -12
- package/dist/client-abtesting/model/aBTest.d.ts.map +1 -1
- package/dist/client-abtesting/model/aBTestResponse.d.ts +3 -3
- package/dist/client-abtesting/model/abTestsVariant.d.ts +3 -3
- package/dist/client-abtesting/model/addABTestsRequest.d.ts +3 -3
- package/dist/client-abtesting/model/addABTestsRequest.d.ts.map +1 -1
- package/dist/client-abtesting/model/clientMethodProps.d.ts +16 -16
- package/dist/client-abtesting/model/customSearchParams.d.ts +3 -0
- package/dist/client-abtesting/model/customSearchParams.d.ts.map +1 -1
- package/dist/client-abtesting/model/listABTestsResponse.d.ts +3 -3
- package/dist/client-abtesting/model/variant.d.ts +20 -12
- package/dist/client-abtesting/model/variant.d.ts.map +1 -1
- package/dist/client-abtesting/src/abtestingClient.d.ts +27 -27
- package/dist/client-analytics/model/averageClickEvent.d.ts +3 -3
- package/dist/client-analytics/model/clickPosition.d.ts +2 -2
- package/dist/client-analytics/model/clickThroughRateEvent.d.ts +4 -4
- package/dist/client-analytics/model/clientMethodProps.d.ts +91 -91
- package/dist/client-analytics/model/conversionRateEvent.d.ts +4 -4
- package/dist/client-analytics/model/getAverageClickPositionResponse.d.ts +3 -3
- package/dist/client-analytics/model/getClickPositionsResponse.d.ts +1 -1
- package/dist/client-analytics/model/getClickThroughRateResponse.d.ts +4 -4
- package/dist/client-analytics/model/getConversationRateResponse.d.ts +4 -4
- package/dist/client-analytics/model/getNoClickRateResponse.d.ts +4 -4
- package/dist/client-analytics/model/getNoResultsRateResponse.d.ts +4 -4
- package/dist/client-analytics/model/getSearchesCountResponse.d.ts +2 -2
- package/dist/client-analytics/model/getSearchesNoClicksResponse.d.ts +1 -1
- package/dist/client-analytics/model/getSearchesNoResultsResponse.d.ts +1 -1
- package/dist/client-analytics/model/getStatusResponse.d.ts +1 -1
- package/dist/client-analytics/model/getTopCountriesResponse.d.ts +1 -1
- package/dist/client-analytics/model/getTopFilterAttribute.d.ts +2 -2
- package/dist/client-analytics/model/getTopFilterAttributesResponse.d.ts +1 -1
- package/dist/client-analytics/model/getTopFilterForAttribute.d.ts +4 -4
- package/dist/client-analytics/model/getTopFilterForAttributeResponse.d.ts +1 -1
- package/dist/client-analytics/model/getTopFiltersNoResultsResponse.d.ts +1 -1
- package/dist/client-analytics/model/getTopFiltersNoResultsValue.d.ts +3 -3
- package/dist/client-analytics/model/getTopFiltersNoResultsValues.d.ts +2 -2
- package/dist/client-analytics/model/getUsersCountResponse.d.ts +2 -2
- package/dist/client-analytics/model/noClickRateEvent.d.ts +4 -4
- package/dist/client-analytics/model/noResultsRateEvent.d.ts +4 -4
- package/dist/client-analytics/model/orderBy.d.ts +3 -0
- package/dist/client-analytics/model/orderBy.d.ts.map +1 -1
- package/dist/client-analytics/model/searchEvent.d.ts +2 -2
- package/dist/client-analytics/model/searchNoClickEvent.d.ts +3 -3
- package/dist/client-analytics/model/searchNoResultEvent.d.ts +3 -3
- package/dist/client-analytics/model/topCountry.d.ts +2 -2
- package/dist/client-analytics/model/topHit.d.ts +2 -2
- package/dist/client-analytics/model/topHitWithAnalytics.d.ts +7 -7
- package/dist/client-analytics/model/topHitsResponse.d.ts +1 -1
- package/dist/client-analytics/model/topHitsResponseWithAnalytics.d.ts +1 -1
- package/dist/client-analytics/model/topSearch.d.ts +3 -3
- package/dist/client-analytics/model/topSearchWithAnalytics.d.ts +9 -9
- package/dist/client-analytics/model/topSearchesResponse.d.ts +1 -1
- package/dist/client-analytics/model/topSearchesResponseWithAnalytics.d.ts +1 -1
- package/dist/client-analytics/model/userWithDate.d.ts +2 -2
- package/dist/client-analytics/src/analyticsClient.d.ts +114 -114
- package/dist/client-personalization/model/clientMethodProps.d.ts +10 -10
- package/dist/client-personalization/src/personalizationClient.d.ts +11 -11
- 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 +2 -2
- package/dist/client-search/model/anchoring.d.ts +1 -1
- package/dist/client-search/model/apiKey.d.ts +9 -9
- package/dist/client-search/model/aroundRadius.d.ts +1 -1
- package/dist/client-search/model/assignUserIdParams.d.ts +1 -1
- package/dist/client-search/model/baseGetApiKeyResponse.d.ts +2 -2
- package/dist/client-search/model/baseIndexSettings.d.ts +14 -14
- package/dist/client-search/model/baseSearchParamsWithoutQuery.d.ts +25 -25
- package/dist/client-search/model/baseSearchResponse.d.ts +20 -20
- package/dist/client-search/model/baseSearchResponseRedirect.d.ts +1 -1
- package/dist/client-search/model/batchAssignUserIdsParams.d.ts +2 -2
- package/dist/client-search/model/batchDictionaryEntriesParams.d.ts +3 -3
- package/dist/client-search/model/batchParams.d.ts +1 -1
- package/dist/client-search/model/batchRequest.d.ts +1 -1
- package/dist/client-search/model/batchResponse.d.ts +2 -2
- package/dist/client-search/model/batchWriteParams.d.ts +1 -1
- package/dist/client-search/model/builtInOperation.d.ts +1 -1
- package/dist/client-search/model/builtInOperationType.d.ts +1 -1
- package/dist/client-search/model/clientMethodProps.d.ts +88 -84
- package/dist/client-search/model/clientMethodProps.d.ts.map +1 -1
- package/dist/client-search/model/consequence.d.ts +4 -4
- package/dist/client-search/model/consequenceHide.d.ts +2 -2
- package/dist/client-search/model/createdAtResponse.d.ts +2 -2
- package/dist/client-search/model/cursor.d.ts +1 -1
- package/dist/client-search/model/deleteApiKeyResponse.d.ts +1 -1
- package/dist/client-search/model/deleteByParams.d.ts +4 -4
- package/dist/client-search/model/deleteSourceResponse.d.ts +1 -1
- package/dist/client-search/model/deletedAtResponse.d.ts +3 -3
- package/dist/client-search/model/dictionaryEntry.d.ts +6 -6
- 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/exactOnSingleWordQuery.d.ts +1 -1
- package/dist/client-search/model/facetFilters.d.ts +1 -1
- package/dist/client-search/model/facetHits.d.ts +3 -3
- package/dist/client-search/model/facetOrdering.d.ts +2 -2
- package/dist/client-search/model/facets.d.ts +1 -1
- package/dist/client-search/model/facetsStats.d.ts +4 -4
- package/dist/client-search/model/fetchedIndex.d.ts +1 -1
- package/dist/client-search/model/getObjectsParams.d.ts +1 -1
- package/dist/client-search/model/getObjectsRequest.d.ts +4 -4
- package/dist/client-search/model/getObjectsResponse.d.ts +1 -1
- package/dist/client-search/model/getTopUserIdsResponse.d.ts +2 -2
- package/dist/client-search/model/hasPendingMappingsResponse.d.ts +2 -2
- package/dist/client-search/model/highlightResultOption.d.ts +1 -1
- package/dist/client-search/model/hit.d.ts +1 -1
- package/dist/client-search/model/ignorePlurals.d.ts +1 -1
- package/dist/client-search/model/indexSettings.d.ts +1 -1
- package/dist/client-search/model/indexSettingsAsSearchParams.d.ts +30 -30
- package/dist/client-search/model/indexSettingsAsSearchParamsSemanticSearch.d.ts +2 -2
- package/dist/client-search/model/languages.d.ts +1 -1
- package/dist/client-search/model/listApiKeysResponse.d.ts +1 -1
- package/dist/client-search/model/listClustersResponse.d.ts +2 -2
- package/dist/client-search/model/listIndicesResponse.d.ts +1 -1
- package/dist/client-search/model/listUserIdsResponse.d.ts +2 -2
- package/dist/client-search/model/log.d.ts +7 -7
- package/dist/client-search/model/logQuery.d.ts +1 -1
- package/dist/client-search/model/mode.d.ts +1 -1
- package/dist/client-search/model/multipleBatchRequest.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 +3 -3
- package/dist/client-search/model/promoteObjectIDs.d.ts +3 -3
- package/dist/client-search/model/queryType.d.ts +1 -1
- package/dist/client-search/model/reRankingApplyFilter.d.ts +1 -1
- package/dist/client-search/model/redirectRuleIndexMetadata.d.ts +1 -1
- package/dist/client-search/model/redirectRuleIndexMetadataData.d.ts +1 -1
- package/dist/client-search/model/removeStopWords.d.ts +1 -1
- package/dist/client-search/model/removeUserIdResponse.d.ts +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/replaceSourceResponse.d.ts +1 -1
- package/dist/client-search/model/rule.d.ts +5 -5
- package/dist/client-search/model/saveObjectResponse.d.ts +5 -2
- package/dist/client-search/model/saveObjectResponse.d.ts.map +1 -1
- package/dist/client-search/model/saveSynonymResponse.d.ts +3 -3
- package/dist/client-search/model/searchDictionaryEntriesParams.d.ts +5 -5
- package/dist/client-search/model/searchForFacetValuesRequest.d.ts +2 -2
- package/dist/client-search/model/searchForFacetsOptions.d.ts +3 -3
- package/dist/client-search/model/searchForHitsOptions.d.ts +1 -1
- package/dist/client-search/model/searchParamsQuery.d.ts +1 -1
- package/dist/client-search/model/searchParamsString.d.ts +1 -1
- package/dist/client-search/model/searchRulesParams.d.ts +7 -7
- package/dist/client-search/model/searchStrategy.d.ts +3 -0
- package/dist/client-search/model/searchStrategy.d.ts.map +1 -1
- package/dist/client-search/model/searchSynonymsParams.d.ts +1 -1
- package/dist/client-search/model/searchSynonymsResponse.d.ts +2 -2
- package/dist/client-search/model/searchTypeDefault.d.ts +1 -1
- package/dist/client-search/model/searchTypeFacet.d.ts +1 -1
- package/dist/client-search/model/searchUserIdsParams.d.ts +4 -4
- package/dist/client-search/model/searchUserIdsResponse.d.ts +5 -5
- package/dist/client-search/model/snippetResultOption.d.ts +1 -1
- package/dist/client-search/model/sortRemainingBy.d.ts +1 -1
- package/dist/client-search/model/source.d.ts +3 -3
- package/dist/client-search/model/standardEntries.d.ts +4 -4
- package/dist/client-search/model/synonymHit.d.ts +6 -6
- package/dist/client-search/model/synonymType.d.ts +1 -1
- package/dist/client-search/model/tagFilters.d.ts +1 -1
- package/dist/client-search/model/taskStatus.d.ts +3 -0
- package/dist/client-search/model/taskStatus.d.ts.map +1 -1
- package/dist/client-search/model/typoTolerance.d.ts +1 -1
- package/dist/client-search/model/updateApiKeyResponse.d.ts +2 -2
- package/dist/client-search/model/updatedAtResponse.d.ts +3 -3
- package/dist/client-search/model/updatedAtWithObjectIdResponse.d.ts +4 -4
- package/dist/client-search/model/updatedRuleResponse.d.ts +3 -3
- package/dist/client-search/model/userHit.d.ts +1 -1
- package/dist/client-search/model/userId.d.ts +2 -2
- package/dist/client-search/src/searchClient.d.ts +185 -184
- package/dist/client-search/src/searchClient.d.ts.map +1 -1
- package/dist/lite/lite.cjs.js +6 -8
- package/dist/lite/lite.esm.browser.js +6 -6
- package/dist/lite/lite.esm.node.js +6 -6
- 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 +2 -2
- package/dist/lite/model/anchoring.d.ts +1 -1
- package/dist/lite/model/apiKey.d.ts +9 -9
- package/dist/lite/model/aroundRadius.d.ts +1 -1
- package/dist/lite/model/baseGetApiKeyResponse.d.ts +2 -2
- package/dist/lite/model/baseIndexSettings.d.ts +14 -14
- package/dist/lite/model/baseSearchParamsWithoutQuery.d.ts +25 -25
- package/dist/lite/model/baseSearchResponse.d.ts +20 -20
- package/dist/lite/model/baseSearchResponseRedirect.d.ts +1 -1
- package/dist/lite/model/builtInOperation.d.ts +1 -1
- package/dist/lite/model/builtInOperationType.d.ts +1 -1
- package/dist/lite/model/clientMethodProps.d.ts +3 -3
- package/dist/lite/model/consequence.d.ts +4 -4
- package/dist/lite/model/consequenceHide.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 -6
- 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/exactOnSingleWordQuery.d.ts +1 -1
- package/dist/lite/model/facetFilters.d.ts +1 -1
- package/dist/lite/model/facetOrdering.d.ts +2 -2
- package/dist/lite/model/facets.d.ts +1 -1
- package/dist/lite/model/facetsStats.d.ts +4 -4
- package/dist/lite/model/fetchedIndex.d.ts +1 -1
- package/dist/lite/model/highlightResultOption.d.ts +1 -1
- package/dist/lite/model/hit.d.ts +1 -1
- package/dist/lite/model/ignorePlurals.d.ts +1 -1
- package/dist/lite/model/indexSettings.d.ts +1 -1
- package/dist/lite/model/indexSettingsAsSearchParams.d.ts +30 -30
- package/dist/lite/model/indexSettingsAsSearchParamsSemanticSearch.d.ts +2 -2
- package/dist/lite/model/languages.d.ts +1 -1
- package/dist/lite/model/listIndicesResponse.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 +3 -3
- package/dist/lite/model/promoteObjectIDs.d.ts +3 -3
- package/dist/lite/model/queryType.d.ts +1 -1
- package/dist/lite/model/reRankingApplyFilter.d.ts +1 -1
- package/dist/lite/model/redirectRuleIndexMetadata.d.ts +1 -1
- package/dist/lite/model/redirectRuleIndexMetadataData.d.ts +1 -1
- package/dist/lite/model/removeStopWords.d.ts +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/searchForFacetsOptions.d.ts +3 -3
- package/dist/lite/model/searchForHitsOptions.d.ts +1 -1
- package/dist/lite/model/searchParamsQuery.d.ts +1 -1
- package/dist/lite/model/searchParamsString.d.ts +1 -1
- package/dist/lite/model/searchStrategy.d.ts +3 -0
- package/dist/lite/model/searchStrategy.d.ts.map +1 -1
- package/dist/lite/model/searchSynonymsResponse.d.ts +2 -2
- package/dist/lite/model/searchTypeDefault.d.ts +1 -1
- package/dist/lite/model/searchTypeFacet.d.ts +1 -1
- package/dist/lite/model/snippetResultOption.d.ts +1 -1
- package/dist/lite/model/sortRemainingBy.d.ts +1 -1
- package/dist/lite/model/source.d.ts +3 -3
- package/dist/lite/model/standardEntries.d.ts +4 -4
- package/dist/lite/model/synonymHit.d.ts +6 -6
- package/dist/lite/model/synonymType.d.ts +1 -1
- package/dist/lite/model/tagFilters.d.ts +1 -1
- package/dist/lite/model/taskStatus.d.ts +3 -0
- package/dist/lite/model/taskStatus.d.ts.map +1 -1
- package/dist/lite/model/typoTolerance.d.ts +1 -1
- package/dist/lite/model/updatedRuleResponse.d.ts +3 -3
- package/dist/lite/model/userId.d.ts +2 -2
- package/dist/lite/src/liteClient.d.ts +6 -6
- package/lite/model/acl.ts +1 -1
- package/lite/model/action.ts +1 -1
- package/lite/model/addApiKeyResponse.ts +2 -2
- package/lite/model/anchoring.ts +1 -1
- package/lite/model/apiKey.ts +9 -9
- package/lite/model/aroundRadius.ts +1 -1
- package/lite/model/baseGetApiKeyResponse.ts +2 -2
- package/lite/model/baseIndexSettings.ts +14 -14
- package/lite/model/baseSearchParamsWithoutQuery.ts +25 -25
- package/lite/model/baseSearchResponse.ts +20 -20
- package/lite/model/baseSearchResponseRedirect.ts +1 -1
- package/lite/model/builtInOperation.ts +1 -1
- package/lite/model/builtInOperationType.ts +1 -1
- package/lite/model/clientMethodProps.ts +3 -3
- package/lite/model/consequence.ts +4 -4
- package/lite/model/consequenceHide.ts +2 -2
- package/lite/model/cursor.ts +1 -1
- package/lite/model/deleteByParams.ts +4 -4
- package/lite/model/dictionaryEntry.ts +6 -6
- package/lite/model/dictionaryEntryState.ts +1 -1
- package/lite/model/dictionaryLanguage.ts +2 -2
- package/lite/model/distinct.ts +1 -1
- package/lite/model/exactOnSingleWordQuery.ts +1 -1
- package/lite/model/facetFilters.ts +1 -1
- package/lite/model/facetOrdering.ts +2 -2
- package/lite/model/facets.ts +1 -1
- package/lite/model/facetsStats.ts +4 -4
- package/lite/model/fetchedIndex.ts +1 -1
- package/lite/model/highlightResultOption.ts +1 -1
- package/lite/model/hit.ts +1 -1
- package/lite/model/ignorePlurals.ts +1 -1
- package/lite/model/indexSettings.ts +1 -1
- package/lite/model/indexSettingsAsSearchParams.ts +30 -30
- package/lite/model/indexSettingsAsSearchParamsSemanticSearch.ts +2 -2
- package/lite/model/languages.ts +1 -1
- package/lite/model/listIndicesResponse.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 +3 -3
- package/lite/model/promoteObjectIDs.ts +3 -3
- package/lite/model/queryType.ts +1 -1
- package/lite/model/reRankingApplyFilter.ts +1 -1
- package/lite/model/redirectRuleIndexMetadata.ts +1 -1
- package/lite/model/redirectRuleIndexMetadataData.ts +1 -1
- package/lite/model/removeStopWords.ts +1 -1
- package/lite/model/removeWordsIfNoResults.ts +1 -1
- package/lite/model/renderingContent.ts +1 -1
- package/lite/model/rule.ts +5 -5
- package/lite/model/searchForFacetsOptions.ts +3 -3
- package/lite/model/searchForHitsOptions.ts +1 -1
- package/lite/model/searchParamsQuery.ts +1 -1
- package/lite/model/searchParamsString.ts +1 -1
- package/lite/model/searchStrategy.ts +3 -0
- package/lite/model/searchSynonymsResponse.ts +2 -2
- package/lite/model/searchTypeDefault.ts +1 -1
- package/lite/model/searchTypeFacet.ts +1 -1
- package/lite/model/snippetResultOption.ts +1 -1
- package/lite/model/sortRemainingBy.ts +1 -1
- package/lite/model/source.ts +3 -3
- package/lite/model/standardEntries.ts +4 -4
- package/lite/model/synonymHit.ts +6 -6
- package/lite/model/synonymType.ts +1 -1
- package/lite/model/tagFilters.ts +1 -1
- package/lite/model/taskStatus.ts +3 -0
- package/lite/model/typoTolerance.ts +1 -1
- package/lite/model/updatedRuleResponse.ts +3 -3
- package/lite/model/userId.ts +2 -2
- package/lite/src/liteClient.ts +6 -6
- package/package.json +15 -14
|
@@ -45,7 +45,7 @@ import type { UpdatedAtResponse } from '../model/updatedAtResponse';
|
|
|
45
45
|
import type { UpdatedAtWithObjectIdResponse } from '../model/updatedAtWithObjectIdResponse';
|
|
46
46
|
import type { UpdatedRuleResponse } from '../model/updatedRuleResponse';
|
|
47
47
|
import type { UserId } from '../model/userId';
|
|
48
|
-
export declare const apiClientVersion = "5.0.0-alpha.
|
|
48
|
+
export declare const apiClientVersion = "5.0.0-alpha.75";
|
|
49
49
|
export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
|
|
50
50
|
transporter: import("@algolia/client-common").Transporter;
|
|
51
51
|
/**
|
|
@@ -128,36 +128,36 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
|
|
|
128
128
|
*/
|
|
129
129
|
browseSynonyms({ indexName, validate, aggregator, ...browseSynonymsOptions }: BrowseOptions<SearchSynonymsResponse> & SearchSynonymsProps, requestOptions?: RequestOptions): Promise<SearchSynonymsResponse>;
|
|
130
130
|
/**
|
|
131
|
-
* Add a new API
|
|
131
|
+
* Add a new API key with specific permissions and restrictions. The request must be authenticated with the admin API key. The response returns an API key string.
|
|
132
132
|
*
|
|
133
|
-
* @summary
|
|
133
|
+
* @summary Add API key.
|
|
134
134
|
* @param apiKey - The apiKey object.
|
|
135
135
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
136
136
|
*/
|
|
137
137
|
addApiKey(apiKey: ApiKey, requestOptions?: RequestOptions): Promise<AddApiKeyResponse>;
|
|
138
138
|
/**
|
|
139
|
-
*
|
|
139
|
+
* If you use an existing `objectID`, the existing record will be replaced with the new one. To update only some attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add multiple records to your index in a single API request, use the [`batch` operation](#tag/Records/operation/batch).
|
|
140
140
|
*
|
|
141
|
-
* @summary Add or
|
|
141
|
+
* @summary Add or update a record (using objectID).
|
|
142
142
|
* @param addOrUpdateObject - The addOrUpdateObject object.
|
|
143
|
-
* @param addOrUpdateObject.indexName -
|
|
144
|
-
* @param addOrUpdateObject.objectID - Unique
|
|
145
|
-
* @param addOrUpdateObject.body -
|
|
143
|
+
* @param addOrUpdateObject.indexName - Index on which to perform the request.
|
|
144
|
+
* @param addOrUpdateObject.objectID - Unique record (object) identifier.
|
|
145
|
+
* @param addOrUpdateObject.body - Algolia record.
|
|
146
146
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
147
147
|
*/
|
|
148
148
|
addOrUpdateObject({ indexName, objectID, body }: AddOrUpdateObjectProps, requestOptions?: RequestOptions): Promise<UpdatedAtWithObjectIdResponse>;
|
|
149
149
|
/**
|
|
150
|
-
* Add a
|
|
150
|
+
* Add a source to the list of allowed sources.
|
|
151
151
|
*
|
|
152
|
-
* @summary Add a
|
|
153
|
-
* @param source -
|
|
152
|
+
* @summary Add a source.
|
|
153
|
+
* @param source - Source to add.
|
|
154
154
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
155
155
|
*/
|
|
156
156
|
appendSource(source: Source, requestOptions?: RequestOptions): Promise<CreatedAtResponse>;
|
|
157
157
|
/**
|
|
158
|
-
* Assign or
|
|
158
|
+
* Assign or move 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.
|
|
159
159
|
*
|
|
160
|
-
* @summary Assign or
|
|
160
|
+
* @summary Assign or move a user ID.
|
|
161
161
|
* @param assignUserId - The assignUserId object.
|
|
162
162
|
* @param assignUserId.xAlgoliaUserID - UserID to assign.
|
|
163
163
|
* @param assignUserId.assignUserIdParams - The assignUserIdParams object.
|
|
@@ -165,17 +165,17 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
|
|
|
165
165
|
*/
|
|
166
166
|
assignUserId({ xAlgoliaUserID, assignUserIdParams }: AssignUserIdProps, requestOptions?: RequestOptions): Promise<CreatedAtResponse>;
|
|
167
167
|
/**
|
|
168
|
-
*
|
|
168
|
+
* To reduce the time spent on network round trips, you can perform several write actions in a single API call. Actions are applied in the order they are specified. The supported `action`s are equivalent to the individual operations of the same name.
|
|
169
169
|
*
|
|
170
|
-
* @summary Batch operations
|
|
170
|
+
* @summary Batch write operations on one index.
|
|
171
171
|
* @param batch - The batch object.
|
|
172
|
-
* @param batch.indexName -
|
|
172
|
+
* @param batch.indexName - Index on which to perform the request.
|
|
173
173
|
* @param batch.batchWriteParams - The batchWriteParams object.
|
|
174
174
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
175
175
|
*/
|
|
176
176
|
batch({ indexName, batchWriteParams }: BatchProps, requestOptions?: RequestOptions): Promise<BatchResponse>;
|
|
177
177
|
/**
|
|
178
|
-
* Assign multiple
|
|
178
|
+
* Assign multiple user IDs to a cluster. **You can\'t _move_ users with this operation.**.
|
|
179
179
|
*
|
|
180
180
|
* @summary Batch assign userIDs.
|
|
181
181
|
* @param batchAssignUserIds - The batchAssignUserIds object.
|
|
@@ -185,51 +185,51 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
|
|
|
185
185
|
*/
|
|
186
186
|
batchAssignUserIds({ xAlgoliaUserID, batchAssignUserIdsParams }: BatchAssignUserIdsProps, requestOptions?: RequestOptions): Promise<CreatedAtResponse>;
|
|
187
187
|
/**
|
|
188
|
-
*
|
|
188
|
+
* Add or remove a batch of dictionary entries.
|
|
189
189
|
*
|
|
190
190
|
* @summary Batch dictionary entries.
|
|
191
191
|
* @param batchDictionaryEntries - The batchDictionaryEntries object.
|
|
192
|
-
* @param batchDictionaryEntries.dictionaryName -
|
|
192
|
+
* @param batchDictionaryEntries.dictionaryName - Dictionary to search in.
|
|
193
193
|
* @param batchDictionaryEntries.batchDictionaryEntriesParams - The batchDictionaryEntriesParams object.
|
|
194
194
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
195
195
|
*/
|
|
196
196
|
batchDictionaryEntries({ dictionaryName, batchDictionaryEntriesParams, }: BatchDictionaryEntriesProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
197
197
|
/**
|
|
198
|
-
*
|
|
198
|
+
* Retrieve up to 1,000 records per call. Supports full-text search and filters. For better performance, it doesn\'t support: - The `distinct` query parameter - Sorting by typos, proximity, words, or geographical distance.
|
|
199
199
|
*
|
|
200
|
-
* @summary
|
|
200
|
+
* @summary Get all records from an index.
|
|
201
201
|
* @param browse - The browse object.
|
|
202
|
-
* @param browse.indexName -
|
|
202
|
+
* @param browse.indexName - Index on which to perform the request.
|
|
203
203
|
* @param browse.browseParams - The browseParams object.
|
|
204
204
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
205
205
|
*/
|
|
206
206
|
browse<T_1>({ indexName, browseParams }: BrowseProps, requestOptions?: RequestOptions): Promise<BrowseResponse<T_1>>;
|
|
207
207
|
/**
|
|
208
|
-
*
|
|
208
|
+
* Delete all synonyms in the index.
|
|
209
209
|
*
|
|
210
|
-
* @summary
|
|
210
|
+
* @summary Delete all synonyms.
|
|
211
211
|
* @param clearAllSynonyms - The clearAllSynonyms object.
|
|
212
|
-
* @param clearAllSynonyms.indexName -
|
|
213
|
-
* @param clearAllSynonyms.forwardToReplicas -
|
|
212
|
+
* @param clearAllSynonyms.indexName - Index on which to perform the request.
|
|
213
|
+
* @param clearAllSynonyms.forwardToReplicas - Indicates whether changed index settings are forwarded to the replica indices.
|
|
214
214
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
215
215
|
*/
|
|
216
216
|
clearAllSynonyms({ indexName, forwardToReplicas }: ClearAllSynonymsProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
217
217
|
/**
|
|
218
|
-
* Delete
|
|
218
|
+
* Delete the records but leave settings and index-specific API keys untouched.
|
|
219
219
|
*
|
|
220
|
-
* @summary
|
|
220
|
+
* @summary Delete all records from an index.
|
|
221
221
|
* @param clearObjects - The clearObjects object.
|
|
222
|
-
* @param clearObjects.indexName -
|
|
222
|
+
* @param clearObjects.indexName - Index on which to perform the request.
|
|
223
223
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
224
224
|
*/
|
|
225
225
|
clearObjects({ indexName }: ClearObjectsProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
226
226
|
/**
|
|
227
|
-
* Delete all
|
|
227
|
+
* Delete all rules in the index.
|
|
228
228
|
*
|
|
229
|
-
* @summary
|
|
229
|
+
* @summary Delete all rules.
|
|
230
230
|
* @param clearRules - The clearRules object.
|
|
231
|
-
* @param clearRules.indexName -
|
|
232
|
-
* @param clearRules.forwardToReplicas -
|
|
231
|
+
* @param clearRules.indexName - Index on which to perform the request.
|
|
232
|
+
* @param clearRules.forwardToReplicas - Indicates whether changed index settings are forwarded to the replica indices.
|
|
233
233
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
234
234
|
*/
|
|
235
235
|
clearRules({ indexName, forwardToReplicas }: ClearRulesProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
@@ -238,26 +238,26 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
|
|
|
238
238
|
*
|
|
239
239
|
* @summary Send requests to the Algolia REST API.
|
|
240
240
|
* @param del - The del object.
|
|
241
|
-
* @param del.path -
|
|
242
|
-
* @param del.parameters - Query parameters to
|
|
241
|
+
* @param del.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
242
|
+
* @param del.parameters - Query parameters to apply to the current query.
|
|
243
243
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
244
244
|
*/
|
|
245
245
|
del({ path, parameters }: DelProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
246
246
|
/**
|
|
247
|
-
* Delete an existing API
|
|
247
|
+
* Delete an existing API key. The request must be authenticated with the admin API key.
|
|
248
248
|
*
|
|
249
|
-
* @summary Delete
|
|
249
|
+
* @summary Delete API key.
|
|
250
250
|
* @param deleteApiKey - The deleteApiKey object.
|
|
251
|
-
* @param deleteApiKey.key - API
|
|
251
|
+
* @param deleteApiKey.key - API key.
|
|
252
252
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
253
253
|
*/
|
|
254
254
|
deleteApiKey({ key }: DeleteApiKeyProps, requestOptions?: RequestOptions): Promise<DeleteApiKeyResponse>;
|
|
255
255
|
/**
|
|
256
|
-
*
|
|
256
|
+
* This operation doesn\'t support all the query options, only its filters (numeric, facet, or tag) and geo queries. It doesn\'t accept empty filters or queries.
|
|
257
257
|
*
|
|
258
|
-
* @summary Delete all records matching
|
|
258
|
+
* @summary Delete all records matching a query.
|
|
259
259
|
* @param deleteBy - The deleteBy object.
|
|
260
|
-
* @param deleteBy.indexName -
|
|
260
|
+
* @param deleteBy.indexName - Index on which to perform the request.
|
|
261
261
|
* @param deleteBy.deleteByParams - The deleteByParams object.
|
|
262
262
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
263
263
|
*/
|
|
@@ -267,48 +267,48 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
|
|
|
267
267
|
*
|
|
268
268
|
* @summary Delete index.
|
|
269
269
|
* @param deleteIndex - The deleteIndex object.
|
|
270
|
-
* @param deleteIndex.indexName -
|
|
270
|
+
* @param deleteIndex.indexName - Index on which to perform the request.
|
|
271
271
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
272
272
|
*/
|
|
273
273
|
deleteIndex({ indexName }: DeleteIndexProps, requestOptions?: RequestOptions): Promise<DeletedAtResponse>;
|
|
274
274
|
/**
|
|
275
|
-
*
|
|
275
|
+
* To delete a set of records matching a query, use the [`deleteByQuery` operation](#tag/Records/operation/deleteBy) instead.
|
|
276
276
|
*
|
|
277
|
-
* @summary Delete
|
|
277
|
+
* @summary Delete a record.
|
|
278
278
|
* @param deleteObject - The deleteObject object.
|
|
279
|
-
* @param deleteObject.indexName -
|
|
280
|
-
* @param deleteObject.objectID - Unique
|
|
279
|
+
* @param deleteObject.indexName - Index on which to perform the request.
|
|
280
|
+
* @param deleteObject.objectID - Unique record (object) identifier.
|
|
281
281
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
282
282
|
*/
|
|
283
283
|
deleteObject({ indexName, objectID }: DeleteObjectProps, requestOptions?: RequestOptions): Promise<DeletedAtResponse>;
|
|
284
284
|
/**
|
|
285
|
-
* Delete the
|
|
285
|
+
* Delete a rule by its `objectID`. To find the `objectID` for rules, use the [`search` operation](#tag/Rules/operation/searchRules).
|
|
286
286
|
*
|
|
287
287
|
* @summary Delete a rule.
|
|
288
288
|
* @param deleteRule - The deleteRule object.
|
|
289
|
-
* @param deleteRule.indexName -
|
|
290
|
-
* @param deleteRule.objectID - Unique identifier of
|
|
291
|
-
* @param deleteRule.forwardToReplicas -
|
|
289
|
+
* @param deleteRule.indexName - Index on which to perform the request.
|
|
290
|
+
* @param deleteRule.objectID - Unique identifier of a rule object.
|
|
291
|
+
* @param deleteRule.forwardToReplicas - Indicates whether changed index settings are forwarded to the replica indices.
|
|
292
292
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
293
293
|
*/
|
|
294
294
|
deleteRule({ indexName, objectID, forwardToReplicas }: DeleteRuleProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
295
295
|
/**
|
|
296
|
-
* Remove a
|
|
296
|
+
* Remove a source from the list of allowed sources.
|
|
297
297
|
*
|
|
298
|
-
* @summary Remove a
|
|
298
|
+
* @summary Remove a source.
|
|
299
299
|
* @param deleteSource - The deleteSource object.
|
|
300
|
-
* @param deleteSource.source -
|
|
300
|
+
* @param deleteSource.source - IP address range of the source.
|
|
301
301
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
302
302
|
*/
|
|
303
303
|
deleteSource({ source }: DeleteSourceProps, requestOptions?: RequestOptions): Promise<DeleteSourceResponse>;
|
|
304
304
|
/**
|
|
305
|
-
* Delete a
|
|
305
|
+
* Delete a synonym by its `objectID`. To find the object IDs of your synonyms, use the [`search` operation](#tag/Synonyms/operation/searchSynonyms).
|
|
306
306
|
*
|
|
307
|
-
* @summary Delete synonym.
|
|
307
|
+
* @summary Delete a synonym.
|
|
308
308
|
* @param deleteSynonym - The deleteSynonym object.
|
|
309
|
-
* @param deleteSynonym.indexName -
|
|
310
|
-
* @param deleteSynonym.objectID - Unique identifier of
|
|
311
|
-
* @param deleteSynonym.forwardToReplicas -
|
|
309
|
+
* @param deleteSynonym.indexName - Index on which to perform the request.
|
|
310
|
+
* @param deleteSynonym.objectID - Unique identifier of a synonym object.
|
|
311
|
+
* @param deleteSynonym.forwardToReplicas - Indicates whether changed index settings are forwarded to the replica indices.
|
|
312
312
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
313
313
|
*/
|
|
314
314
|
deleteSynonym({ indexName, objectID, forwardToReplicas }: DeleteSynonymProps, requestOptions?: RequestOptions): Promise<DeletedAtResponse>;
|
|
@@ -317,120 +317,120 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
|
|
|
317
317
|
*
|
|
318
318
|
* @summary Send requests to the Algolia REST API.
|
|
319
319
|
* @param get - The get object.
|
|
320
|
-
* @param get.path -
|
|
321
|
-
* @param get.parameters - Query parameters to
|
|
320
|
+
* @param get.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
321
|
+
* @param get.parameters - Query parameters to apply to the current query.
|
|
322
322
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
323
323
|
*/
|
|
324
324
|
get({ path, parameters }: GetProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
325
325
|
/**
|
|
326
|
-
* Get the permissions of
|
|
326
|
+
* Get the permissions and restrictions of a specific 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.
|
|
327
327
|
*
|
|
328
|
-
* @summary Get
|
|
328
|
+
* @summary Get API key permissions.
|
|
329
329
|
* @param getApiKey - The getApiKey object.
|
|
330
|
-
* @param getApiKey.key - API
|
|
330
|
+
* @param getApiKey.key - API key.
|
|
331
331
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
332
332
|
*/
|
|
333
333
|
getApiKey({ key }: GetApiKeyProps, requestOptions?: RequestOptions): Promise<GetApiKeyResponse>;
|
|
334
334
|
/**
|
|
335
|
-
*
|
|
335
|
+
* Lists Algolia\'s [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/) and any customizations applied to each language\'s [stop word](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/how-to/customize-stop-words/), [plural](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/how-to/customize-plurals-and-other-declensions/), and [segmentation (compound)](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/how-to/customize-segmentation/) features.
|
|
336
336
|
*
|
|
337
337
|
* @summary List available languages.
|
|
338
338
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
339
339
|
*/
|
|
340
340
|
getDictionaryLanguages(requestOptions?: RequestOptions): Promise<Record<string, Languages>>;
|
|
341
341
|
/**
|
|
342
|
-
*
|
|
342
|
+
* Get the languages for which [stop words are turned off](#tag/Dictionaries/operation/setDictionarySettings).
|
|
343
343
|
*
|
|
344
|
-
* @summary
|
|
344
|
+
* @summary Get stop word settings.
|
|
345
345
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
346
346
|
*/
|
|
347
347
|
getDictionarySettings(requestOptions?: RequestOptions): Promise<GetDictionarySettingsResponse>;
|
|
348
348
|
/**
|
|
349
|
-
*
|
|
349
|
+
* 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. There\'s also a logging limit of 1,000 API calls per server. 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. > **Note**: To fetch the logs for a Distributed Search Network (DSN) cluster, target the [DSN\'s endpoint](https://www.algolia.com/doc/guides/scaling/distributed-search-network-dsn/#accessing-dsn-servers).
|
|
350
350
|
*
|
|
351
351
|
* @summary Return the latest log entries.
|
|
352
352
|
* @param getLogs - The getLogs object.
|
|
353
|
-
* @param getLogs.offset - First entry to retrieve
|
|
354
|
-
* @param getLogs.length - Maximum number of entries to retrieve.
|
|
355
|
-
* @param getLogs.indexName - Index for which log entries should be retrieved. When omitted, log entries are retrieved
|
|
353
|
+
* @param getLogs.offset - First log entry to retrieve. Sorted by decreasing date with 0 being the most recent.
|
|
354
|
+
* @param getLogs.length - Maximum number of entries to retrieve.
|
|
355
|
+
* @param getLogs.indexName - Index for which log entries should be retrieved. When omitted, log entries are retrieved for all indices.
|
|
356
356
|
* @param getLogs.type - Type of log entries to retrieve. When omitted, all log entries are retrieved.
|
|
357
357
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
358
358
|
*/
|
|
359
359
|
getLogs({ offset, length, indexName, type }?: GetLogsProps, requestOptions?: RequestOptions | undefined): Promise<GetLogsResponse>;
|
|
360
360
|
/**
|
|
361
|
-
*
|
|
361
|
+
* To get more than one record, use the [`objects` operation](#tag/Records/operation/getObjects).
|
|
362
362
|
*
|
|
363
|
-
* @summary
|
|
363
|
+
* @summary Get a record.
|
|
364
364
|
* @param getObject - The getObject object.
|
|
365
|
-
* @param getObject.indexName -
|
|
366
|
-
* @param getObject.objectID - Unique
|
|
367
|
-
* @param getObject.attributesToRetrieve -
|
|
365
|
+
* @param getObject.indexName - Index on which to perform the request.
|
|
366
|
+
* @param getObject.objectID - Unique record (object) identifier.
|
|
367
|
+
* @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, even when not specified. [`unretrievableAttributes`](https://www.algolia.com/doc/api-reference/api-parameters/unretrievableAttributes/) won\'t be retrieved unless the request is authenticated with the admin API key.
|
|
368
368
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
369
369
|
*/
|
|
370
370
|
getObject({ indexName, objectID, attributesToRetrieve }: GetObjectProps, requestOptions?: RequestOptions): Promise<Record<string, string>>;
|
|
371
371
|
/**
|
|
372
|
-
* Retrieve one or more
|
|
372
|
+
* Retrieve one or more records, potentially from different indices, in a single API operation. Results will be received in the same order as the requests.
|
|
373
373
|
*
|
|
374
|
-
* @summary
|
|
375
|
-
* @param getObjectsParams -
|
|
374
|
+
* @summary Get multiple records.
|
|
375
|
+
* @param getObjectsParams - Request object.
|
|
376
376
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
377
377
|
*/
|
|
378
378
|
getObjects<T_2>(getObjectsParams: GetObjectsParams, requestOptions?: RequestOptions): Promise<GetObjectsResponse<T_2>>;
|
|
379
379
|
/**
|
|
380
|
-
*
|
|
380
|
+
* Get a rule by its `objectID`. To find the `objectID` for rules, use the [`search` operation](#tag/Rules/operation/searchRules).
|
|
381
381
|
*
|
|
382
382
|
* @summary Get a rule.
|
|
383
383
|
* @param getRule - The getRule object.
|
|
384
|
-
* @param getRule.indexName -
|
|
385
|
-
* @param getRule.objectID - Unique identifier of
|
|
384
|
+
* @param getRule.indexName - Index on which to perform the request.
|
|
385
|
+
* @param getRule.objectID - Unique identifier of a rule object.
|
|
386
386
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
387
387
|
*/
|
|
388
388
|
getRule({ indexName, objectID }: GetRuleProps, requestOptions?: RequestOptions): Promise<Rule>;
|
|
389
389
|
/**
|
|
390
|
-
*
|
|
390
|
+
* Return an object containing an index\'s [configuration settings](https://www.algolia.com/doc/api-reference/settings-api-parameters/).
|
|
391
391
|
*
|
|
392
|
-
* @summary
|
|
392
|
+
* @summary Get index settings.
|
|
393
393
|
* @param getSettings - The getSettings object.
|
|
394
|
-
* @param getSettings.indexName -
|
|
394
|
+
* @param getSettings.indexName - Index on which to perform the request.
|
|
395
395
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
396
396
|
*/
|
|
397
397
|
getSettings({ indexName }: GetSettingsProps, requestOptions?: RequestOptions): Promise<IndexSettings>;
|
|
398
398
|
/**
|
|
399
|
-
*
|
|
399
|
+
* Get all allowed sources (IP addresses).
|
|
400
400
|
*
|
|
401
|
-
* @summary
|
|
401
|
+
* @summary Get all allowed IP addresses.
|
|
402
402
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
403
403
|
*/
|
|
404
404
|
getSources(requestOptions?: RequestOptions): Promise<Source[]>;
|
|
405
405
|
/**
|
|
406
|
-
*
|
|
406
|
+
* Get a syonym by its `objectID`. To find the object IDs for your synonyms, use the [`search` operation](#tag/Synonyms/operation/searchSynonyms).
|
|
407
407
|
*
|
|
408
|
-
* @summary Get synonym.
|
|
408
|
+
* @summary Get a synonym object.
|
|
409
409
|
* @param getSynonym - The getSynonym object.
|
|
410
|
-
* @param getSynonym.indexName -
|
|
411
|
-
* @param getSynonym.objectID - Unique identifier of
|
|
410
|
+
* @param getSynonym.indexName - Index on which to perform the request.
|
|
411
|
+
* @param getSynonym.objectID - Unique identifier of a synonym object.
|
|
412
412
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
413
413
|
*/
|
|
414
414
|
getSynonym({ indexName, objectID }: GetSynonymProps, requestOptions?: RequestOptions): Promise<SynonymHit>;
|
|
415
415
|
/**
|
|
416
|
-
*
|
|
416
|
+
* Some operations, such as copying an index, will respond with a `taskID` value. Use this value here to check the status of that task.
|
|
417
417
|
*
|
|
418
|
-
* @summary Check
|
|
418
|
+
* @summary Check a task\'s status.
|
|
419
419
|
* @param getTask - The getTask object.
|
|
420
|
-
* @param getTask.indexName -
|
|
421
|
-
* @param getTask.taskID - Unique
|
|
420
|
+
* @param getTask.indexName - Index on which to perform the request.
|
|
421
|
+
* @param getTask.taskID - Unique task identifier.
|
|
422
422
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
423
423
|
*/
|
|
424
424
|
getTask({ indexName, taskID }: GetTaskProps, requestOptions?: RequestOptions): Promise<GetTaskResponse>;
|
|
425
425
|
/**
|
|
426
|
-
* Get the
|
|
426
|
+
* Get the IDs of the 10 users with the highest number of records per cluster. Since it can take up to a few seconds to get the data from the different clusters, the response isn\'t real-time.
|
|
427
427
|
*
|
|
428
428
|
* @summary Get top userID.
|
|
429
429
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
430
430
|
*/
|
|
431
431
|
getTopUserIds(requestOptions?: RequestOptions): Promise<GetTopUserIdsResponse>;
|
|
432
432
|
/**
|
|
433
|
-
* Returns the userID data stored in the mapping.
|
|
433
|
+
* Returns the userID data stored in the mapping. Since it can take up to a few seconds to get the data from the different clusters, the response isn\'t real-time.
|
|
434
434
|
*
|
|
435
435
|
* @summary Get userID.
|
|
436
436
|
* @param getUserId - The getUserId object.
|
|
@@ -439,74 +439,75 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
|
|
|
439
439
|
*/
|
|
440
440
|
getUserId({ userID }: GetUserIdProps, requestOptions?: RequestOptions): Promise<UserId>;
|
|
441
441
|
/**
|
|
442
|
-
*
|
|
442
|
+
* To determine when the time-consuming process of creating a large batch of users or migrating users from one cluster to another is complete, this operation retrieves the status of the process.
|
|
443
443
|
*
|
|
444
|
-
* @summary Get migration status.
|
|
444
|
+
* @summary Get migration and user mapping status.
|
|
445
445
|
* @param hasPendingMappings - The hasPendingMappings object.
|
|
446
|
-
* @param hasPendingMappings.getClusters -
|
|
446
|
+
* @param hasPendingMappings.getClusters - Indicates whether to include the cluster\'s pending mapping state in the response.
|
|
447
447
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
448
448
|
*/
|
|
449
449
|
hasPendingMappings({ getClusters }?: HasPendingMappingsProps, requestOptions?: RequestOptions | undefined): Promise<HasPendingMappingsResponse>;
|
|
450
450
|
/**
|
|
451
|
-
* List API keys
|
|
451
|
+
* List all API keys associated with your Algolia application, including their permissions and restrictions.
|
|
452
452
|
*
|
|
453
|
-
* @summary List API
|
|
453
|
+
* @summary List API keys.
|
|
454
454
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
455
455
|
*/
|
|
456
456
|
listApiKeys(requestOptions?: RequestOptions): Promise<ListApiKeysResponse>;
|
|
457
457
|
/**
|
|
458
|
-
* List the clusters
|
|
458
|
+
* List the available clusters in a multi-cluster setup.
|
|
459
459
|
*
|
|
460
460
|
* @summary List clusters.
|
|
461
461
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
462
462
|
*/
|
|
463
463
|
listClusters(requestOptions?: RequestOptions): Promise<ListClustersResponse>;
|
|
464
464
|
/**
|
|
465
|
-
* List
|
|
465
|
+
* List indices in an Algolia application.
|
|
466
466
|
*
|
|
467
|
-
* @summary List
|
|
467
|
+
* @summary List indices.
|
|
468
468
|
* @param listIndices - The listIndices object.
|
|
469
|
-
* @param listIndices.page -
|
|
469
|
+
* @param listIndices.page - Returns the requested page number. The page size is determined by the `hitsPerPage` parameter. You can see the number of available pages in the `nbPages` response attribute. When `page` is null, the API response is not paginated.
|
|
470
|
+
* @param listIndices.hitsPerPage - Maximum number of hits per page.
|
|
470
471
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
471
472
|
*/
|
|
472
|
-
listIndices({ page }?: ListIndicesProps, requestOptions?: RequestOptions | undefined): Promise<ListIndicesResponse>;
|
|
473
|
+
listIndices({ page, hitsPerPage }?: ListIndicesProps, requestOptions?: RequestOptions | undefined): Promise<ListIndicesResponse>;
|
|
473
474
|
/**
|
|
474
|
-
* List the userIDs assigned to a multi-
|
|
475
|
+
* List the userIDs assigned to a multi-cluster application. Since it can take up to a few seconds to get the data from the different clusters, the response isn\'t real-time.
|
|
475
476
|
*
|
|
476
477
|
* @summary List userIDs.
|
|
477
478
|
* @param listUserIds - The listUserIds object.
|
|
478
|
-
* @param listUserIds.page -
|
|
479
|
-
* @param listUserIds.hitsPerPage - Maximum number of
|
|
479
|
+
* @param listUserIds.page - Returns the requested page number. The page size is determined by the `hitsPerPage` parameter. You can see the number of available pages in the `nbPages` response attribute. When `page` is null, the API response is not paginated.
|
|
480
|
+
* @param listUserIds.hitsPerPage - Maximum number of hits per page.
|
|
480
481
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
481
482
|
*/
|
|
482
483
|
listUserIds({ page, hitsPerPage }?: ListUserIdsProps, requestOptions?: RequestOptions | undefined): Promise<ListUserIdsResponse>;
|
|
483
484
|
/**
|
|
484
|
-
*
|
|
485
|
+
* To reduce the time spent on network round trips, you can perform several write actions in a single request. It\'s a multi-index version of the [`batch` operation](#tag/Records/operation/batch). Actions are applied in the order they are specified. The supported actions are equivalent to the individual operations of the same name.
|
|
485
486
|
*
|
|
486
|
-
* @summary Batch operations
|
|
487
|
+
* @summary Batch write operations on multiple indices.
|
|
487
488
|
* @param batchParams - The batchParams object.
|
|
488
489
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
489
490
|
*/
|
|
490
491
|
multipleBatch(batchParams: BatchParams, requestOptions?: RequestOptions): Promise<MultipleBatchResponse>;
|
|
491
492
|
/**
|
|
492
|
-
*
|
|
493
|
+
* This `operation`, _copy_ or _move_, will copy or move a source index\'s (`IndexName`) records, settings, synonyms, and rules to a `destination` index. If the destination index exists, it will be replaced, except for index-specific API keys and analytics data. If the destination index doesn\'t exist, it will be created. The choice between moving or copying an index depends on your needs. Choose: - **Move** to rename an index. - **Copy** to create a new index with the same records and configuration as an existing one. > **Note**: When considering copying or moving, be aware of the [rate limitations](https://www.algolia.com/doc/guides/scaling/algolia-service-limits/#application-record-and-index-limits) on these processes and the [impact on your analytics data](https://www.algolia.com/doc/guides/sending-and-managing-data/manage-indices-and-apps/manage-indices/concepts/indices-analytics/).
|
|
493
494
|
*
|
|
494
|
-
* @summary Copy
|
|
495
|
+
* @summary Copy, move, or rename an index.
|
|
495
496
|
* @param operationIndex - The operationIndex object.
|
|
496
|
-
* @param operationIndex.indexName -
|
|
497
|
+
* @param operationIndex.indexName - Index on which to perform the request.
|
|
497
498
|
* @param operationIndex.operationIndexParams - The operationIndexParams object.
|
|
498
499
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
499
500
|
*/
|
|
500
501
|
operationIndex({ indexName, operationIndexParams }: OperationIndexProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
501
502
|
/**
|
|
502
|
-
*
|
|
503
|
+
* Add new attributes or update current ones in an existing record. You can use any first-level attribute but not nested attributes. If you specify a [nested attribute](https://www.algolia.com/doc/guides/sending-and-managing-data/prepare-your-data/how-to/creating-and-using-nested-attributes/), the engine treats it as a replacement for its first-level ancestor.
|
|
503
504
|
*
|
|
504
|
-
* @summary
|
|
505
|
+
* @summary Update record attributes.
|
|
505
506
|
* @param partialUpdateObject - The partialUpdateObject object.
|
|
506
|
-
* @param partialUpdateObject.indexName -
|
|
507
|
-
* @param partialUpdateObject.objectID - Unique
|
|
508
|
-
* @param partialUpdateObject.attributesToUpdate -
|
|
509
|
-
* @param partialUpdateObject.createIfNotExists -
|
|
507
|
+
* @param partialUpdateObject.indexName - Index on which to perform the request.
|
|
508
|
+
* @param partialUpdateObject.objectID - Unique record (object) identifier.
|
|
509
|
+
* @param partialUpdateObject.attributesToUpdate - Object with attributes to update.
|
|
510
|
+
* @param partialUpdateObject.createIfNotExists - Indicates whether to create a new record if it doesn\'t exist yet.
|
|
510
511
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
511
512
|
*/
|
|
512
513
|
partialUpdateObject({ indexName, objectID, attributesToUpdate, createIfNotExists, }: PartialUpdateObjectProps, requestOptions?: RequestOptions): Promise<UpdatedAtWithObjectIdResponse>;
|
|
@@ -515,9 +516,9 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
|
|
|
515
516
|
*
|
|
516
517
|
* @summary Send requests to the Algolia REST API.
|
|
517
518
|
* @param post - The post object.
|
|
518
|
-
* @param post.path -
|
|
519
|
-
* @param post.parameters - Query parameters to
|
|
520
|
-
* @param post.body -
|
|
519
|
+
* @param post.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
520
|
+
* @param post.parameters - Query parameters to apply to the current query.
|
|
521
|
+
* @param post.body - Parameters to send with the custom request.
|
|
521
522
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
522
523
|
*/
|
|
523
524
|
post({ path, parameters, body }: PostProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
@@ -526,14 +527,14 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
|
|
|
526
527
|
*
|
|
527
528
|
* @summary Send requests to the Algolia REST API.
|
|
528
529
|
* @param put - The put object.
|
|
529
|
-
* @param put.path -
|
|
530
|
-
* @param put.parameters - Query parameters to
|
|
531
|
-
* @param put.body -
|
|
530
|
+
* @param put.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
531
|
+
* @param put.parameters - Query parameters to apply to the current query.
|
|
532
|
+
* @param put.body - Parameters to send with the custom request.
|
|
532
533
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
533
534
|
*/
|
|
534
535
|
put({ path, parameters, body }: PutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
535
536
|
/**
|
|
536
|
-
* Remove a userID and its associated data from the multi-clusters.
|
|
537
|
+
* Remove a userID and its associated data from the multi-clusters.
|
|
537
538
|
*
|
|
538
539
|
* @summary Remove userID.
|
|
539
540
|
* @param removeUserId - The removeUserId object.
|
|
@@ -544,174 +545,174 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
|
|
|
544
545
|
/**
|
|
545
546
|
* Replace all allowed sources.
|
|
546
547
|
*
|
|
547
|
-
* @summary Replace all
|
|
548
|
+
* @summary Replace all sources.
|
|
548
549
|
* @param replaceSources - The replaceSources object.
|
|
549
|
-
* @param replaceSources.source -
|
|
550
|
+
* @param replaceSources.source - Allowed sources.
|
|
550
551
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
551
552
|
*/
|
|
552
553
|
replaceSources({ source }: ReplaceSourcesProps, requestOptions?: RequestOptions): Promise<ReplaceSourceResponse>;
|
|
553
554
|
/**
|
|
554
|
-
* Restore a deleted API key, along with its associated
|
|
555
|
+
* Restore a deleted API key, along with its associated permissions. The request must be authenticated with the admin API key.
|
|
555
556
|
*
|
|
556
|
-
* @summary Restore
|
|
557
|
+
* @summary Restore API key.
|
|
557
558
|
* @param restoreApiKey - The restoreApiKey object.
|
|
558
|
-
* @param restoreApiKey.key - API
|
|
559
|
+
* @param restoreApiKey.key - API key.
|
|
559
560
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
560
561
|
*/
|
|
561
562
|
restoreApiKey({ key }: RestoreApiKeyProps, requestOptions?: RequestOptions): Promise<AddApiKeyResponse>;
|
|
562
563
|
/**
|
|
563
|
-
* Add
|
|
564
|
+
* Add a record (object) to an index or replace it. If the record doesn\'t contain an `objectID`, Algolia automatically adds it. If you use an existing `objectID`, the existing record is replaced with the new one. To add multiple records to your index in a single API request, use the [`batch` operation](#tag/Records/operation/batch).
|
|
564
565
|
*
|
|
565
|
-
* @summary Add
|
|
566
|
+
* @summary Add or update a record.
|
|
566
567
|
* @param saveObject - The saveObject object.
|
|
567
|
-
* @param saveObject.indexName -
|
|
568
|
+
* @param saveObject.indexName - Index on which to perform the request.
|
|
568
569
|
* @param saveObject.body - The Algolia record.
|
|
569
570
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
570
571
|
*/
|
|
571
572
|
saveObject({ indexName, body }: SaveObjectProps, requestOptions?: RequestOptions): Promise<SaveObjectResponse>;
|
|
572
573
|
/**
|
|
573
|
-
*
|
|
574
|
+
* To create or update more than one rule, use the [`batch` operation](#tag/Rules/operation/saveRules).
|
|
574
575
|
*
|
|
575
|
-
* @summary
|
|
576
|
+
* @summary Create or update a rule.
|
|
576
577
|
* @param saveRule - The saveRule object.
|
|
577
|
-
* @param saveRule.indexName -
|
|
578
|
-
* @param saveRule.objectID - Unique identifier of
|
|
578
|
+
* @param saveRule.indexName - Index on which to perform the request.
|
|
579
|
+
* @param saveRule.objectID - Unique identifier of a rule object.
|
|
579
580
|
* @param saveRule.rule - The rule object.
|
|
580
|
-
* @param saveRule.forwardToReplicas -
|
|
581
|
+
* @param saveRule.forwardToReplicas - Indicates whether changed index settings are forwarded to the replica indices.
|
|
581
582
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
582
583
|
*/
|
|
583
584
|
saveRule({ indexName, objectID, rule, forwardToReplicas }: SaveRuleProps, requestOptions?: RequestOptions): Promise<UpdatedRuleResponse>;
|
|
584
585
|
/**
|
|
585
|
-
* Create
|
|
586
|
+
* Create or update multiple rules.
|
|
586
587
|
*
|
|
587
588
|
* @summary Save a batch of rules.
|
|
588
589
|
* @param saveRules - The saveRules object.
|
|
589
|
-
* @param saveRules.indexName -
|
|
590
|
+
* @param saveRules.indexName - Index on which to perform the request.
|
|
590
591
|
* @param saveRules.rules - The rules object.
|
|
591
|
-
* @param saveRules.forwardToReplicas -
|
|
592
|
-
* @param saveRules.clearExistingRules -
|
|
592
|
+
* @param saveRules.forwardToReplicas - Indicates whether changed index settings are forwarded to the replica indices.
|
|
593
|
+
* @param saveRules.clearExistingRules - Indicates whether existing rules should be deleted before adding this batch.
|
|
593
594
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
594
595
|
*/
|
|
595
596
|
saveRules({ indexName, rules, forwardToReplicas, clearExistingRules, }: SaveRulesProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
596
597
|
/**
|
|
597
|
-
*
|
|
598
|
+
* Add a [synonym](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/adding-synonyms/#the-different-types-of-synonyms) to an index or replace it. If the synonym `objectID` doesn\'t exist, Algolia adds a new one. If you use an existing synonym `objectID`, the existing synonym is replaced with the new one. To add multiple synonyms in a single API request, use the [`batch` operation](#tag/Synonyms/operation/saveSynonyms).
|
|
598
599
|
*
|
|
599
|
-
* @summary Save synonym.
|
|
600
|
+
* @summary Save a synonym.
|
|
600
601
|
* @param saveSynonym - The saveSynonym object.
|
|
601
|
-
* @param saveSynonym.indexName -
|
|
602
|
-
* @param saveSynonym.objectID - Unique identifier of
|
|
602
|
+
* @param saveSynonym.indexName - Index on which to perform the request.
|
|
603
|
+
* @param saveSynonym.objectID - Unique identifier of a synonym object.
|
|
603
604
|
* @param saveSynonym.synonymHit - The synonymHit object.
|
|
604
|
-
* @param saveSynonym.forwardToReplicas -
|
|
605
|
+
* @param saveSynonym.forwardToReplicas - Indicates whether changed index settings are forwarded to the replica indices.
|
|
605
606
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
606
607
|
*/
|
|
607
608
|
saveSynonym({ indexName, objectID, synonymHit, forwardToReplicas }: SaveSynonymProps, requestOptions?: RequestOptions): Promise<SaveSynonymResponse>;
|
|
608
609
|
/**
|
|
609
|
-
* Create
|
|
610
|
+
* Create or update multiple synonyms.
|
|
610
611
|
*
|
|
611
612
|
* @summary Save a batch of synonyms.
|
|
612
613
|
* @param saveSynonyms - The saveSynonyms object.
|
|
613
|
-
* @param saveSynonyms.indexName -
|
|
614
|
+
* @param saveSynonyms.indexName - Index on which to perform the request.
|
|
614
615
|
* @param saveSynonyms.synonymHit - The synonymHit object.
|
|
615
|
-
* @param saveSynonyms.forwardToReplicas -
|
|
616
|
-
* @param saveSynonyms.replaceExistingSynonyms -
|
|
616
|
+
* @param saveSynonyms.forwardToReplicas - Indicates whether changed index settings are forwarded to the replica indices.
|
|
617
|
+
* @param saveSynonyms.replaceExistingSynonyms - Indicates whether to replace all synonyms in the index with the ones sent with this request.
|
|
617
618
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
618
619
|
*/
|
|
619
620
|
saveSynonyms({ indexName, synonymHit, forwardToReplicas, replaceExistingSynonyms, }: SaveSynonymsProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
620
621
|
/**
|
|
621
|
-
*
|
|
622
|
+
* Send multiple search queries to one or more indices.
|
|
622
623
|
*
|
|
623
624
|
* @summary Search multiple indices.
|
|
624
|
-
* @param searchMethodParams -
|
|
625
|
+
* @param searchMethodParams - Query requests and strategies. Results will be received in the same order as the queries.
|
|
625
626
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
626
627
|
*/
|
|
627
628
|
search<T_3>(searchMethodParams: LegacySearchMethodProps | SearchMethodParams, requestOptions?: RequestOptions): Promise<SearchResponses<T_3>>;
|
|
628
629
|
/**
|
|
629
|
-
* Search the
|
|
630
|
+
* Search for standard and [custom](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/how-to/customize-stop-words/) entries in the [stop words](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/how-to/customize-stop-words/), [plurals](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/how-to/customize-plurals-and-other-declensions/), or [segmentation (compounds)](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/how-to/customize-segmentation/) dictionaries.
|
|
630
631
|
*
|
|
631
|
-
* @summary Search
|
|
632
|
+
* @summary Search dictionary entries.
|
|
632
633
|
* @param searchDictionaryEntries - The searchDictionaryEntries object.
|
|
633
|
-
* @param searchDictionaryEntries.dictionaryName -
|
|
634
|
+
* @param searchDictionaryEntries.dictionaryName - Dictionary to search in.
|
|
634
635
|
* @param searchDictionaryEntries.searchDictionaryEntriesParams - The searchDictionaryEntriesParams object.
|
|
635
636
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
636
637
|
*/
|
|
637
638
|
searchDictionaryEntries({ dictionaryName, searchDictionaryEntriesParams, }: SearchDictionaryEntriesProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
638
639
|
/**
|
|
639
|
-
* Search for
|
|
640
|
+
* [Search for a facet\'s values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values), optionally restricting the returned values to those contained in records matching other search criteria. > **Note**: Pagination isn\'t supported (`page` and `hitsPerPage` are ignored). By default, the engine returns a maximum of 10 values but you can adjust this with `maxFacetHits`.
|
|
640
641
|
*
|
|
641
|
-
* @summary Search for values
|
|
642
|
+
* @summary Search for facet values.
|
|
642
643
|
* @param searchForFacetValues - The searchForFacetValues object.
|
|
643
|
-
* @param searchForFacetValues.indexName -
|
|
644
|
-
* @param searchForFacetValues.facetName -
|
|
644
|
+
* @param searchForFacetValues.indexName - Index on which to perform the request.
|
|
645
|
+
* @param searchForFacetValues.facetName - Facet name.
|
|
645
646
|
* @param searchForFacetValues.searchForFacetValuesRequest - The searchForFacetValuesRequest object.
|
|
646
647
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
647
648
|
*/
|
|
648
649
|
searchForFacetValues({ indexName, facetName, searchForFacetValuesRequest, }: SearchForFacetValuesProps, requestOptions?: RequestOptions): Promise<SearchForFacetValuesResponse>;
|
|
649
650
|
/**
|
|
650
|
-
* Search for rules
|
|
651
|
+
* Search for rules in your index. You can control the search with parameters. To list all rules, send an empty request body.
|
|
651
652
|
*
|
|
652
653
|
* @summary Search for rules.
|
|
653
654
|
* @param searchRules - The searchRules object.
|
|
654
|
-
* @param searchRules.indexName -
|
|
655
|
+
* @param searchRules.indexName - Index on which to perform the request.
|
|
655
656
|
* @param searchRules.searchRulesParams - The searchRulesParams object.
|
|
656
657
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
657
658
|
*/
|
|
658
659
|
searchRules({ indexName, searchRulesParams }: SearchRulesProps, requestOptions?: RequestOptions): Promise<SearchRulesResponse>;
|
|
659
660
|
/**
|
|
660
|
-
*
|
|
661
|
+
* Return records that match the query.
|
|
661
662
|
*
|
|
662
|
-
* @summary Search
|
|
663
|
+
* @summary Search an index.
|
|
663
664
|
* @param searchSingleIndex - The searchSingleIndex object.
|
|
664
|
-
* @param searchSingleIndex.indexName -
|
|
665
|
+
* @param searchSingleIndex.indexName - Index on which to perform the request.
|
|
665
666
|
* @param searchSingleIndex.searchParams - The searchParams object.
|
|
666
667
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
667
668
|
*/
|
|
668
669
|
searchSingleIndex<T_4>({ indexName, searchParams }: SearchSingleIndexProps, requestOptions?: RequestOptions): Promise<SearchResponse<T_4>>;
|
|
669
670
|
/**
|
|
670
|
-
* Search
|
|
671
|
+
* Search for synonyms in your index. You can control and filter the search with parameters. To get all synonyms, send an empty request body.
|
|
671
672
|
*
|
|
672
|
-
* @summary Search synonyms.
|
|
673
|
+
* @summary Search for synonyms.
|
|
673
674
|
* @param searchSynonyms - The searchSynonyms object.
|
|
674
|
-
* @param searchSynonyms.indexName -
|
|
675
|
-
* @param searchSynonyms.type -
|
|
676
|
-
* @param searchSynonyms.page -
|
|
677
|
-
* @param searchSynonyms.hitsPerPage - Maximum number of
|
|
678
|
-
* @param searchSynonyms.searchSynonymsParams -
|
|
675
|
+
* @param searchSynonyms.indexName - Index on which to perform the request.
|
|
676
|
+
* @param searchSynonyms.type - Search for specific [types of synonyms](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/adding-synonyms/#the-different-types-of-synonyms).
|
|
677
|
+
* @param searchSynonyms.page - Returns the requested page number (the first page is 0). Page size is set by `hitsPerPage`. When null, there\'s no pagination.
|
|
678
|
+
* @param searchSynonyms.hitsPerPage - Maximum number of hits per page.
|
|
679
|
+
* @param searchSynonyms.searchSynonymsParams - Body of the `searchSynonyms` operation.
|
|
679
680
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
680
681
|
*/
|
|
681
682
|
searchSynonyms({ indexName, type, page, hitsPerPage, searchSynonymsParams, }: SearchSynonymsProps, requestOptions?: RequestOptions): Promise<SearchSynonymsResponse>;
|
|
682
683
|
/**
|
|
683
|
-
*
|
|
684
|
+
* Since it can take up to 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).
|
|
684
685
|
*
|
|
685
|
-
* @summary Search
|
|
686
|
+
* @summary Search for a user ID.
|
|
686
687
|
* @param searchUserIdsParams - The searchUserIdsParams object.
|
|
687
688
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
688
689
|
*/
|
|
689
690
|
searchUserIds(searchUserIdsParams: SearchUserIdsParams, requestOptions?: RequestOptions): Promise<SearchUserIdsResponse>;
|
|
690
691
|
/**
|
|
691
|
-
* Set
|
|
692
|
+
* Set stop word settings for a specific language.
|
|
692
693
|
*
|
|
693
|
-
* @summary Set
|
|
694
|
+
* @summary Set stop word settings.
|
|
694
695
|
* @param dictionarySettingsParams - The dictionarySettingsParams object.
|
|
695
696
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
696
697
|
*/
|
|
697
698
|
setDictionarySettings(dictionarySettingsParams: DictionarySettingsParams, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
698
699
|
/**
|
|
699
|
-
* Update
|
|
700
|
+
* Update the specified [index settings](https://www.algolia.com/doc/api-reference/settings-api-parameters/). Specifying null for a setting resets it to its default value.
|
|
700
701
|
*
|
|
701
|
-
* @summary Update settings
|
|
702
|
+
* @summary Update index settings.
|
|
702
703
|
* @param setSettings - The setSettings object.
|
|
703
|
-
* @param setSettings.indexName -
|
|
704
|
+
* @param setSettings.indexName - Index on which to perform the request.
|
|
704
705
|
* @param setSettings.indexSettings - The indexSettings object.
|
|
705
|
-
* @param setSettings.forwardToReplicas -
|
|
706
|
+
* @param setSettings.forwardToReplicas - Indicates whether changed index settings are forwarded to the replica indices.
|
|
706
707
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
707
708
|
*/
|
|
708
709
|
setSettings({ indexName, indexSettings, forwardToReplicas }: SetSettingsProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
709
710
|
/**
|
|
710
|
-
* Replace
|
|
711
|
+
* Replace the permissions of an existing API key. Any unspecified parameter resets that permission to its default value. The request must be authenticated with the admin API key.
|
|
711
712
|
*
|
|
712
713
|
* @summary Update an API key.
|
|
713
714
|
* @param updateApiKey - The updateApiKey object.
|
|
714
|
-
* @param updateApiKey.key - API
|
|
715
|
+
* @param updateApiKey.key - API key.
|
|
715
716
|
* @param updateApiKey.apiKey - The apiKey object.
|
|
716
717
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
717
718
|
*/
|