@algolia/client-search 5.0.0-alpha.105 → 5.0.0-alpha.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builds/browser.d.ts +1 -1
- package/dist/builds/node.d.ts +1 -1
- package/dist/client-search.cjs +121 -121
- package/dist/client-search.esm.browser.js +121 -121
- package/dist/client-search.esm.node.js +121 -121
- package/dist/client-search.umd.js +2 -2
- package/dist/model/acl.d.ts +1 -1
- package/dist/model/action.d.ts +1 -1
- package/dist/model/addApiKeyResponse.d.ts +1 -1
- package/dist/model/anchoring.d.ts +1 -1
- package/dist/model/apiKey.d.ts +8 -8
- package/dist/model/aroundPrecision.d.ts +1 -1
- package/dist/model/aroundPrecisionFromValueInner.d.ts +9 -0
- package/dist/model/aroundPrecisionFromValueInner.d.ts.map +1 -1
- package/dist/model/aroundRadius.d.ts +1 -1
- package/dist/model/aroundRadiusAll.d.ts +3 -0
- package/dist/model/aroundRadiusAll.d.ts.map +1 -1
- package/dist/model/automaticFacetFilter.d.ts +4 -4
- package/dist/model/automaticFacetFilters.d.ts +1 -1
- package/dist/model/baseIndexSettings.d.ts +20 -16
- package/dist/model/baseIndexSettings.d.ts.map +1 -1
- package/dist/model/baseSearchParamsWithoutQuery.d.ts +24 -28
- package/dist/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
- package/dist/model/baseSearchResponse.d.ts +6 -6
- package/dist/model/batchDictionaryEntriesParams.d.ts +3 -3
- package/dist/model/batchResponse.d.ts +2 -2
- package/dist/model/builtInOperation.d.ts +2 -2
- package/dist/model/builtInOperationType.d.ts +1 -1
- package/dist/model/clientMethodProps.d.ts +63 -63
- package/dist/model/condition.d.ts +7 -3
- package/dist/model/condition.d.ts.map +1 -1
- package/dist/model/consequence.d.ts +5 -5
- package/dist/model/consequenceHide.d.ts +2 -2
- package/dist/model/consequenceQuery.d.ts +1 -1
- package/dist/model/consequenceQueryObject.d.ts +2 -2
- package/dist/model/createdAtResponse.d.ts +1 -1
- package/dist/model/cursor.d.ts +1 -1
- package/dist/model/deleteByParams.d.ts +4 -4
- package/dist/model/deletedAtResponse.d.ts +1 -1
- package/dist/model/dictionaryEntry.d.ts +5 -5
- package/dist/model/dictionaryEntryState.d.ts +1 -1
- package/dist/model/dictionaryLanguage.d.ts +2 -2
- package/dist/model/dictionarySettingsParams.d.ts +1 -1
- package/dist/model/distinct.d.ts +1 -1
- package/dist/model/edit.d.ts +1 -1
- package/dist/model/exactOnSingleWordQuery.d.ts +1 -1
- package/dist/model/facetFilters.d.ts +1 -1
- package/dist/model/facetHits.d.ts +2 -2
- package/dist/model/facetOrdering.d.ts +2 -2
- package/dist/model/facets.d.ts +2 -2
- package/dist/model/getObjectsRequest.d.ts +3 -3
- package/dist/model/getObjectsResponse.d.ts +1 -1
- package/dist/model/hasPendingMappingsResponse.d.ts +1 -1
- package/dist/model/highlightResultOption.d.ts +3 -3
- package/dist/model/hit.d.ts +4 -4
- package/dist/model/ignorePlurals.d.ts +1 -1
- package/dist/model/index.d.ts +1 -0
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/indexSettings.d.ts +1 -1
- package/dist/model/indexSettingsAsSearchParams.d.ts +30 -34
- package/dist/model/indexSettingsAsSearchParams.d.ts.map +1 -1
- package/dist/model/log.d.ts +11 -11
- package/dist/model/logQuery.d.ts +1 -1
- package/dist/model/matchLevel.d.ts +1 -1
- package/dist/model/mode.d.ts +1 -1
- package/dist/model/multipleBatchResponse.d.ts +2 -2
- package/dist/model/numericFilters.d.ts +1 -1
- package/dist/model/operationIndexParams.d.ts +2 -2
- package/dist/model/operationType.d.ts +1 -1
- package/dist/model/optionalFilters.d.ts +1 -1
- package/dist/model/params.d.ts +1 -1
- package/dist/model/promoteObjectID.d.ts +2 -2
- package/dist/model/promoteObjectIDs.d.ts +2 -2
- package/dist/model/queryType.d.ts +1 -1
- package/dist/model/rankingInfo.d.ts +10 -7
- package/dist/model/rankingInfo.d.ts.map +1 -1
- package/dist/model/reRankingApplyFilter.d.ts +1 -1
- package/dist/model/removeStopWords.d.ts +1 -1
- package/dist/model/removeWordsIfNoResults.d.ts +1 -1
- package/dist/model/renderingContent.d.ts +1 -1
- package/dist/model/rule.d.ts +5 -5
- package/dist/model/saveObjectResponse.d.ts +3 -3
- package/dist/model/saveSynonymResponse.d.ts +1 -1
- package/dist/model/searchDictionaryEntriesParams.d.ts +4 -4
- package/dist/model/searchDictionaryEntriesResponse.d.ts +20 -0
- package/dist/model/searchDictionaryEntriesResponse.d.ts.map +1 -0
- package/dist/model/searchForFacetValuesRequest.d.ts +1 -1
- package/dist/model/searchForFacetValuesResponse.d.ts +3 -0
- package/dist/model/searchForFacetValuesResponse.d.ts.map +1 -1
- package/dist/model/searchForFacetsOptions.d.ts +2 -2
- package/dist/model/searchForHitsOptions.d.ts +1 -1
- package/dist/model/searchHits.d.ts +6 -3
- package/dist/model/searchHits.d.ts.map +1 -1
- package/dist/model/searchParamsQuery.d.ts +1 -1
- package/dist/model/searchRulesParams.d.ts +4 -8
- package/dist/model/searchRulesParams.d.ts.map +1 -1
- package/dist/model/searchRulesResponse.d.ts +2 -2
- package/dist/model/searchStrategy.d.ts +1 -1
- package/dist/model/searchSynonymsParams.d.ts +2 -2
- package/dist/model/searchSynonymsResponse.d.ts +2 -2
- package/dist/model/searchUserIdsParams.d.ts +1 -1
- package/dist/model/searchUserIdsResponse.d.ts +2 -2
- package/dist/model/securedAPIKeyRestrictions.d.ts +5 -5
- package/dist/model/semanticSearch.d.ts +2 -2
- package/dist/model/snippetResultOption.d.ts +2 -2
- package/dist/model/sortRemainingBy.d.ts +1 -1
- package/dist/model/tagFilters.d.ts +1 -1
- package/dist/model/taskStatus.d.ts +1 -1
- package/dist/model/timeRange.d.ts +2 -2
- package/dist/model/typoTolerance.d.ts +1 -1
- package/dist/model/typoToleranceEnum.d.ts +3 -0
- package/dist/model/typoToleranceEnum.d.ts.map +1 -1
- package/dist/model/updatedAtResponse.d.ts +1 -1
- package/dist/model/updatedAtWithObjectIdResponse.d.ts +2 -2
- package/dist/model/updatedRuleResponse.d.ts +2 -2
- package/dist/model/userHit.d.ts +1 -1
- package/dist/model/userId.d.ts +1 -1
- package/dist/model/value.d.ts +1 -1
- package/dist/src/searchClient.d.ts +124 -123
- package/dist/src/searchClient.d.ts.map +1 -1
- package/model/acl.ts +1 -1
- package/model/action.ts +1 -1
- package/model/addApiKeyResponse.ts +1 -1
- package/model/anchoring.ts +1 -1
- package/model/apiKey.ts +8 -8
- package/model/aroundPrecision.ts +1 -1
- package/model/aroundPrecisionFromValueInner.ts +9 -0
- package/model/aroundRadius.ts +1 -1
- package/model/aroundRadiusAll.ts +3 -0
- package/model/automaticFacetFilter.ts +4 -4
- package/model/automaticFacetFilters.ts +1 -1
- package/model/baseIndexSettings.ts +21 -16
- package/model/baseSearchParamsWithoutQuery.ts +24 -29
- package/model/baseSearchResponse.ts +6 -6
- package/model/batchDictionaryEntriesParams.ts +3 -3
- package/model/batchResponse.ts +2 -2
- package/model/builtInOperation.ts +2 -2
- package/model/builtInOperationType.ts +1 -1
- package/model/clientMethodProps.ts +63 -63
- package/model/condition.ts +8 -3
- package/model/consequence.ts +5 -5
- package/model/consequenceHide.ts +2 -2
- package/model/consequenceQuery.ts +1 -1
- package/model/consequenceQueryObject.ts +2 -2
- package/model/createdAtResponse.ts +1 -1
- package/model/cursor.ts +1 -1
- package/model/deleteByParams.ts +4 -4
- package/model/deletedAtResponse.ts +1 -1
- package/model/dictionaryEntry.ts +5 -5
- package/model/dictionaryEntryState.ts +1 -1
- package/model/dictionaryLanguage.ts +2 -2
- package/model/dictionarySettingsParams.ts +1 -1
- package/model/distinct.ts +1 -1
- package/model/edit.ts +1 -1
- package/model/exactOnSingleWordQuery.ts +1 -1
- package/model/facetFilters.ts +1 -1
- package/model/facetHits.ts +2 -2
- package/model/facetOrdering.ts +2 -2
- package/model/facets.ts +2 -2
- package/model/getObjectsRequest.ts +3 -3
- package/model/getObjectsResponse.ts +1 -1
- package/model/hasPendingMappingsResponse.ts +1 -1
- package/model/highlightResultOption.ts +3 -3
- package/model/hit.ts +4 -4
- package/model/ignorePlurals.ts +1 -1
- package/model/index.ts +1 -0
- package/model/indexSettings.ts +1 -1
- package/model/indexSettingsAsSearchParams.ts +30 -35
- package/model/log.ts +11 -11
- package/model/logQuery.ts +1 -1
- package/model/matchLevel.ts +1 -1
- package/model/mode.ts +1 -1
- package/model/multipleBatchResponse.ts +2 -2
- package/model/numericFilters.ts +1 -1
- package/model/operationIndexParams.ts +2 -2
- package/model/operationType.ts +1 -1
- package/model/optionalFilters.ts +1 -1
- package/model/params.ts +1 -1
- package/model/promoteObjectID.ts +2 -2
- package/model/promoteObjectIDs.ts +2 -2
- package/model/queryType.ts +1 -1
- package/model/rankingInfo.ts +10 -7
- package/model/reRankingApplyFilter.ts +1 -1
- package/model/removeStopWords.ts +1 -1
- package/model/removeWordsIfNoResults.ts +1 -1
- package/model/renderingContent.ts +1 -1
- package/model/rule.ts +5 -5
- package/model/saveObjectResponse.ts +3 -3
- package/model/saveSynonymResponse.ts +1 -1
- package/model/searchDictionaryEntriesParams.ts +4 -4
- package/model/searchDictionaryEntriesResponse.ts +25 -0
- package/model/searchForFacetValuesRequest.ts +1 -1
- package/model/searchForFacetValuesResponse.ts +3 -0
- package/model/searchForFacetsOptions.ts +2 -2
- package/model/searchForHitsOptions.ts +1 -1
- package/model/searchHits.ts +6 -3
- package/model/searchParamsQuery.ts +1 -1
- package/model/searchRulesParams.ts +4 -9
- package/model/searchRulesResponse.ts +2 -2
- package/model/searchStrategy.ts +1 -1
- package/model/searchSynonymsParams.ts +2 -2
- package/model/searchSynonymsResponse.ts +2 -2
- package/model/searchUserIdsParams.ts +1 -1
- package/model/searchUserIdsResponse.ts +2 -2
- package/model/securedAPIKeyRestrictions.ts +5 -5
- package/model/semanticSearch.ts +2 -2
- package/model/snippetResultOption.ts +2 -2
- package/model/sortRemainingBy.ts +1 -1
- package/model/tagFilters.ts +1 -1
- package/model/taskStatus.ts +1 -1
- package/model/timeRange.ts +2 -2
- package/model/typoTolerance.ts +1 -1
- package/model/typoToleranceEnum.ts +3 -0
- package/model/updatedAtResponse.ts +1 -1
- package/model/updatedAtWithObjectIdResponse.ts +2 -2
- package/model/updatedRuleResponse.ts +2 -2
- package/model/userHit.ts +1 -1
- package/model/userId.ts +1 -1
- package/model/value.ts +1 -1
- package/package.json +7 -7
package/dist/client-search.cjs
CHANGED
|
@@ -5,7 +5,7 @@ var clientCommon = require('@algolia/client-common');
|
|
|
5
5
|
var requesterNodeHttp = require('@algolia/requester-node-http');
|
|
6
6
|
|
|
7
7
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
8
|
-
const apiClientVersion = '5.0.0-alpha.
|
|
8
|
+
const apiClientVersion = '5.0.0-alpha.107';
|
|
9
9
|
function getDefaultHosts(appId) {
|
|
10
10
|
return [
|
|
11
11
|
{
|
|
@@ -343,7 +343,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
343
343
|
return { copyOperationResponse, batchResponses, moveOperationResponse };
|
|
344
344
|
},
|
|
345
345
|
/**
|
|
346
|
-
*
|
|
346
|
+
* Creates a new API key with specific permissions and restrictions.
|
|
347
347
|
*
|
|
348
348
|
* Required API Key ACLs:
|
|
349
349
|
* - admin.
|
|
@@ -371,15 +371,15 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
371
371
|
return transporter.request(request, requestOptions);
|
|
372
372
|
},
|
|
373
373
|
/**
|
|
374
|
-
* If
|
|
374
|
+
* 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).
|
|
375
375
|
*
|
|
376
376
|
* Required API Key ACLs:
|
|
377
377
|
* - addObject.
|
|
378
378
|
*
|
|
379
379
|
* @param addOrUpdateObject - The addOrUpdateObject object.
|
|
380
|
-
* @param addOrUpdateObject.indexName -
|
|
381
|
-
* @param addOrUpdateObject.objectID - Unique record
|
|
382
|
-
* @param addOrUpdateObject.body -
|
|
380
|
+
* @param addOrUpdateObject.indexName - Name of the index on which to perform the operation.
|
|
381
|
+
* @param addOrUpdateObject.objectID - Unique record identifier.
|
|
382
|
+
* @param addOrUpdateObject.body - The record, a schemaless object with attributes that are useful in the context of search and discovery.
|
|
383
383
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
384
384
|
*/
|
|
385
385
|
addOrUpdateObject({ indexName, objectID, body }, requestOptions) {
|
|
@@ -407,7 +407,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
407
407
|
return transporter.request(request, requestOptions);
|
|
408
408
|
},
|
|
409
409
|
/**
|
|
410
|
-
*
|
|
410
|
+
* Adds a source to the list of allowed sources.
|
|
411
411
|
*
|
|
412
412
|
* Required API Key ACLs:
|
|
413
413
|
* - admin.
|
|
@@ -435,13 +435,13 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
435
435
|
return transporter.request(request, requestOptions);
|
|
436
436
|
},
|
|
437
437
|
/**
|
|
438
|
-
*
|
|
438
|
+
* 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.
|
|
439
439
|
*
|
|
440
440
|
* Required API Key ACLs:
|
|
441
441
|
* - admin.
|
|
442
442
|
*
|
|
443
443
|
* @param assignUserId - The assignUserId object.
|
|
444
|
-
* @param assignUserId.xAlgoliaUserID -
|
|
444
|
+
* @param assignUserId.xAlgoliaUserID - User ID to assign.
|
|
445
445
|
* @param assignUserId.assignUserIdParams - The assignUserIdParams object.
|
|
446
446
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
447
447
|
*/
|
|
@@ -471,10 +471,10 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
471
471
|
return transporter.request(request, requestOptions);
|
|
472
472
|
},
|
|
473
473
|
/**
|
|
474
|
-
*
|
|
474
|
+
* 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.
|
|
475
475
|
*
|
|
476
476
|
* @param batch - The batch object.
|
|
477
|
-
* @param batch.indexName -
|
|
477
|
+
* @param batch.indexName - Name of the index on which to perform the operation.
|
|
478
478
|
* @param batch.batchWriteParams - The batchWriteParams object.
|
|
479
479
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
480
480
|
*/
|
|
@@ -501,13 +501,13 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
501
501
|
return transporter.request(request, requestOptions);
|
|
502
502
|
},
|
|
503
503
|
/**
|
|
504
|
-
*
|
|
504
|
+
* Assigns multiple user IDs to a cluster. **You can\'t move users with this operation**.
|
|
505
505
|
*
|
|
506
506
|
* Required API Key ACLs:
|
|
507
507
|
* - admin.
|
|
508
508
|
*
|
|
509
509
|
* @param batchAssignUserIds - The batchAssignUserIds object.
|
|
510
|
-
* @param batchAssignUserIds.xAlgoliaUserID -
|
|
510
|
+
* @param batchAssignUserIds.xAlgoliaUserID - User ID to assign.
|
|
511
511
|
* @param batchAssignUserIds.batchAssignUserIdsParams - The batchAssignUserIdsParams object.
|
|
512
512
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
513
513
|
*/
|
|
@@ -540,13 +540,13 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
540
540
|
return transporter.request(request, requestOptions);
|
|
541
541
|
},
|
|
542
542
|
/**
|
|
543
|
-
*
|
|
543
|
+
* Adds or deletes multiple entries from your plurals, segmentation, or stop word dictionaries.
|
|
544
544
|
*
|
|
545
545
|
* Required API Key ACLs:
|
|
546
546
|
* - editSettings.
|
|
547
547
|
*
|
|
548
548
|
* @param batchDictionaryEntries - The batchDictionaryEntries object.
|
|
549
|
-
* @param batchDictionaryEntries.dictionaryName - Dictionary to search
|
|
549
|
+
* @param batchDictionaryEntries.dictionaryName - Dictionary type in which to search.
|
|
550
550
|
* @param batchDictionaryEntries.batchDictionaryEntriesParams - The batchDictionaryEntriesParams object.
|
|
551
551
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
552
552
|
*/
|
|
@@ -573,13 +573,13 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
573
573
|
return transporter.request(request, requestOptions);
|
|
574
574
|
},
|
|
575
575
|
/**
|
|
576
|
-
*
|
|
576
|
+
* 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.
|
|
577
577
|
*
|
|
578
578
|
* Required API Key ACLs:
|
|
579
579
|
* - browse.
|
|
580
580
|
*
|
|
581
581
|
* @param browse - The browse object.
|
|
582
|
-
* @param browse.indexName -
|
|
582
|
+
* @param browse.indexName - Name of the index on which to perform the operation.
|
|
583
583
|
* @param browse.browseParams - The browseParams object.
|
|
584
584
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
585
585
|
*/
|
|
@@ -600,13 +600,13 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
600
600
|
return transporter.request(request, requestOptions);
|
|
601
601
|
},
|
|
602
602
|
/**
|
|
603
|
-
*
|
|
603
|
+
* Deletes only the records from an index while keeping settings, synonyms, and rules.
|
|
604
604
|
*
|
|
605
605
|
* Required API Key ACLs:
|
|
606
606
|
* - deleteIndex.
|
|
607
607
|
*
|
|
608
608
|
* @param clearObjects - The clearObjects object.
|
|
609
|
-
* @param clearObjects.indexName -
|
|
609
|
+
* @param clearObjects.indexName - Name of the index on which to perform the operation.
|
|
610
610
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
611
611
|
*/
|
|
612
612
|
clearObjects({ indexName }, requestOptions) {
|
|
@@ -625,14 +625,14 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
625
625
|
return transporter.request(request, requestOptions);
|
|
626
626
|
},
|
|
627
627
|
/**
|
|
628
|
-
*
|
|
628
|
+
* Deletes all rules from the index.
|
|
629
629
|
*
|
|
630
630
|
* Required API Key ACLs:
|
|
631
631
|
* - editSettings.
|
|
632
632
|
*
|
|
633
633
|
* @param clearRules - The clearRules object.
|
|
634
|
-
* @param clearRules.indexName -
|
|
635
|
-
* @param clearRules.forwardToReplicas -
|
|
634
|
+
* @param clearRules.indexName - Name of the index on which to perform the operation.
|
|
635
|
+
* @param clearRules.forwardToReplicas - Whether changes are applied to replica indices.
|
|
636
636
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
637
637
|
*/
|
|
638
638
|
clearRules({ indexName, forwardToReplicas }, requestOptions) {
|
|
@@ -654,14 +654,14 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
654
654
|
return transporter.request(request, requestOptions);
|
|
655
655
|
},
|
|
656
656
|
/**
|
|
657
|
-
*
|
|
657
|
+
* Deletes all synonyms from the index.
|
|
658
658
|
*
|
|
659
659
|
* Required API Key ACLs:
|
|
660
660
|
* - editSettings.
|
|
661
661
|
*
|
|
662
662
|
* @param clearSynonyms - The clearSynonyms object.
|
|
663
|
-
* @param clearSynonyms.indexName -
|
|
664
|
-
* @param clearSynonyms.forwardToReplicas -
|
|
663
|
+
* @param clearSynonyms.indexName - Name of the index on which to perform the operation.
|
|
664
|
+
* @param clearSynonyms.forwardToReplicas - Whether changes are applied to replica indices.
|
|
665
665
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
666
666
|
*/
|
|
667
667
|
clearSynonyms({ indexName, forwardToReplicas }, requestOptions) {
|
|
@@ -779,7 +779,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
779
779
|
return transporter.request(request, requestOptions);
|
|
780
780
|
},
|
|
781
781
|
/**
|
|
782
|
-
*
|
|
782
|
+
* Deletes the API key.
|
|
783
783
|
*
|
|
784
784
|
* Required API Key ACLs:
|
|
785
785
|
* - admin.
|
|
@@ -804,13 +804,13 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
804
804
|
return transporter.request(request, requestOptions);
|
|
805
805
|
},
|
|
806
806
|
/**
|
|
807
|
-
* This operation doesn\'t
|
|
807
|
+
* 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).
|
|
808
808
|
*
|
|
809
809
|
* Required API Key ACLs:
|
|
810
810
|
* - deleteIndex.
|
|
811
811
|
*
|
|
812
812
|
* @param deleteBy - The deleteBy object.
|
|
813
|
-
* @param deleteBy.indexName -
|
|
813
|
+
* @param deleteBy.indexName - Name of the index on which to perform the operation.
|
|
814
814
|
* @param deleteBy.deleteByParams - The deleteByParams object.
|
|
815
815
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
816
816
|
*/
|
|
@@ -834,13 +834,13 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
834
834
|
return transporter.request(request, requestOptions);
|
|
835
835
|
},
|
|
836
836
|
/**
|
|
837
|
-
*
|
|
837
|
+
* 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/).
|
|
838
838
|
*
|
|
839
839
|
* Required API Key ACLs:
|
|
840
840
|
* - deleteIndex.
|
|
841
841
|
*
|
|
842
842
|
* @param deleteIndex - The deleteIndex object.
|
|
843
|
-
* @param deleteIndex.indexName -
|
|
843
|
+
* @param deleteIndex.indexName - Name of the index on which to perform the operation.
|
|
844
844
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
845
845
|
*/
|
|
846
846
|
deleteIndex({ indexName }, requestOptions) {
|
|
@@ -859,14 +859,14 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
859
859
|
return transporter.request(request, requestOptions);
|
|
860
860
|
},
|
|
861
861
|
/**
|
|
862
|
-
* To delete
|
|
862
|
+
* 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).
|
|
863
863
|
*
|
|
864
864
|
* Required API Key ACLs:
|
|
865
865
|
* - deleteObject.
|
|
866
866
|
*
|
|
867
867
|
* @param deleteObject - The deleteObject object.
|
|
868
|
-
* @param deleteObject.indexName -
|
|
869
|
-
* @param deleteObject.objectID - Unique record
|
|
868
|
+
* @param deleteObject.indexName - Name of the index on which to perform the operation.
|
|
869
|
+
* @param deleteObject.objectID - Unique record identifier.
|
|
870
870
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
871
871
|
*/
|
|
872
872
|
deleteObject({ indexName, objectID }, requestOptions) {
|
|
@@ -890,15 +890,15 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
890
890
|
return transporter.request(request, requestOptions);
|
|
891
891
|
},
|
|
892
892
|
/**
|
|
893
|
-
*
|
|
893
|
+
* Deletes a rule by its ID. To find the object ID for rules, use the [`search` operation](#tag/Rules/operation/searchRules).
|
|
894
894
|
*
|
|
895
895
|
* Required API Key ACLs:
|
|
896
896
|
* - editSettings.
|
|
897
897
|
*
|
|
898
898
|
* @param deleteRule - The deleteRule object.
|
|
899
|
-
* @param deleteRule.indexName -
|
|
899
|
+
* @param deleteRule.indexName - Name of the index on which to perform the operation.
|
|
900
900
|
* @param deleteRule.objectID - Unique identifier of a rule object.
|
|
901
|
-
* @param deleteRule.forwardToReplicas -
|
|
901
|
+
* @param deleteRule.forwardToReplicas - Whether changes are applied to replica indices.
|
|
902
902
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
903
903
|
*/
|
|
904
904
|
deleteRule({ indexName, objectID, forwardToReplicas }, requestOptions) {
|
|
@@ -925,7 +925,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
925
925
|
return transporter.request(request, requestOptions);
|
|
926
926
|
},
|
|
927
927
|
/**
|
|
928
|
-
*
|
|
928
|
+
* Deletes a source from the list of allowed sources.
|
|
929
929
|
*
|
|
930
930
|
* Required API Key ACLs:
|
|
931
931
|
* - admin.
|
|
@@ -950,15 +950,15 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
950
950
|
return transporter.request(request, requestOptions);
|
|
951
951
|
},
|
|
952
952
|
/**
|
|
953
|
-
*
|
|
953
|
+
* Deletes a synonym by its ID. To find the object IDs of your synonyms, use the [`search` operation](#tag/Synonyms/operation/searchSynonyms).
|
|
954
954
|
*
|
|
955
955
|
* Required API Key ACLs:
|
|
956
956
|
* - editSettings.
|
|
957
957
|
*
|
|
958
958
|
* @param deleteSynonym - The deleteSynonym object.
|
|
959
|
-
* @param deleteSynonym.indexName -
|
|
959
|
+
* @param deleteSynonym.indexName - Name of the index on which to perform the operation.
|
|
960
960
|
* @param deleteSynonym.objectID - Unique identifier of a synonym object.
|
|
961
|
-
* @param deleteSynonym.forwardToReplicas -
|
|
961
|
+
* @param deleteSynonym.forwardToReplicas - Whether changes are applied to replica indices.
|
|
962
962
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
963
963
|
*/
|
|
964
964
|
deleteSynonym({ indexName, objectID, forwardToReplicas }, requestOptions) {
|
|
@@ -985,7 +985,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
985
985
|
return transporter.request(request, requestOptions);
|
|
986
986
|
},
|
|
987
987
|
/**
|
|
988
|
-
*
|
|
988
|
+
* 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.
|
|
989
989
|
*
|
|
990
990
|
* @param getApiKey - The getApiKey object.
|
|
991
991
|
* @param getApiKey.key - API key.
|
|
@@ -1007,7 +1007,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1007
1007
|
return transporter.request(request, requestOptions);
|
|
1008
1008
|
},
|
|
1009
1009
|
/**
|
|
1010
|
-
* Lists
|
|
1010
|
+
* Lists supported languages with their supported dictionary types and number of custom entries.
|
|
1011
1011
|
*
|
|
1012
1012
|
* Required API Key ACLs:
|
|
1013
1013
|
* - settings.
|
|
@@ -1027,7 +1027,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1027
1027
|
return transporter.request(request, requestOptions);
|
|
1028
1028
|
},
|
|
1029
1029
|
/**
|
|
1030
|
-
*
|
|
1030
|
+
* Retrieves the languages for which standard dictionary entries are turned off.
|
|
1031
1031
|
*
|
|
1032
1032
|
* Required API Key ACLs:
|
|
1033
1033
|
* - settings.
|
|
@@ -1047,16 +1047,16 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1047
1047
|
return transporter.request(request, requestOptions);
|
|
1048
1048
|
},
|
|
1049
1049
|
/**
|
|
1050
|
-
* 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.
|
|
1050
|
+
* 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.
|
|
1051
1051
|
*
|
|
1052
1052
|
* Required API Key ACLs:
|
|
1053
1053
|
* - logs.
|
|
1054
1054
|
*
|
|
1055
1055
|
* @param getLogs - The getLogs object.
|
|
1056
|
-
* @param getLogs.offset - First log entry to retrieve.
|
|
1056
|
+
* @param getLogs.offset - First log entry to retrieve. The most recent entries are listed first.
|
|
1057
1057
|
* @param getLogs.length - Maximum number of entries to retrieve.
|
|
1058
|
-
* @param getLogs.indexName - Index for which log entries
|
|
1059
|
-
* @param getLogs.type - Type of log entries to retrieve.
|
|
1058
|
+
* @param getLogs.indexName - Index for which to retrieve log entries. By default, log entries are retrieved for all indices.
|
|
1059
|
+
* @param getLogs.type - Type of log entries to retrieve. By default, all log entries are retrieved.
|
|
1060
1060
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1061
1061
|
*/
|
|
1062
1062
|
getLogs({ offset, length, indexName, type } = {}, requestOptions = undefined) {
|
|
@@ -1084,15 +1084,15 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1084
1084
|
return transporter.request(request, requestOptions);
|
|
1085
1085
|
},
|
|
1086
1086
|
/**
|
|
1087
|
-
* To
|
|
1087
|
+
* Retrieves one record by its object ID. To retrieve more than one record, use the [`objects` operation](#tag/Records/operation/getObjects).
|
|
1088
1088
|
*
|
|
1089
1089
|
* Required API Key ACLs:
|
|
1090
1090
|
* - search.
|
|
1091
1091
|
*
|
|
1092
1092
|
* @param getObject - The getObject object.
|
|
1093
|
-
* @param getObject.indexName -
|
|
1094
|
-
* @param getObject.objectID - Unique record
|
|
1095
|
-
* @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.
|
|
1093
|
+
* @param getObject.indexName - Name of the index on which to perform the operation.
|
|
1094
|
+
* @param getObject.objectID - Unique record identifier.
|
|
1095
|
+
* @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.
|
|
1096
1096
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1097
1097
|
*/
|
|
1098
1098
|
getObject({ indexName, objectID, attributesToRetrieve }, requestOptions) {
|
|
@@ -1119,7 +1119,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1119
1119
|
return transporter.request(request, requestOptions);
|
|
1120
1120
|
},
|
|
1121
1121
|
/**
|
|
1122
|
-
*
|
|
1122
|
+
* Retrieves one or more records, potentially from different indices. Records are returned in the same order as the requests.
|
|
1123
1123
|
*
|
|
1124
1124
|
* Required API Key ACLs:
|
|
1125
1125
|
* - search.
|
|
@@ -1149,13 +1149,13 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1149
1149
|
return transporter.request(request, requestOptions);
|
|
1150
1150
|
},
|
|
1151
1151
|
/**
|
|
1152
|
-
*
|
|
1152
|
+
* Retrieves a rule by its ID. To find the object ID of rules, use the [`search` operation](#tag/Rules/operation/searchRules).
|
|
1153
1153
|
*
|
|
1154
1154
|
* Required API Key ACLs:
|
|
1155
1155
|
* - settings.
|
|
1156
1156
|
*
|
|
1157
1157
|
* @param getRule - The getRule object.
|
|
1158
|
-
* @param getRule.indexName -
|
|
1158
|
+
* @param getRule.indexName - Name of the index on which to perform the operation.
|
|
1159
1159
|
* @param getRule.objectID - Unique identifier of a rule object.
|
|
1160
1160
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1161
1161
|
*/
|
|
@@ -1180,13 +1180,13 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1180
1180
|
return transporter.request(request, requestOptions);
|
|
1181
1181
|
},
|
|
1182
1182
|
/**
|
|
1183
|
-
*
|
|
1183
|
+
* Retrieves an object with non-null index settings.
|
|
1184
1184
|
*
|
|
1185
1185
|
* Required API Key ACLs:
|
|
1186
1186
|
* - search.
|
|
1187
1187
|
*
|
|
1188
1188
|
* @param getSettings - The getSettings object.
|
|
1189
|
-
* @param getSettings.indexName -
|
|
1189
|
+
* @param getSettings.indexName - Name of the index on which to perform the operation.
|
|
1190
1190
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1191
1191
|
*/
|
|
1192
1192
|
getSettings({ indexName }, requestOptions) {
|
|
@@ -1205,7 +1205,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1205
1205
|
return transporter.request(request, requestOptions);
|
|
1206
1206
|
},
|
|
1207
1207
|
/**
|
|
1208
|
-
*
|
|
1208
|
+
* Retrieves all allowed IP addresses with access to your application.
|
|
1209
1209
|
*
|
|
1210
1210
|
* Required API Key ACLs:
|
|
1211
1211
|
* - admin.
|
|
@@ -1225,13 +1225,13 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1225
1225
|
return transporter.request(request, requestOptions);
|
|
1226
1226
|
},
|
|
1227
1227
|
/**
|
|
1228
|
-
*
|
|
1228
|
+
* Retrieves a syonym by its ID. To find the object IDs for your synonyms, use the [`search` operation](#tag/Synonyms/operation/searchSynonyms).
|
|
1229
1229
|
*
|
|
1230
1230
|
* Required API Key ACLs:
|
|
1231
1231
|
* - settings.
|
|
1232
1232
|
*
|
|
1233
1233
|
* @param getSynonym - The getSynonym object.
|
|
1234
|
-
* @param getSynonym.indexName -
|
|
1234
|
+
* @param getSynonym.indexName - Name of the index on which to perform the operation.
|
|
1235
1235
|
* @param getSynonym.objectID - Unique identifier of a synonym object.
|
|
1236
1236
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1237
1237
|
*/
|
|
@@ -1256,13 +1256,13 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1256
1256
|
return transporter.request(request, requestOptions);
|
|
1257
1257
|
},
|
|
1258
1258
|
/**
|
|
1259
|
-
*
|
|
1259
|
+
* 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.
|
|
1260
1260
|
*
|
|
1261
1261
|
* Required API Key ACLs:
|
|
1262
1262
|
* - addObject.
|
|
1263
1263
|
*
|
|
1264
1264
|
* @param getTask - The getTask object.
|
|
1265
|
-
* @param getTask.indexName -
|
|
1265
|
+
* @param getTask.indexName - Name of the index on which to perform the operation.
|
|
1266
1266
|
* @param getTask.taskID - Unique task identifier.
|
|
1267
1267
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1268
1268
|
*/
|
|
@@ -1287,7 +1287,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1287
1287
|
return transporter.request(request, requestOptions);
|
|
1288
1288
|
},
|
|
1289
1289
|
/**
|
|
1290
|
-
* Get the IDs of the 10 users with the highest number of records per cluster.
|
|
1290
|
+
* 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.
|
|
1291
1291
|
*
|
|
1292
1292
|
* Required API Key ACLs:
|
|
1293
1293
|
* - admin.
|
|
@@ -1307,13 +1307,13 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1307
1307
|
return transporter.request(request, requestOptions);
|
|
1308
1308
|
},
|
|
1309
1309
|
/**
|
|
1310
|
-
* Returns the
|
|
1310
|
+
* 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.
|
|
1311
1311
|
*
|
|
1312
1312
|
* Required API Key ACLs:
|
|
1313
1313
|
* - admin.
|
|
1314
1314
|
*
|
|
1315
1315
|
* @param getUserId - The getUserId object.
|
|
1316
|
-
* @param getUserId.userID -
|
|
1316
|
+
* @param getUserId.userID - User ID to assign.
|
|
1317
1317
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1318
1318
|
*/
|
|
1319
1319
|
getUserId({ userID }, requestOptions) {
|
|
@@ -1338,7 +1338,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1338
1338
|
* - admin.
|
|
1339
1339
|
*
|
|
1340
1340
|
* @param hasPendingMappings - The hasPendingMappings object.
|
|
1341
|
-
* @param hasPendingMappings.getClusters -
|
|
1341
|
+
* @param hasPendingMappings.getClusters - Whether to include the cluster\'s pending mapping state in the response.
|
|
1342
1342
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1343
1343
|
*/
|
|
1344
1344
|
hasPendingMappings({ getClusters } = {}, requestOptions = undefined) {
|
|
@@ -1357,7 +1357,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1357
1357
|
return transporter.request(request, requestOptions);
|
|
1358
1358
|
},
|
|
1359
1359
|
/**
|
|
1360
|
-
*
|
|
1360
|
+
* Lists all API keys associated with your Algolia application, including their permissions and restrictions.
|
|
1361
1361
|
*
|
|
1362
1362
|
* Required API Key ACLs:
|
|
1363
1363
|
* - admin.
|
|
@@ -1377,7 +1377,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1377
1377
|
return transporter.request(request, requestOptions);
|
|
1378
1378
|
},
|
|
1379
1379
|
/**
|
|
1380
|
-
*
|
|
1380
|
+
* Lists the available clusters in a multi-cluster setup.
|
|
1381
1381
|
*
|
|
1382
1382
|
* Required API Key ACLs:
|
|
1383
1383
|
* - admin.
|
|
@@ -1397,14 +1397,14 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1397
1397
|
return transporter.request(request, requestOptions);
|
|
1398
1398
|
},
|
|
1399
1399
|
/**
|
|
1400
|
-
*
|
|
1400
|
+
* Lists all indices in the current Algolia application. The request follows any index restrictions of the API key you use to make the request.
|
|
1401
1401
|
*
|
|
1402
1402
|
* Required API Key ACLs:
|
|
1403
1403
|
* - listIndexes.
|
|
1404
1404
|
*
|
|
1405
1405
|
* @param listIndices - The listIndices object.
|
|
1406
|
-
* @param listIndices.page -
|
|
1407
|
-
* @param listIndices.hitsPerPage -
|
|
1406
|
+
* @param listIndices.page - Requested page of the API response. If `null`, the API response is not paginated.
|
|
1407
|
+
* @param listIndices.hitsPerPage - Number of hits per page.
|
|
1408
1408
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1409
1409
|
*/
|
|
1410
1410
|
listIndices({ page, hitsPerPage } = {}, requestOptions = undefined) {
|
|
@@ -1426,14 +1426,14 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1426
1426
|
return transporter.request(request, requestOptions);
|
|
1427
1427
|
},
|
|
1428
1428
|
/**
|
|
1429
|
-
*
|
|
1429
|
+
* 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.
|
|
1430
1430
|
*
|
|
1431
1431
|
* Required API Key ACLs:
|
|
1432
1432
|
* - admin.
|
|
1433
1433
|
*
|
|
1434
1434
|
* @param listUserIds - The listUserIds object.
|
|
1435
|
-
* @param listUserIds.page -
|
|
1436
|
-
* @param listUserIds.hitsPerPage -
|
|
1435
|
+
* @param listUserIds.page - Requested page of the API response. If `null`, the API response is not paginated.
|
|
1436
|
+
* @param listUserIds.hitsPerPage - Number of hits per page.
|
|
1437
1437
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1438
1438
|
*/
|
|
1439
1439
|
listUserIds({ page, hitsPerPage } = {}, requestOptions = undefined) {
|
|
@@ -1455,7 +1455,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1455
1455
|
return transporter.request(request, requestOptions);
|
|
1456
1456
|
},
|
|
1457
1457
|
/**
|
|
1458
|
-
*
|
|
1458
|
+
* 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.
|
|
1459
1459
|
*
|
|
1460
1460
|
* @param batchParams - The batchParams object.
|
|
1461
1461
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -1480,13 +1480,13 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1480
1480
|
return transporter.request(request, requestOptions);
|
|
1481
1481
|
},
|
|
1482
1482
|
/**
|
|
1483
|
-
*
|
|
1483
|
+
* 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/).
|
|
1484
1484
|
*
|
|
1485
1485
|
* Required API Key ACLs:
|
|
1486
1486
|
* - addObject.
|
|
1487
1487
|
*
|
|
1488
1488
|
* @param operationIndex - The operationIndex object.
|
|
1489
|
-
* @param operationIndex.indexName -
|
|
1489
|
+
* @param operationIndex.indexName - Name of the index on which to perform the operation.
|
|
1490
1490
|
* @param operationIndex.operationIndexParams - The operationIndexParams object.
|
|
1491
1491
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1492
1492
|
*/
|
|
@@ -1516,16 +1516,16 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1516
1516
|
return transporter.request(request, requestOptions);
|
|
1517
1517
|
},
|
|
1518
1518
|
/**
|
|
1519
|
-
*
|
|
1519
|
+
* 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.
|
|
1520
1520
|
*
|
|
1521
1521
|
* Required API Key ACLs:
|
|
1522
1522
|
* - addObject.
|
|
1523
1523
|
*
|
|
1524
1524
|
* @param partialUpdateObject - The partialUpdateObject object.
|
|
1525
|
-
* @param partialUpdateObject.indexName -
|
|
1526
|
-
* @param partialUpdateObject.objectID - Unique record
|
|
1527
|
-
* @param partialUpdateObject.attributesToUpdate -
|
|
1528
|
-
* @param partialUpdateObject.createIfNotExists -
|
|
1525
|
+
* @param partialUpdateObject.indexName - Name of the index on which to perform the operation.
|
|
1526
|
+
* @param partialUpdateObject.objectID - Unique record identifier.
|
|
1527
|
+
* @param partialUpdateObject.attributesToUpdate - Attributes with their values.
|
|
1528
|
+
* @param partialUpdateObject.createIfNotExists - Whether to create a new record if it doesn\'t exist.
|
|
1529
1529
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1530
1530
|
*/
|
|
1531
1531
|
partialUpdateObject({ indexName, objectID, attributesToUpdate, createIfNotExists, }, requestOptions) {
|
|
@@ -1556,13 +1556,13 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1556
1556
|
return transporter.request(request, requestOptions);
|
|
1557
1557
|
},
|
|
1558
1558
|
/**
|
|
1559
|
-
*
|
|
1559
|
+
* Deletes a user ID and its associated data from the clusters.
|
|
1560
1560
|
*
|
|
1561
1561
|
* Required API Key ACLs:
|
|
1562
1562
|
* - admin.
|
|
1563
1563
|
*
|
|
1564
1564
|
* @param removeUserId - The removeUserId object.
|
|
1565
|
-
* @param removeUserId.userID -
|
|
1565
|
+
* @param removeUserId.userID - User ID to assign.
|
|
1566
1566
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1567
1567
|
*/
|
|
1568
1568
|
removeUserId({ userID }, requestOptions) {
|
|
@@ -1581,7 +1581,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1581
1581
|
return transporter.request(request, requestOptions);
|
|
1582
1582
|
},
|
|
1583
1583
|
/**
|
|
1584
|
-
*
|
|
1584
|
+
* Replaces the list of allowed sources.
|
|
1585
1585
|
*
|
|
1586
1586
|
* Required API Key ACLs:
|
|
1587
1587
|
* - admin.
|
|
@@ -1607,7 +1607,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1607
1607
|
return transporter.request(request, requestOptions);
|
|
1608
1608
|
},
|
|
1609
1609
|
/**
|
|
1610
|
-
*
|
|
1610
|
+
* 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.
|
|
1611
1611
|
*
|
|
1612
1612
|
* Required API Key ACLs:
|
|
1613
1613
|
* - admin.
|
|
@@ -1632,14 +1632,14 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1632
1632
|
return transporter.request(request, requestOptions);
|
|
1633
1633
|
},
|
|
1634
1634
|
/**
|
|
1635
|
-
*
|
|
1635
|
+
* 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).
|
|
1636
1636
|
*
|
|
1637
1637
|
* Required API Key ACLs:
|
|
1638
1638
|
* - addObject.
|
|
1639
1639
|
*
|
|
1640
1640
|
* @param saveObject - The saveObject object.
|
|
1641
|
-
* @param saveObject.indexName -
|
|
1642
|
-
* @param saveObject.body - The
|
|
1641
|
+
* @param saveObject.indexName - Name of the index on which to perform the operation.
|
|
1642
|
+
* @param saveObject.body - The record, a schemaless object with attributes that are useful in the context of search and discovery.
|
|
1643
1643
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1644
1644
|
*/
|
|
1645
1645
|
saveObject({ indexName, body }, requestOptions) {
|
|
@@ -1662,16 +1662,16 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1662
1662
|
return transporter.request(request, requestOptions);
|
|
1663
1663
|
},
|
|
1664
1664
|
/**
|
|
1665
|
-
* To create or update more than one rule, use the [`batch` operation](#tag/Rules/operation/saveRules).
|
|
1665
|
+
* 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).
|
|
1666
1666
|
*
|
|
1667
1667
|
* Required API Key ACLs:
|
|
1668
1668
|
* - editSettings.
|
|
1669
1669
|
*
|
|
1670
1670
|
* @param saveRule - The saveRule object.
|
|
1671
|
-
* @param saveRule.indexName -
|
|
1671
|
+
* @param saveRule.indexName - Name of the index on which to perform the operation.
|
|
1672
1672
|
* @param saveRule.objectID - Unique identifier of a rule object.
|
|
1673
1673
|
* @param saveRule.rule - The rule object.
|
|
1674
|
-
* @param saveRule.forwardToReplicas -
|
|
1674
|
+
* @param saveRule.forwardToReplicas - Whether changes are applied to replica indices.
|
|
1675
1675
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1676
1676
|
*/
|
|
1677
1677
|
saveRule({ indexName, objectID, rule, forwardToReplicas }, requestOptions) {
|
|
@@ -1705,16 +1705,16 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1705
1705
|
return transporter.request(request, requestOptions);
|
|
1706
1706
|
},
|
|
1707
1707
|
/**
|
|
1708
|
-
* Create or update multiple rules.
|
|
1708
|
+
* 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.
|
|
1709
1709
|
*
|
|
1710
1710
|
* Required API Key ACLs:
|
|
1711
1711
|
* - editSettings.
|
|
1712
1712
|
*
|
|
1713
1713
|
* @param saveRules - The saveRules object.
|
|
1714
|
-
* @param saveRules.indexName -
|
|
1714
|
+
* @param saveRules.indexName - Name of the index on which to perform the operation.
|
|
1715
1715
|
* @param saveRules.rules - The rules object.
|
|
1716
|
-
* @param saveRules.forwardToReplicas -
|
|
1717
|
-
* @param saveRules.clearExistingRules -
|
|
1716
|
+
* @param saveRules.forwardToReplicas - Whether changes are applied to replica indices.
|
|
1717
|
+
* @param saveRules.clearExistingRules - Whether existing rules should be deleted before adding this batch.
|
|
1718
1718
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1719
1719
|
*/
|
|
1720
1720
|
saveRules({ indexName, rules, forwardToReplicas, clearExistingRules, }, requestOptions) {
|
|
@@ -1743,16 +1743,16 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1743
1743
|
return transporter.request(request, requestOptions);
|
|
1744
1744
|
},
|
|
1745
1745
|
/**
|
|
1746
|
-
*
|
|
1746
|
+
* 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).
|
|
1747
1747
|
*
|
|
1748
1748
|
* Required API Key ACLs:
|
|
1749
1749
|
* - editSettings.
|
|
1750
1750
|
*
|
|
1751
1751
|
* @param saveSynonym - The saveSynonym object.
|
|
1752
|
-
* @param saveSynonym.indexName -
|
|
1752
|
+
* @param saveSynonym.indexName - Name of the index on which to perform the operation.
|
|
1753
1753
|
* @param saveSynonym.objectID - Unique identifier of a synonym object.
|
|
1754
1754
|
* @param saveSynonym.synonymHit - The synonymHit object.
|
|
1755
|
-
* @param saveSynonym.forwardToReplicas -
|
|
1755
|
+
* @param saveSynonym.forwardToReplicas - Whether changes are applied to replica indices.
|
|
1756
1756
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1757
1757
|
*/
|
|
1758
1758
|
saveSynonym({ indexName, objectID, synonymHit, forwardToReplicas }, requestOptions) {
|
|
@@ -1789,16 +1789,16 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1789
1789
|
return transporter.request(request, requestOptions);
|
|
1790
1790
|
},
|
|
1791
1791
|
/**
|
|
1792
|
-
*
|
|
1792
|
+
* If a synonym with the `objectID` doesn\'t exist, Algolia adds a new one. Otherwise, existing synonyms are replaced.
|
|
1793
1793
|
*
|
|
1794
1794
|
* Required API Key ACLs:
|
|
1795
1795
|
* - editSettings.
|
|
1796
1796
|
*
|
|
1797
1797
|
* @param saveSynonyms - The saveSynonyms object.
|
|
1798
|
-
* @param saveSynonyms.indexName -
|
|
1798
|
+
* @param saveSynonyms.indexName - Name of the index on which to perform the operation.
|
|
1799
1799
|
* @param saveSynonyms.synonymHit - The synonymHit object.
|
|
1800
|
-
* @param saveSynonyms.forwardToReplicas -
|
|
1801
|
-
* @param saveSynonyms.replaceExistingSynonyms -
|
|
1800
|
+
* @param saveSynonyms.forwardToReplicas - Whether changes are applied to replica indices.
|
|
1801
|
+
* @param saveSynonyms.replaceExistingSynonyms - Whether to replace all synonyms in the index with the ones sent with this request.
|
|
1802
1802
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1803
1803
|
*/
|
|
1804
1804
|
saveSynonyms({ indexName, synonymHit, forwardToReplicas, replaceExistingSynonyms, }, requestOptions) {
|
|
@@ -1828,12 +1828,12 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1828
1828
|
return transporter.request(request, requestOptions);
|
|
1829
1829
|
},
|
|
1830
1830
|
/**
|
|
1831
|
-
*
|
|
1831
|
+
* 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.
|
|
1832
1832
|
*
|
|
1833
1833
|
* Required API Key ACLs:
|
|
1834
1834
|
* - search.
|
|
1835
1835
|
*
|
|
1836
|
-
* @param searchMethodParams -
|
|
1836
|
+
* @param searchMethodParams - Muli-search request body. Results are returned in the same order as the requests.
|
|
1837
1837
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1838
1838
|
*/
|
|
1839
1839
|
search(searchMethodParams, requestOptions) {
|
|
@@ -1880,13 +1880,13 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1880
1880
|
return transporter.request(request, requestOptions);
|
|
1881
1881
|
},
|
|
1882
1882
|
/**
|
|
1883
|
-
*
|
|
1883
|
+
* Searches for standard and custom dictionary entries.
|
|
1884
1884
|
*
|
|
1885
1885
|
* Required API Key ACLs:
|
|
1886
1886
|
* - settings.
|
|
1887
1887
|
*
|
|
1888
1888
|
* @param searchDictionaryEntries - The searchDictionaryEntries object.
|
|
1889
|
-
* @param searchDictionaryEntries.dictionaryName - Dictionary to search
|
|
1889
|
+
* @param searchDictionaryEntries.dictionaryName - Dictionary type in which to search.
|
|
1890
1890
|
* @param searchDictionaryEntries.searchDictionaryEntriesParams - The searchDictionaryEntriesParams object.
|
|
1891
1891
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1892
1892
|
*/
|
|
@@ -1915,14 +1915,14 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1915
1915
|
return transporter.request(request, requestOptions);
|
|
1916
1916
|
},
|
|
1917
1917
|
/**
|
|
1918
|
-
*
|
|
1918
|
+
* 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**.
|
|
1919
1919
|
*
|
|
1920
1920
|
* Required API Key ACLs:
|
|
1921
1921
|
* - search.
|
|
1922
1922
|
*
|
|
1923
1923
|
* @param searchForFacetValues - The searchForFacetValues object.
|
|
1924
|
-
* @param searchForFacetValues.indexName -
|
|
1925
|
-
* @param searchForFacetValues.facetName - Facet
|
|
1924
|
+
* @param searchForFacetValues.indexName - Name of the index on which to perform the operation.
|
|
1925
|
+
* @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.
|
|
1926
1926
|
* @param searchForFacetValues.searchForFacetValuesRequest - The searchForFacetValuesRequest object.
|
|
1927
1927
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1928
1928
|
*/
|
|
@@ -1950,13 +1950,13 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1950
1950
|
return transporter.request(request, requestOptions);
|
|
1951
1951
|
},
|
|
1952
1952
|
/**
|
|
1953
|
-
*
|
|
1953
|
+
* Searches for rules in your index.
|
|
1954
1954
|
*
|
|
1955
1955
|
* Required API Key ACLs:
|
|
1956
1956
|
* - settings.
|
|
1957
1957
|
*
|
|
1958
1958
|
* @param searchRules - The searchRules object.
|
|
1959
|
-
* @param searchRules.indexName -
|
|
1959
|
+
* @param searchRules.indexName - Name of the index on which to perform the operation.
|
|
1960
1960
|
* @param searchRules.searchRulesParams - The searchRulesParams object.
|
|
1961
1961
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1962
1962
|
*/
|
|
@@ -1979,13 +1979,13 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1979
1979
|
return transporter.request(request, requestOptions);
|
|
1980
1980
|
},
|
|
1981
1981
|
/**
|
|
1982
|
-
*
|
|
1982
|
+
* 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.
|
|
1983
1983
|
*
|
|
1984
1984
|
* Required API Key ACLs:
|
|
1985
1985
|
* - search.
|
|
1986
1986
|
*
|
|
1987
1987
|
* @param searchSingleIndex - The searchSingleIndex object.
|
|
1988
|
-
* @param searchSingleIndex.indexName -
|
|
1988
|
+
* @param searchSingleIndex.indexName - Name of the index on which to perform the operation.
|
|
1989
1989
|
* @param searchSingleIndex.searchParams - The searchParams object.
|
|
1990
1990
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1991
1991
|
*/
|
|
@@ -2008,13 +2008,13 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
2008
2008
|
return transporter.request(request, requestOptions);
|
|
2009
2009
|
},
|
|
2010
2010
|
/**
|
|
2011
|
-
*
|
|
2011
|
+
* Searches for synonyms in your index.
|
|
2012
2012
|
*
|
|
2013
2013
|
* Required API Key ACLs:
|
|
2014
2014
|
* - settings.
|
|
2015
2015
|
*
|
|
2016
2016
|
* @param searchSynonyms - The searchSynonyms object.
|
|
2017
|
-
* @param searchSynonyms.indexName -
|
|
2017
|
+
* @param searchSynonyms.indexName - Name of the index on which to perform the operation.
|
|
2018
2018
|
* @param searchSynonyms.searchSynonymsParams - Body of the `searchSynonyms` operation.
|
|
2019
2019
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2020
2020
|
*/
|
|
@@ -2037,7 +2037,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
2037
2037
|
return transporter.request(request, requestOptions);
|
|
2038
2038
|
},
|
|
2039
2039
|
/**
|
|
2040
|
-
* Since it can take
|
|
2040
|
+
* 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).
|
|
2041
2041
|
*
|
|
2042
2042
|
* Required API Key ACLs:
|
|
2043
2043
|
* - admin.
|
|
@@ -2067,7 +2067,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
2067
2067
|
return transporter.request(request, requestOptions);
|
|
2068
2068
|
},
|
|
2069
2069
|
/**
|
|
2070
|
-
*
|
|
2070
|
+
* Turns standard stop word dictionary entries on or off for a given language.
|
|
2071
2071
|
*
|
|
2072
2072
|
* Required API Key ACLs:
|
|
2073
2073
|
* - editSettings.
|
|
@@ -2095,15 +2095,15 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
2095
2095
|
return transporter.request(request, requestOptions);
|
|
2096
2096
|
},
|
|
2097
2097
|
/**
|
|
2098
|
-
* Update the specified
|
|
2098
|
+
* 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.
|
|
2099
2099
|
*
|
|
2100
2100
|
* Required API Key ACLs:
|
|
2101
2101
|
* - editSettings.
|
|
2102
2102
|
*
|
|
2103
2103
|
* @param setSettings - The setSettings object.
|
|
2104
|
-
* @param setSettings.indexName -
|
|
2104
|
+
* @param setSettings.indexName - Name of the index on which to perform the operation.
|
|
2105
2105
|
* @param setSettings.indexSettings - The indexSettings object.
|
|
2106
|
-
* @param setSettings.forwardToReplicas -
|
|
2106
|
+
* @param setSettings.forwardToReplicas - Whether changes are applied to replica indices.
|
|
2107
2107
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2108
2108
|
*/
|
|
2109
2109
|
setSettings({ indexName, indexSettings, forwardToReplicas }, requestOptions) {
|
|
@@ -2129,7 +2129,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
2129
2129
|
return transporter.request(request, requestOptions);
|
|
2130
2130
|
},
|
|
2131
2131
|
/**
|
|
2132
|
-
*
|
|
2132
|
+
* Replaces the permissions of an existing API key. Any unspecified attribute resets that attribute to its default value.
|
|
2133
2133
|
*
|
|
2134
2134
|
* Required API Key ACLs:
|
|
2135
2135
|
* - admin.
|