@algolia/client-search 5.0.0-alpha.73 → 5.0.0-alpha.76
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/client-search.cjs.js +188 -186
- package/dist/client-search.esm.browser.js +188 -184
- package/dist/client-search.esm.node.js +188 -184
- 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 +2 -2
- package/dist/model/anchoring.d.ts +1 -1
- package/dist/model/apiKey.d.ts +9 -9
- package/dist/model/aroundRadius.d.ts +1 -1
- package/dist/model/assignUserIdParams.d.ts +1 -1
- package/dist/model/baseGetApiKeyResponse.d.ts +2 -2
- package/dist/model/baseIndexSettings.d.ts +14 -14
- package/dist/model/baseSearchParamsWithoutQuery.d.ts +25 -25
- package/dist/model/baseSearchResponse.d.ts +20 -20
- package/dist/model/baseSearchResponseRedirect.d.ts +1 -1
- package/dist/model/batchAssignUserIdsParams.d.ts +2 -2
- package/dist/model/batchDictionaryEntriesParams.d.ts +3 -3
- package/dist/model/batchParams.d.ts +1 -1
- package/dist/model/batchRequest.d.ts +1 -1
- package/dist/model/batchResponse.d.ts +2 -2
- package/dist/model/batchWriteParams.d.ts +1 -1
- package/dist/model/builtInOperation.d.ts +1 -1
- package/dist/model/builtInOperationType.d.ts +1 -1
- package/dist/model/clientMethodProps.d.ts +88 -84
- package/dist/model/clientMethodProps.d.ts.map +1 -1
- package/dist/model/consequence.d.ts +4 -4
- package/dist/model/consequenceHide.d.ts +2 -2
- package/dist/model/createdAtResponse.d.ts +2 -2
- package/dist/model/cursor.d.ts +1 -1
- package/dist/model/deleteApiKeyResponse.d.ts +1 -1
- package/dist/model/deleteByParams.d.ts +4 -4
- package/dist/model/deleteSourceResponse.d.ts +1 -1
- package/dist/model/deletedAtResponse.d.ts +3 -3
- package/dist/model/dictionaryEntry.d.ts +6 -6
- 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/exactOnSingleWordQuery.d.ts +1 -1
- package/dist/model/facetFilters.d.ts +1 -1
- package/dist/model/facetHits.d.ts +3 -3
- package/dist/model/facetOrdering.d.ts +2 -2
- package/dist/model/facets.d.ts +1 -1
- package/dist/model/facetsStats.d.ts +4 -4
- package/dist/model/fetchedIndex.d.ts +1 -1
- package/dist/model/getObjectsParams.d.ts +1 -1
- package/dist/model/getObjectsRequest.d.ts +4 -4
- package/dist/model/getObjectsResponse.d.ts +1 -1
- package/dist/model/getTopUserIdsResponse.d.ts +2 -2
- package/dist/model/hasPendingMappingsResponse.d.ts +2 -2
- package/dist/model/highlightResultOption.d.ts +1 -1
- package/dist/model/hit.d.ts +1 -1
- 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 -30
- package/dist/model/indexSettingsAsSearchParamsSemanticSearch.d.ts +2 -2
- package/dist/model/languages.d.ts +1 -1
- package/dist/model/listApiKeysResponse.d.ts +1 -1
- package/dist/model/listClustersResponse.d.ts +2 -2
- package/dist/model/listIndicesResponse.d.ts +1 -1
- package/dist/model/listUserIdsResponse.d.ts +2 -2
- package/dist/model/log.d.ts +7 -7
- package/dist/model/logQuery.d.ts +1 -1
- package/dist/model/mode.d.ts +1 -1
- package/dist/model/multipleBatchRequest.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 +3 -3
- package/dist/model/promoteObjectIDs.d.ts +3 -3
- package/dist/model/queryType.d.ts +1 -1
- package/dist/model/reRankingApplyFilter.d.ts +1 -1
- package/dist/model/redirectRuleIndexMetadata.d.ts +1 -1
- package/dist/model/redirectRuleIndexMetadataData.d.ts +1 -1
- package/dist/model/removeStopWords.d.ts +1 -1
- package/dist/model/removeUserIdResponse.d.ts +1 -1
- package/dist/model/removeWordsIfNoResults.d.ts +1 -1
- package/dist/model/renderingContent.d.ts +1 -1
- package/dist/model/replaceSourceResponse.d.ts +1 -1
- package/dist/model/rule.d.ts +5 -5
- package/dist/model/saveObjectResponse.d.ts +5 -2
- package/dist/model/saveObjectResponse.d.ts.map +1 -1
- package/dist/model/saveSynonymResponse.d.ts +3 -3
- package/dist/model/searchDictionaryEntriesParams.d.ts +5 -5
- package/dist/model/searchForFacetValuesRequest.d.ts +2 -2
- package/dist/model/searchForFacetsOptions.d.ts +3 -3
- package/dist/model/searchForHitsOptions.d.ts +1 -1
- package/dist/model/searchParamsQuery.d.ts +1 -1
- package/dist/model/searchParamsString.d.ts +1 -1
- package/dist/model/searchResponses.d.ts +2 -2
- package/dist/model/searchResponses.d.ts.map +1 -1
- package/dist/model/searchResult.d.ts +4 -0
- package/dist/model/searchResult.d.ts.map +1 -0
- package/dist/model/searchRulesParams.d.ts +7 -7
- package/dist/model/searchStrategy.d.ts +3 -0
- package/dist/model/searchStrategy.d.ts.map +1 -1
- package/dist/model/searchSynonymsParams.d.ts +1 -1
- package/dist/model/searchSynonymsResponse.d.ts +2 -2
- package/dist/model/searchTypeDefault.d.ts +1 -1
- package/dist/model/searchTypeFacet.d.ts +1 -1
- package/dist/model/searchUserIdsParams.d.ts +4 -4
- package/dist/model/searchUserIdsResponse.d.ts +5 -5
- package/dist/model/snippetResultOption.d.ts +1 -1
- package/dist/model/sortRemainingBy.d.ts +1 -1
- package/dist/model/source.d.ts +3 -3
- package/dist/model/standardEntries.d.ts +4 -4
- package/dist/model/synonymHit.d.ts +6 -6
- package/dist/model/synonymType.d.ts +1 -1
- package/dist/model/tagFilters.d.ts +1 -1
- package/dist/model/taskStatus.d.ts +3 -0
- package/dist/model/taskStatus.d.ts.map +1 -1
- package/dist/model/typoTolerance.d.ts +1 -1
- package/dist/model/updateApiKeyResponse.d.ts +2 -2
- package/dist/model/updatedAtResponse.d.ts +3 -3
- package/dist/model/updatedAtWithObjectIdResponse.d.ts +4 -4
- package/dist/model/updatedRuleResponse.d.ts +3 -3
- package/dist/model/userHit.d.ts +1 -1
- package/dist/model/userId.d.ts +2 -2
- package/dist/src/searchClient.d.ts +185 -184
- 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 +2 -2
- package/model/anchoring.ts +1 -1
- package/model/apiKey.ts +9 -9
- package/model/aroundRadius.ts +1 -1
- package/model/assignUserIdParams.ts +1 -1
- package/model/baseGetApiKeyResponse.ts +2 -2
- package/model/baseIndexSettings.ts +14 -14
- package/model/baseSearchParamsWithoutQuery.ts +25 -25
- package/model/baseSearchResponse.ts +20 -20
- package/model/baseSearchResponseRedirect.ts +1 -1
- package/model/batchAssignUserIdsParams.ts +2 -2
- package/model/batchDictionaryEntriesParams.ts +3 -3
- package/model/batchParams.ts +1 -1
- package/model/batchRequest.ts +1 -1
- package/model/batchResponse.ts +2 -2
- package/model/batchWriteParams.ts +1 -1
- package/model/builtInOperation.ts +1 -1
- package/model/builtInOperationType.ts +1 -1
- package/model/clientMethodProps.ts +88 -84
- package/model/consequence.ts +4 -4
- package/model/consequenceHide.ts +2 -2
- package/model/createdAtResponse.ts +2 -2
- package/model/cursor.ts +1 -1
- package/model/deleteApiKeyResponse.ts +1 -1
- package/model/deleteByParams.ts +4 -4
- package/model/deleteSourceResponse.ts +1 -1
- package/model/deletedAtResponse.ts +3 -3
- package/model/dictionaryEntry.ts +6 -6
- 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/exactOnSingleWordQuery.ts +1 -1
- package/model/facetFilters.ts +1 -1
- package/model/facetHits.ts +3 -3
- package/model/facetOrdering.ts +2 -2
- package/model/facets.ts +1 -1
- package/model/facetsStats.ts +4 -4
- package/model/fetchedIndex.ts +1 -1
- package/model/getObjectsParams.ts +1 -1
- package/model/getObjectsRequest.ts +4 -4
- package/model/getObjectsResponse.ts +1 -1
- package/model/getTopUserIdsResponse.ts +2 -2
- package/model/hasPendingMappingsResponse.ts +2 -2
- package/model/highlightResultOption.ts +1 -1
- package/model/hit.ts +1 -1
- package/model/ignorePlurals.ts +1 -1
- package/model/index.ts +1 -0
- package/model/indexSettings.ts +1 -1
- package/model/indexSettingsAsSearchParams.ts +30 -30
- package/model/indexSettingsAsSearchParamsSemanticSearch.ts +2 -2
- package/model/languages.ts +1 -1
- package/model/listApiKeysResponse.ts +1 -1
- package/model/listClustersResponse.ts +2 -2
- package/model/listIndicesResponse.ts +1 -1
- package/model/listUserIdsResponse.ts +2 -2
- package/model/log.ts +7 -7
- package/model/logQuery.ts +1 -1
- package/model/mode.ts +1 -1
- package/model/multipleBatchRequest.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 +3 -3
- package/model/promoteObjectIDs.ts +3 -3
- package/model/queryType.ts +1 -1
- package/model/reRankingApplyFilter.ts +1 -1
- package/model/redirectRuleIndexMetadata.ts +1 -1
- package/model/redirectRuleIndexMetadataData.ts +1 -1
- package/model/removeStopWords.ts +1 -1
- package/model/removeUserIdResponse.ts +1 -1
- package/model/removeWordsIfNoResults.ts +1 -1
- package/model/renderingContent.ts +1 -1
- package/model/replaceSourceResponse.ts +1 -1
- package/model/rule.ts +5 -5
- package/model/saveObjectResponse.ts +5 -2
- package/model/saveSynonymResponse.ts +3 -3
- package/model/searchDictionaryEntriesParams.ts +5 -5
- package/model/searchForFacetValuesRequest.ts +2 -2
- package/model/searchForFacetsOptions.ts +3 -3
- package/model/searchForHitsOptions.ts +1 -1
- package/model/searchParamsQuery.ts +1 -1
- package/model/searchParamsString.ts +1 -1
- package/model/searchResponses.ts +2 -2
- package/model/searchResult.ts +8 -0
- package/model/searchRulesParams.ts +7 -7
- package/model/searchStrategy.ts +3 -0
- package/model/searchSynonymsParams.ts +1 -1
- package/model/searchSynonymsResponse.ts +2 -2
- package/model/searchTypeDefault.ts +1 -1
- package/model/searchTypeFacet.ts +1 -1
- package/model/searchUserIdsParams.ts +4 -4
- package/model/searchUserIdsResponse.ts +5 -5
- package/model/snippetResultOption.ts +1 -1
- package/model/sortRemainingBy.ts +1 -1
- package/model/source.ts +3 -3
- package/model/standardEntries.ts +4 -4
- package/model/synonymHit.ts +6 -6
- package/model/synonymType.ts +1 -1
- package/model/tagFilters.ts +1 -1
- package/model/taskStatus.ts +3 -0
- package/model/typoTolerance.ts +1 -1
- package/model/updateApiKeyResponse.ts +2 -2
- package/model/updatedAtResponse.ts +3 -3
- package/model/updatedAtWithObjectIdResponse.ts +4 -4
- package/model/updatedRuleResponse.ts +3 -3
- package/model/userHit.ts +1 -1
- package/model/userId.ts +2 -2
- package/package.json +8 -7
|
@@ -2,7 +2,7 @@ import { createAuth, createTransporter, getAlgoliaAgent, createIterablePromise,
|
|
|
2
2
|
import { createHttpRequester } from '@algolia/requester-node-http';
|
|
3
3
|
|
|
4
4
|
// 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.
|
|
5
|
-
const apiClientVersion = '5.0.0-alpha.
|
|
5
|
+
const apiClientVersion = '5.0.0-alpha.76';
|
|
6
6
|
function getDefaultHosts(appId) {
|
|
7
7
|
return [
|
|
8
8
|
{
|
|
@@ -249,9 +249,9 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
249
249
|
});
|
|
250
250
|
},
|
|
251
251
|
/**
|
|
252
|
-
* Add a new API
|
|
252
|
+
* 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.
|
|
253
253
|
*
|
|
254
|
-
* @summary
|
|
254
|
+
* @summary Add API key.
|
|
255
255
|
* @param apiKey - The apiKey object.
|
|
256
256
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
257
257
|
*/
|
|
@@ -275,13 +275,13 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
275
275
|
return transporter.request(request, requestOptions);
|
|
276
276
|
},
|
|
277
277
|
/**
|
|
278
|
-
*
|
|
278
|
+
* 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).
|
|
279
279
|
*
|
|
280
|
-
* @summary Add or
|
|
280
|
+
* @summary Add or update a record (using objectID).
|
|
281
281
|
* @param addOrUpdateObject - The addOrUpdateObject object.
|
|
282
|
-
* @param addOrUpdateObject.indexName -
|
|
283
|
-
* @param addOrUpdateObject.objectID - Unique
|
|
284
|
-
* @param addOrUpdateObject.body -
|
|
282
|
+
* @param addOrUpdateObject.indexName - Index on which to perform the request.
|
|
283
|
+
* @param addOrUpdateObject.objectID - Unique record (object) identifier.
|
|
284
|
+
* @param addOrUpdateObject.body - Algolia record.
|
|
285
285
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
286
286
|
*/
|
|
287
287
|
addOrUpdateObject({ indexName, objectID, body }, requestOptions) {
|
|
@@ -309,10 +309,10 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
309
309
|
return transporter.request(request, requestOptions);
|
|
310
310
|
},
|
|
311
311
|
/**
|
|
312
|
-
* Add a
|
|
312
|
+
* Add a source to the list of allowed sources.
|
|
313
313
|
*
|
|
314
|
-
* @summary Add a
|
|
315
|
-
* @param source -
|
|
314
|
+
* @summary Add a source.
|
|
315
|
+
* @param source - Source to add.
|
|
316
316
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
317
317
|
*/
|
|
318
318
|
appendSource(source, requestOptions) {
|
|
@@ -335,9 +335,9 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
335
335
|
return transporter.request(request, requestOptions);
|
|
336
336
|
},
|
|
337
337
|
/**
|
|
338
|
-
* Assign or
|
|
338
|
+
* 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.
|
|
339
339
|
*
|
|
340
|
-
* @summary Assign or
|
|
340
|
+
* @summary Assign or move a user ID.
|
|
341
341
|
* @param assignUserId - The assignUserId object.
|
|
342
342
|
* @param assignUserId.xAlgoliaUserID - UserID to assign.
|
|
343
343
|
* @param assignUserId.assignUserIdParams - The assignUserIdParams object.
|
|
@@ -369,11 +369,11 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
369
369
|
return transporter.request(request, requestOptions);
|
|
370
370
|
},
|
|
371
371
|
/**
|
|
372
|
-
*
|
|
372
|
+
* 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.
|
|
373
373
|
*
|
|
374
|
-
* @summary Batch operations
|
|
374
|
+
* @summary Batch write operations on one index.
|
|
375
375
|
* @param batch - The batch object.
|
|
376
|
-
* @param batch.indexName -
|
|
376
|
+
* @param batch.indexName - Index on which to perform the request.
|
|
377
377
|
* @param batch.batchWriteParams - The batchWriteParams object.
|
|
378
378
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
379
379
|
*/
|
|
@@ -400,7 +400,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
400
400
|
return transporter.request(request, requestOptions);
|
|
401
401
|
},
|
|
402
402
|
/**
|
|
403
|
-
* Assign multiple
|
|
403
|
+
* Assign multiple user IDs to a cluster. **You can\'t _move_ users with this operation.**.
|
|
404
404
|
*
|
|
405
405
|
* @summary Batch assign userIDs.
|
|
406
406
|
* @param batchAssignUserIds - The batchAssignUserIds object.
|
|
@@ -437,11 +437,11 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
437
437
|
return transporter.request(request, requestOptions);
|
|
438
438
|
},
|
|
439
439
|
/**
|
|
440
|
-
*
|
|
440
|
+
* Add or remove a batch of dictionary entries.
|
|
441
441
|
*
|
|
442
442
|
* @summary Batch dictionary entries.
|
|
443
443
|
* @param batchDictionaryEntries - The batchDictionaryEntries object.
|
|
444
|
-
* @param batchDictionaryEntries.dictionaryName -
|
|
444
|
+
* @param batchDictionaryEntries.dictionaryName - Dictionary to search in.
|
|
445
445
|
* @param batchDictionaryEntries.batchDictionaryEntriesParams - The batchDictionaryEntriesParams object.
|
|
446
446
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
447
447
|
*/
|
|
@@ -468,11 +468,11 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
468
468
|
return transporter.request(request, requestOptions);
|
|
469
469
|
},
|
|
470
470
|
/**
|
|
471
|
-
*
|
|
471
|
+
* 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.
|
|
472
472
|
*
|
|
473
|
-
* @summary
|
|
473
|
+
* @summary Get all records from an index.
|
|
474
474
|
* @param browse - The browse object.
|
|
475
|
-
* @param browse.indexName -
|
|
475
|
+
* @param browse.indexName - Index on which to perform the request.
|
|
476
476
|
* @param browse.browseParams - The browseParams object.
|
|
477
477
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
478
478
|
*/
|
|
@@ -493,12 +493,12 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
493
493
|
return transporter.request(request, requestOptions);
|
|
494
494
|
},
|
|
495
495
|
/**
|
|
496
|
-
*
|
|
496
|
+
* Delete all synonyms in the index.
|
|
497
497
|
*
|
|
498
|
-
* @summary
|
|
498
|
+
* @summary Delete all synonyms.
|
|
499
499
|
* @param clearAllSynonyms - The clearAllSynonyms object.
|
|
500
|
-
* @param clearAllSynonyms.indexName -
|
|
501
|
-
* @param clearAllSynonyms.forwardToReplicas -
|
|
500
|
+
* @param clearAllSynonyms.indexName - Index on which to perform the request.
|
|
501
|
+
* @param clearAllSynonyms.forwardToReplicas - Indicates whether changed index settings are forwarded to the replica indices.
|
|
502
502
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
503
503
|
*/
|
|
504
504
|
clearAllSynonyms({ indexName, forwardToReplicas }, requestOptions) {
|
|
@@ -520,11 +520,11 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
520
520
|
return transporter.request(request, requestOptions);
|
|
521
521
|
},
|
|
522
522
|
/**
|
|
523
|
-
* Delete
|
|
523
|
+
* Delete the records but leave settings and index-specific API keys untouched.
|
|
524
524
|
*
|
|
525
|
-
* @summary
|
|
525
|
+
* @summary Delete all records from an index.
|
|
526
526
|
* @param clearObjects - The clearObjects object.
|
|
527
|
-
* @param clearObjects.indexName -
|
|
527
|
+
* @param clearObjects.indexName - Index on which to perform the request.
|
|
528
528
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
529
529
|
*/
|
|
530
530
|
clearObjects({ indexName }, requestOptions) {
|
|
@@ -543,12 +543,12 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
543
543
|
return transporter.request(request, requestOptions);
|
|
544
544
|
},
|
|
545
545
|
/**
|
|
546
|
-
* Delete all
|
|
546
|
+
* Delete all rules in the index.
|
|
547
547
|
*
|
|
548
|
-
* @summary
|
|
548
|
+
* @summary Delete all rules.
|
|
549
549
|
* @param clearRules - The clearRules object.
|
|
550
|
-
* @param clearRules.indexName -
|
|
551
|
-
* @param clearRules.forwardToReplicas -
|
|
550
|
+
* @param clearRules.indexName - Index on which to perform the request.
|
|
551
|
+
* @param clearRules.forwardToReplicas - Indicates whether changed index settings are forwarded to the replica indices.
|
|
552
552
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
553
553
|
*/
|
|
554
554
|
clearRules({ indexName, forwardToReplicas }, requestOptions) {
|
|
@@ -574,8 +574,8 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
574
574
|
*
|
|
575
575
|
* @summary Send requests to the Algolia REST API.
|
|
576
576
|
* @param del - The del object.
|
|
577
|
-
* @param del.path -
|
|
578
|
-
* @param del.parameters - Query parameters to
|
|
577
|
+
* @param del.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
578
|
+
* @param del.parameters - Query parameters to apply to the current query.
|
|
579
579
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
580
580
|
*/
|
|
581
581
|
del({ path, parameters }, requestOptions) {
|
|
@@ -594,11 +594,11 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
594
594
|
return transporter.request(request, requestOptions);
|
|
595
595
|
},
|
|
596
596
|
/**
|
|
597
|
-
* Delete an existing API
|
|
597
|
+
* Delete an existing API key. The request must be authenticated with the admin API key.
|
|
598
598
|
*
|
|
599
|
-
* @summary Delete
|
|
599
|
+
* @summary Delete API key.
|
|
600
600
|
* @param deleteApiKey - The deleteApiKey object.
|
|
601
|
-
* @param deleteApiKey.key - API
|
|
601
|
+
* @param deleteApiKey.key - API key.
|
|
602
602
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
603
603
|
*/
|
|
604
604
|
deleteApiKey({ key }, requestOptions) {
|
|
@@ -617,11 +617,11 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
617
617
|
return transporter.request(request, requestOptions);
|
|
618
618
|
},
|
|
619
619
|
/**
|
|
620
|
-
*
|
|
620
|
+
* 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.
|
|
621
621
|
*
|
|
622
|
-
* @summary Delete all records matching
|
|
622
|
+
* @summary Delete all records matching a query.
|
|
623
623
|
* @param deleteBy - The deleteBy object.
|
|
624
|
-
* @param deleteBy.indexName -
|
|
624
|
+
* @param deleteBy.indexName - Index on which to perform the request.
|
|
625
625
|
* @param deleteBy.deleteByParams - The deleteByParams object.
|
|
626
626
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
627
627
|
*/
|
|
@@ -649,7 +649,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
649
649
|
*
|
|
650
650
|
* @summary Delete index.
|
|
651
651
|
* @param deleteIndex - The deleteIndex object.
|
|
652
|
-
* @param deleteIndex.indexName -
|
|
652
|
+
* @param deleteIndex.indexName - Index on which to perform the request.
|
|
653
653
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
654
654
|
*/
|
|
655
655
|
deleteIndex({ indexName }, requestOptions) {
|
|
@@ -668,12 +668,12 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
668
668
|
return transporter.request(request, requestOptions);
|
|
669
669
|
},
|
|
670
670
|
/**
|
|
671
|
-
*
|
|
671
|
+
* To delete a set of records matching a query, use the [`deleteByQuery` operation](#tag/Records/operation/deleteBy) instead.
|
|
672
672
|
*
|
|
673
|
-
* @summary Delete
|
|
673
|
+
* @summary Delete a record.
|
|
674
674
|
* @param deleteObject - The deleteObject object.
|
|
675
|
-
* @param deleteObject.indexName -
|
|
676
|
-
* @param deleteObject.objectID - Unique
|
|
675
|
+
* @param deleteObject.indexName - Index on which to perform the request.
|
|
676
|
+
* @param deleteObject.objectID - Unique record (object) identifier.
|
|
677
677
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
678
678
|
*/
|
|
679
679
|
deleteObject({ indexName, objectID }, requestOptions) {
|
|
@@ -697,13 +697,13 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
697
697
|
return transporter.request(request, requestOptions);
|
|
698
698
|
},
|
|
699
699
|
/**
|
|
700
|
-
* Delete the
|
|
700
|
+
* Delete a rule by its `objectID`. To find the `objectID` for rules, use the [`search` operation](#tag/Rules/operation/searchRules).
|
|
701
701
|
*
|
|
702
702
|
* @summary Delete a rule.
|
|
703
703
|
* @param deleteRule - The deleteRule object.
|
|
704
|
-
* @param deleteRule.indexName -
|
|
705
|
-
* @param deleteRule.objectID - Unique identifier of
|
|
706
|
-
* @param deleteRule.forwardToReplicas -
|
|
704
|
+
* @param deleteRule.indexName - Index on which to perform the request.
|
|
705
|
+
* @param deleteRule.objectID - Unique identifier of a rule object.
|
|
706
|
+
* @param deleteRule.forwardToReplicas - Indicates whether changed index settings are forwarded to the replica indices.
|
|
707
707
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
708
708
|
*/
|
|
709
709
|
deleteRule({ indexName, objectID, forwardToReplicas }, requestOptions) {
|
|
@@ -730,11 +730,11 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
730
730
|
return transporter.request(request, requestOptions);
|
|
731
731
|
},
|
|
732
732
|
/**
|
|
733
|
-
* Remove a
|
|
733
|
+
* Remove a source from the list of allowed sources.
|
|
734
734
|
*
|
|
735
|
-
* @summary Remove a
|
|
735
|
+
* @summary Remove a source.
|
|
736
736
|
* @param deleteSource - The deleteSource object.
|
|
737
|
-
* @param deleteSource.source -
|
|
737
|
+
* @param deleteSource.source - IP address range of the source.
|
|
738
738
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
739
739
|
*/
|
|
740
740
|
deleteSource({ source }, requestOptions) {
|
|
@@ -753,13 +753,13 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
753
753
|
return transporter.request(request, requestOptions);
|
|
754
754
|
},
|
|
755
755
|
/**
|
|
756
|
-
* Delete a
|
|
756
|
+
* Delete a synonym by its `objectID`. To find the object IDs of your synonyms, use the [`search` operation](#tag/Synonyms/operation/searchSynonyms).
|
|
757
757
|
*
|
|
758
|
-
* @summary Delete synonym.
|
|
758
|
+
* @summary Delete a synonym.
|
|
759
759
|
* @param deleteSynonym - The deleteSynonym object.
|
|
760
|
-
* @param deleteSynonym.indexName -
|
|
761
|
-
* @param deleteSynonym.objectID - Unique identifier of
|
|
762
|
-
* @param deleteSynonym.forwardToReplicas -
|
|
760
|
+
* @param deleteSynonym.indexName - Index on which to perform the request.
|
|
761
|
+
* @param deleteSynonym.objectID - Unique identifier of a synonym object.
|
|
762
|
+
* @param deleteSynonym.forwardToReplicas - Indicates whether changed index settings are forwarded to the replica indices.
|
|
763
763
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
764
764
|
*/
|
|
765
765
|
deleteSynonym({ indexName, objectID, forwardToReplicas }, requestOptions) {
|
|
@@ -790,8 +790,8 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
790
790
|
*
|
|
791
791
|
* @summary Send requests to the Algolia REST API.
|
|
792
792
|
* @param get - The get object.
|
|
793
|
-
* @param get.path -
|
|
794
|
-
* @param get.parameters - Query parameters to
|
|
793
|
+
* @param get.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
794
|
+
* @param get.parameters - Query parameters to apply to the current query.
|
|
795
795
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
796
796
|
*/
|
|
797
797
|
get({ path, parameters }, requestOptions) {
|
|
@@ -810,11 +810,11 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
810
810
|
return transporter.request(request, requestOptions);
|
|
811
811
|
},
|
|
812
812
|
/**
|
|
813
|
-
* Get the permissions of
|
|
813
|
+
* 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.
|
|
814
814
|
*
|
|
815
|
-
* @summary Get
|
|
815
|
+
* @summary Get API key permissions.
|
|
816
816
|
* @param getApiKey - The getApiKey object.
|
|
817
|
-
* @param getApiKey.key - API
|
|
817
|
+
* @param getApiKey.key - API key.
|
|
818
818
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
819
819
|
*/
|
|
820
820
|
getApiKey({ key }, requestOptions) {
|
|
@@ -833,7 +833,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
833
833
|
return transporter.request(request, requestOptions);
|
|
834
834
|
},
|
|
835
835
|
/**
|
|
836
|
-
*
|
|
836
|
+
* 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.
|
|
837
837
|
*
|
|
838
838
|
* @summary List available languages.
|
|
839
839
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -851,9 +851,9 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
851
851
|
return transporter.request(request, requestOptions);
|
|
852
852
|
},
|
|
853
853
|
/**
|
|
854
|
-
*
|
|
854
|
+
* Get the languages for which [stop words are turned off](#tag/Dictionaries/operation/setDictionarySettings).
|
|
855
855
|
*
|
|
856
|
-
* @summary
|
|
856
|
+
* @summary Get stop word settings.
|
|
857
857
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
858
858
|
*/
|
|
859
859
|
getDictionarySettings(requestOptions) {
|
|
@@ -869,13 +869,13 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
869
869
|
return transporter.request(request, requestOptions);
|
|
870
870
|
},
|
|
871
871
|
/**
|
|
872
|
-
*
|
|
872
|
+
* 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).
|
|
873
873
|
*
|
|
874
874
|
* @summary Return the latest log entries.
|
|
875
875
|
* @param getLogs - The getLogs object.
|
|
876
|
-
* @param getLogs.offset - First entry to retrieve
|
|
877
|
-
* @param getLogs.length - Maximum number of entries to retrieve.
|
|
878
|
-
* @param getLogs.indexName - Index for which log entries should be retrieved. When omitted, log entries are retrieved
|
|
876
|
+
* @param getLogs.offset - First log entry to retrieve. Sorted by decreasing date with 0 being the most recent.
|
|
877
|
+
* @param getLogs.length - Maximum number of entries to retrieve.
|
|
878
|
+
* @param getLogs.indexName - Index for which log entries should be retrieved. When omitted, log entries are retrieved for all indices.
|
|
879
879
|
* @param getLogs.type - Type of log entries to retrieve. When omitted, all log entries are retrieved.
|
|
880
880
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
881
881
|
*/
|
|
@@ -904,13 +904,13 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
904
904
|
return transporter.request(request, requestOptions);
|
|
905
905
|
},
|
|
906
906
|
/**
|
|
907
|
-
*
|
|
907
|
+
* To get more than one record, use the [`objects` operation](#tag/Records/operation/getObjects).
|
|
908
908
|
*
|
|
909
|
-
* @summary
|
|
909
|
+
* @summary Get a record.
|
|
910
910
|
* @param getObject - The getObject object.
|
|
911
|
-
* @param getObject.indexName -
|
|
912
|
-
* @param getObject.objectID - Unique
|
|
913
|
-
* @param getObject.attributesToRetrieve -
|
|
911
|
+
* @param getObject.indexName - Index on which to perform the request.
|
|
912
|
+
* @param getObject.objectID - Unique record (object) identifier.
|
|
913
|
+
* @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.
|
|
914
914
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
915
915
|
*/
|
|
916
916
|
getObject({ indexName, objectID, attributesToRetrieve }, requestOptions) {
|
|
@@ -937,10 +937,10 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
937
937
|
return transporter.request(request, requestOptions);
|
|
938
938
|
},
|
|
939
939
|
/**
|
|
940
|
-
* Retrieve one or more
|
|
940
|
+
* 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.
|
|
941
941
|
*
|
|
942
|
-
* @summary
|
|
943
|
-
* @param getObjectsParams -
|
|
942
|
+
* @summary Get multiple records.
|
|
943
|
+
* @param getObjectsParams - Request object.
|
|
944
944
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
945
945
|
*/
|
|
946
946
|
getObjects(getObjectsParams, requestOptions) {
|
|
@@ -965,12 +965,12 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
965
965
|
return transporter.request(request, requestOptions);
|
|
966
966
|
},
|
|
967
967
|
/**
|
|
968
|
-
*
|
|
968
|
+
* Get a rule by its `objectID`. To find the `objectID` for rules, use the [`search` operation](#tag/Rules/operation/searchRules).
|
|
969
969
|
*
|
|
970
970
|
* @summary Get a rule.
|
|
971
971
|
* @param getRule - The getRule object.
|
|
972
|
-
* @param getRule.indexName -
|
|
973
|
-
* @param getRule.objectID - Unique identifier of
|
|
972
|
+
* @param getRule.indexName - Index on which to perform the request.
|
|
973
|
+
* @param getRule.objectID - Unique identifier of a rule object.
|
|
974
974
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
975
975
|
*/
|
|
976
976
|
getRule({ indexName, objectID }, requestOptions) {
|
|
@@ -994,11 +994,11 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
994
994
|
return transporter.request(request, requestOptions);
|
|
995
995
|
},
|
|
996
996
|
/**
|
|
997
|
-
*
|
|
997
|
+
* Return an object containing an index\'s [configuration settings](https://www.algolia.com/doc/api-reference/settings-api-parameters/).
|
|
998
998
|
*
|
|
999
|
-
* @summary
|
|
999
|
+
* @summary Get index settings.
|
|
1000
1000
|
* @param getSettings - The getSettings object.
|
|
1001
|
-
* @param getSettings.indexName -
|
|
1001
|
+
* @param getSettings.indexName - Index on which to perform the request.
|
|
1002
1002
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1003
1003
|
*/
|
|
1004
1004
|
getSettings({ indexName }, requestOptions) {
|
|
@@ -1017,9 +1017,9 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1017
1017
|
return transporter.request(request, requestOptions);
|
|
1018
1018
|
},
|
|
1019
1019
|
/**
|
|
1020
|
-
*
|
|
1020
|
+
* Get all allowed sources (IP addresses).
|
|
1021
1021
|
*
|
|
1022
|
-
* @summary
|
|
1022
|
+
* @summary Get all allowed IP addresses.
|
|
1023
1023
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1024
1024
|
*/
|
|
1025
1025
|
getSources(requestOptions) {
|
|
@@ -1035,12 +1035,12 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1035
1035
|
return transporter.request(request, requestOptions);
|
|
1036
1036
|
},
|
|
1037
1037
|
/**
|
|
1038
|
-
*
|
|
1038
|
+
* Get a syonym by its `objectID`. To find the object IDs for your synonyms, use the [`search` operation](#tag/Synonyms/operation/searchSynonyms).
|
|
1039
1039
|
*
|
|
1040
|
-
* @summary Get synonym.
|
|
1040
|
+
* @summary Get a synonym object.
|
|
1041
1041
|
* @param getSynonym - The getSynonym object.
|
|
1042
|
-
* @param getSynonym.indexName -
|
|
1043
|
-
* @param getSynonym.objectID - Unique identifier of
|
|
1042
|
+
* @param getSynonym.indexName - Index on which to perform the request.
|
|
1043
|
+
* @param getSynonym.objectID - Unique identifier of a synonym object.
|
|
1044
1044
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1045
1045
|
*/
|
|
1046
1046
|
getSynonym({ indexName, objectID }, requestOptions) {
|
|
@@ -1064,12 +1064,12 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1064
1064
|
return transporter.request(request, requestOptions);
|
|
1065
1065
|
},
|
|
1066
1066
|
/**
|
|
1067
|
-
*
|
|
1067
|
+
* Some operations, such as copying an index, will respond with a `taskID` value. Use this value here to check the status of that task.
|
|
1068
1068
|
*
|
|
1069
|
-
* @summary Check
|
|
1069
|
+
* @summary Check a task\'s status.
|
|
1070
1070
|
* @param getTask - The getTask object.
|
|
1071
|
-
* @param getTask.indexName -
|
|
1072
|
-
* @param getTask.taskID - Unique
|
|
1071
|
+
* @param getTask.indexName - Index on which to perform the request.
|
|
1072
|
+
* @param getTask.taskID - Unique task identifier.
|
|
1073
1073
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1074
1074
|
*/
|
|
1075
1075
|
getTask({ indexName, taskID }, requestOptions) {
|
|
@@ -1093,7 +1093,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1093
1093
|
return transporter.request(request, requestOptions);
|
|
1094
1094
|
},
|
|
1095
1095
|
/**
|
|
1096
|
-
* Get the
|
|
1096
|
+
* 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.
|
|
1097
1097
|
*
|
|
1098
1098
|
* @summary Get top userID.
|
|
1099
1099
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -1111,7 +1111,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1111
1111
|
return transporter.request(request, requestOptions);
|
|
1112
1112
|
},
|
|
1113
1113
|
/**
|
|
1114
|
-
* Returns the userID data stored in the mapping.
|
|
1114
|
+
* 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.
|
|
1115
1115
|
*
|
|
1116
1116
|
* @summary Get userID.
|
|
1117
1117
|
* @param getUserId - The getUserId object.
|
|
@@ -1134,11 +1134,11 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1134
1134
|
return transporter.request(request, requestOptions);
|
|
1135
1135
|
},
|
|
1136
1136
|
/**
|
|
1137
|
-
*
|
|
1137
|
+
* 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.
|
|
1138
1138
|
*
|
|
1139
|
-
* @summary Get migration status.
|
|
1139
|
+
* @summary Get migration and user mapping status.
|
|
1140
1140
|
* @param hasPendingMappings - The hasPendingMappings object.
|
|
1141
|
-
* @param hasPendingMappings.getClusters -
|
|
1141
|
+
* @param hasPendingMappings.getClusters - Indicates whether to include the cluster\'s pending mapping state in the response.
|
|
1142
1142
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1143
1143
|
*/
|
|
1144
1144
|
hasPendingMappings({ getClusters } = {}, requestOptions = undefined) {
|
|
@@ -1157,9 +1157,9 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1157
1157
|
return transporter.request(request, requestOptions);
|
|
1158
1158
|
},
|
|
1159
1159
|
/**
|
|
1160
|
-
* List API keys
|
|
1160
|
+
* List all API keys associated with your Algolia application, including their permissions and restrictions.
|
|
1161
1161
|
*
|
|
1162
|
-
* @summary List API
|
|
1162
|
+
* @summary List API keys.
|
|
1163
1163
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1164
1164
|
*/
|
|
1165
1165
|
listApiKeys(requestOptions) {
|
|
@@ -1175,7 +1175,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1175
1175
|
return transporter.request(request, requestOptions);
|
|
1176
1176
|
},
|
|
1177
1177
|
/**
|
|
1178
|
-
* List the clusters
|
|
1178
|
+
* List the available clusters in a multi-cluster setup.
|
|
1179
1179
|
*
|
|
1180
1180
|
* @summary List clusters.
|
|
1181
1181
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -1193,20 +1193,24 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1193
1193
|
return transporter.request(request, requestOptions);
|
|
1194
1194
|
},
|
|
1195
1195
|
/**
|
|
1196
|
-
* List
|
|
1196
|
+
* List indices in an Algolia application.
|
|
1197
1197
|
*
|
|
1198
|
-
* @summary List
|
|
1198
|
+
* @summary List indices.
|
|
1199
1199
|
* @param listIndices - The listIndices object.
|
|
1200
|
-
* @param listIndices.page -
|
|
1200
|
+
* @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.
|
|
1201
|
+
* @param listIndices.hitsPerPage - Maximum number of hits per page.
|
|
1201
1202
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1202
1203
|
*/
|
|
1203
|
-
listIndices({ page } = {}, requestOptions = undefined) {
|
|
1204
|
+
listIndices({ page, hitsPerPage } = {}, requestOptions = undefined) {
|
|
1204
1205
|
const requestPath = '/1/indexes';
|
|
1205
1206
|
const headers = {};
|
|
1206
1207
|
const queryParameters = {};
|
|
1207
1208
|
if (page !== undefined) {
|
|
1208
1209
|
queryParameters.page = page.toString();
|
|
1209
1210
|
}
|
|
1211
|
+
if (hitsPerPage !== undefined) {
|
|
1212
|
+
queryParameters.hitsPerPage = hitsPerPage.toString();
|
|
1213
|
+
}
|
|
1210
1214
|
const request = {
|
|
1211
1215
|
method: 'GET',
|
|
1212
1216
|
path: requestPath,
|
|
@@ -1216,12 +1220,12 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1216
1220
|
return transporter.request(request, requestOptions);
|
|
1217
1221
|
},
|
|
1218
1222
|
/**
|
|
1219
|
-
* List the userIDs assigned to a multi-
|
|
1223
|
+
* 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.
|
|
1220
1224
|
*
|
|
1221
1225
|
* @summary List userIDs.
|
|
1222
1226
|
* @param listUserIds - The listUserIds object.
|
|
1223
|
-
* @param listUserIds.page -
|
|
1224
|
-
* @param listUserIds.hitsPerPage - Maximum number of
|
|
1227
|
+
* @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.
|
|
1228
|
+
* @param listUserIds.hitsPerPage - Maximum number of hits per page.
|
|
1225
1229
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1226
1230
|
*/
|
|
1227
1231
|
listUserIds({ page, hitsPerPage } = {}, requestOptions = undefined) {
|
|
@@ -1243,9 +1247,9 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1243
1247
|
return transporter.request(request, requestOptions);
|
|
1244
1248
|
},
|
|
1245
1249
|
/**
|
|
1246
|
-
*
|
|
1250
|
+
* 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.
|
|
1247
1251
|
*
|
|
1248
|
-
* @summary Batch operations
|
|
1252
|
+
* @summary Batch write operations on multiple indices.
|
|
1249
1253
|
* @param batchParams - The batchParams object.
|
|
1250
1254
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1251
1255
|
*/
|
|
@@ -1269,11 +1273,11 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1269
1273
|
return transporter.request(request, requestOptions);
|
|
1270
1274
|
},
|
|
1271
1275
|
/**
|
|
1272
|
-
*
|
|
1276
|
+
* 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/).
|
|
1273
1277
|
*
|
|
1274
|
-
* @summary Copy
|
|
1278
|
+
* @summary Copy, move, or rename an index.
|
|
1275
1279
|
* @param operationIndex - The operationIndex object.
|
|
1276
|
-
* @param operationIndex.indexName -
|
|
1280
|
+
* @param operationIndex.indexName - Index on which to perform the request.
|
|
1277
1281
|
* @param operationIndex.operationIndexParams - The operationIndexParams object.
|
|
1278
1282
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1279
1283
|
*/
|
|
@@ -1303,14 +1307,14 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1303
1307
|
return transporter.request(request, requestOptions);
|
|
1304
1308
|
},
|
|
1305
1309
|
/**
|
|
1306
|
-
*
|
|
1310
|
+
* 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.
|
|
1307
1311
|
*
|
|
1308
|
-
* @summary
|
|
1312
|
+
* @summary Update record attributes.
|
|
1309
1313
|
* @param partialUpdateObject - The partialUpdateObject object.
|
|
1310
|
-
* @param partialUpdateObject.indexName -
|
|
1311
|
-
* @param partialUpdateObject.objectID - Unique
|
|
1312
|
-
* @param partialUpdateObject.attributesToUpdate -
|
|
1313
|
-
* @param partialUpdateObject.createIfNotExists -
|
|
1314
|
+
* @param partialUpdateObject.indexName - Index on which to perform the request.
|
|
1315
|
+
* @param partialUpdateObject.objectID - Unique record (object) identifier.
|
|
1316
|
+
* @param partialUpdateObject.attributesToUpdate - Object with attributes to update.
|
|
1317
|
+
* @param partialUpdateObject.createIfNotExists - Indicates whether to create a new record if it doesn\'t exist yet.
|
|
1314
1318
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1315
1319
|
*/
|
|
1316
1320
|
partialUpdateObject({ indexName, objectID, attributesToUpdate, createIfNotExists, }, requestOptions) {
|
|
@@ -1345,9 +1349,9 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1345
1349
|
*
|
|
1346
1350
|
* @summary Send requests to the Algolia REST API.
|
|
1347
1351
|
* @param post - The post object.
|
|
1348
|
-
* @param post.path -
|
|
1349
|
-
* @param post.parameters - Query parameters to
|
|
1350
|
-
* @param post.body -
|
|
1352
|
+
* @param post.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
1353
|
+
* @param post.parameters - Query parameters to apply to the current query.
|
|
1354
|
+
* @param post.body - Parameters to send with the custom request.
|
|
1351
1355
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1352
1356
|
*/
|
|
1353
1357
|
post({ path, parameters, body }, requestOptions) {
|
|
@@ -1371,9 +1375,9 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1371
1375
|
*
|
|
1372
1376
|
* @summary Send requests to the Algolia REST API.
|
|
1373
1377
|
* @param put - The put object.
|
|
1374
|
-
* @param put.path -
|
|
1375
|
-
* @param put.parameters - Query parameters to
|
|
1376
|
-
* @param put.body -
|
|
1378
|
+
* @param put.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
1379
|
+
* @param put.parameters - Query parameters to apply to the current query.
|
|
1380
|
+
* @param put.body - Parameters to send with the custom request.
|
|
1377
1381
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1378
1382
|
*/
|
|
1379
1383
|
put({ path, parameters, body }, requestOptions) {
|
|
@@ -1393,7 +1397,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1393
1397
|
return transporter.request(request, requestOptions);
|
|
1394
1398
|
},
|
|
1395
1399
|
/**
|
|
1396
|
-
* Remove a userID and its associated data from the multi-clusters.
|
|
1400
|
+
* Remove a userID and its associated data from the multi-clusters.
|
|
1397
1401
|
*
|
|
1398
1402
|
* @summary Remove userID.
|
|
1399
1403
|
* @param removeUserId - The removeUserId object.
|
|
@@ -1418,9 +1422,9 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1418
1422
|
/**
|
|
1419
1423
|
* Replace all allowed sources.
|
|
1420
1424
|
*
|
|
1421
|
-
* @summary Replace all
|
|
1425
|
+
* @summary Replace all sources.
|
|
1422
1426
|
* @param replaceSources - The replaceSources object.
|
|
1423
|
-
* @param replaceSources.source -
|
|
1427
|
+
* @param replaceSources.source - Allowed sources.
|
|
1424
1428
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1425
1429
|
*/
|
|
1426
1430
|
replaceSources({ source }, requestOptions) {
|
|
@@ -1440,11 +1444,11 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1440
1444
|
return transporter.request(request, requestOptions);
|
|
1441
1445
|
},
|
|
1442
1446
|
/**
|
|
1443
|
-
* Restore a deleted API key, along with its associated
|
|
1447
|
+
* Restore a deleted API key, along with its associated permissions. The request must be authenticated with the admin API key.
|
|
1444
1448
|
*
|
|
1445
|
-
* @summary Restore
|
|
1449
|
+
* @summary Restore API key.
|
|
1446
1450
|
* @param restoreApiKey - The restoreApiKey object.
|
|
1447
|
-
* @param restoreApiKey.key - API
|
|
1451
|
+
* @param restoreApiKey.key - API key.
|
|
1448
1452
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1449
1453
|
*/
|
|
1450
1454
|
restoreApiKey({ key }, requestOptions) {
|
|
@@ -1463,11 +1467,11 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1463
1467
|
return transporter.request(request, requestOptions);
|
|
1464
1468
|
},
|
|
1465
1469
|
/**
|
|
1466
|
-
* Add
|
|
1470
|
+
* 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).
|
|
1467
1471
|
*
|
|
1468
|
-
* @summary Add
|
|
1472
|
+
* @summary Add or update a record.
|
|
1469
1473
|
* @param saveObject - The saveObject object.
|
|
1470
|
-
* @param saveObject.indexName -
|
|
1474
|
+
* @param saveObject.indexName - Index on which to perform the request.
|
|
1471
1475
|
* @param saveObject.body - The Algolia record.
|
|
1472
1476
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1473
1477
|
*/
|
|
@@ -1491,14 +1495,14 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1491
1495
|
return transporter.request(request, requestOptions);
|
|
1492
1496
|
},
|
|
1493
1497
|
/**
|
|
1494
|
-
*
|
|
1498
|
+
* To create or update more than one rule, use the [`batch` operation](#tag/Rules/operation/saveRules).
|
|
1495
1499
|
*
|
|
1496
|
-
* @summary
|
|
1500
|
+
* @summary Create or update a rule.
|
|
1497
1501
|
* @param saveRule - The saveRule object.
|
|
1498
|
-
* @param saveRule.indexName -
|
|
1499
|
-
* @param saveRule.objectID - Unique identifier of
|
|
1502
|
+
* @param saveRule.indexName - Index on which to perform the request.
|
|
1503
|
+
* @param saveRule.objectID - Unique identifier of a rule object.
|
|
1500
1504
|
* @param saveRule.rule - The rule object.
|
|
1501
|
-
* @param saveRule.forwardToReplicas -
|
|
1505
|
+
* @param saveRule.forwardToReplicas - Indicates whether changed index settings are forwarded to the replica indices.
|
|
1502
1506
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1503
1507
|
*/
|
|
1504
1508
|
saveRule({ indexName, objectID, rule, forwardToReplicas }, requestOptions) {
|
|
@@ -1532,14 +1536,14 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1532
1536
|
return transporter.request(request, requestOptions);
|
|
1533
1537
|
},
|
|
1534
1538
|
/**
|
|
1535
|
-
* Create
|
|
1539
|
+
* Create or update multiple rules.
|
|
1536
1540
|
*
|
|
1537
1541
|
* @summary Save a batch of rules.
|
|
1538
1542
|
* @param saveRules - The saveRules object.
|
|
1539
|
-
* @param saveRules.indexName -
|
|
1543
|
+
* @param saveRules.indexName - Index on which to perform the request.
|
|
1540
1544
|
* @param saveRules.rules - The rules object.
|
|
1541
|
-
* @param saveRules.forwardToReplicas -
|
|
1542
|
-
* @param saveRules.clearExistingRules -
|
|
1545
|
+
* @param saveRules.forwardToReplicas - Indicates whether changed index settings are forwarded to the replica indices.
|
|
1546
|
+
* @param saveRules.clearExistingRules - Indicates whether existing rules should be deleted before adding this batch.
|
|
1543
1547
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1544
1548
|
*/
|
|
1545
1549
|
saveRules({ indexName, rules, forwardToReplicas, clearExistingRules, }, requestOptions) {
|
|
@@ -1568,14 +1572,14 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1568
1572
|
return transporter.request(request, requestOptions);
|
|
1569
1573
|
},
|
|
1570
1574
|
/**
|
|
1571
|
-
*
|
|
1575
|
+
* 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).
|
|
1572
1576
|
*
|
|
1573
|
-
* @summary Save synonym.
|
|
1577
|
+
* @summary Save a synonym.
|
|
1574
1578
|
* @param saveSynonym - The saveSynonym object.
|
|
1575
|
-
* @param saveSynonym.indexName -
|
|
1576
|
-
* @param saveSynonym.objectID - Unique identifier of
|
|
1579
|
+
* @param saveSynonym.indexName - Index on which to perform the request.
|
|
1580
|
+
* @param saveSynonym.objectID - Unique identifier of a synonym object.
|
|
1577
1581
|
* @param saveSynonym.synonymHit - The synonymHit object.
|
|
1578
|
-
* @param saveSynonym.forwardToReplicas -
|
|
1582
|
+
* @param saveSynonym.forwardToReplicas - Indicates whether changed index settings are forwarded to the replica indices.
|
|
1579
1583
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1580
1584
|
*/
|
|
1581
1585
|
saveSynonym({ indexName, objectID, synonymHit, forwardToReplicas }, requestOptions) {
|
|
@@ -1612,14 +1616,14 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1612
1616
|
return transporter.request(request, requestOptions);
|
|
1613
1617
|
},
|
|
1614
1618
|
/**
|
|
1615
|
-
* Create
|
|
1619
|
+
* Create or update multiple synonyms.
|
|
1616
1620
|
*
|
|
1617
1621
|
* @summary Save a batch of synonyms.
|
|
1618
1622
|
* @param saveSynonyms - The saveSynonyms object.
|
|
1619
|
-
* @param saveSynonyms.indexName -
|
|
1623
|
+
* @param saveSynonyms.indexName - Index on which to perform the request.
|
|
1620
1624
|
* @param saveSynonyms.synonymHit - The synonymHit object.
|
|
1621
|
-
* @param saveSynonyms.forwardToReplicas -
|
|
1622
|
-
* @param saveSynonyms.replaceExistingSynonyms -
|
|
1625
|
+
* @param saveSynonyms.forwardToReplicas - Indicates whether changed index settings are forwarded to the replica indices.
|
|
1626
|
+
* @param saveSynonyms.replaceExistingSynonyms - Indicates whether to replace all synonyms in the index with the ones sent with this request.
|
|
1623
1627
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1624
1628
|
*/
|
|
1625
1629
|
saveSynonyms({ indexName, synonymHit, forwardToReplicas, replaceExistingSynonyms, }, requestOptions) {
|
|
@@ -1649,10 +1653,10 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1649
1653
|
return transporter.request(request, requestOptions);
|
|
1650
1654
|
},
|
|
1651
1655
|
/**
|
|
1652
|
-
*
|
|
1656
|
+
* Send multiple search queries to one or more indices.
|
|
1653
1657
|
*
|
|
1654
1658
|
* @summary Search multiple indices.
|
|
1655
|
-
* @param searchMethodParams -
|
|
1659
|
+
* @param searchMethodParams - Query requests and strategies. Results will be received in the same order as the queries.
|
|
1656
1660
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1657
1661
|
*/
|
|
1658
1662
|
search(searchMethodParams, requestOptions) {
|
|
@@ -1699,11 +1703,11 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1699
1703
|
return transporter.request(request, requestOptions);
|
|
1700
1704
|
},
|
|
1701
1705
|
/**
|
|
1702
|
-
* Search the
|
|
1706
|
+
* 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.
|
|
1703
1707
|
*
|
|
1704
|
-
* @summary Search
|
|
1708
|
+
* @summary Search dictionary entries.
|
|
1705
1709
|
* @param searchDictionaryEntries - The searchDictionaryEntries object.
|
|
1706
|
-
* @param searchDictionaryEntries.dictionaryName -
|
|
1710
|
+
* @param searchDictionaryEntries.dictionaryName - Dictionary to search in.
|
|
1707
1711
|
* @param searchDictionaryEntries.searchDictionaryEntriesParams - The searchDictionaryEntriesParams object.
|
|
1708
1712
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1709
1713
|
*/
|
|
@@ -1732,12 +1736,12 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1732
1736
|
return transporter.request(request, requestOptions);
|
|
1733
1737
|
},
|
|
1734
1738
|
/**
|
|
1735
|
-
* Search for
|
|
1739
|
+
* [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`.
|
|
1736
1740
|
*
|
|
1737
|
-
* @summary Search for values
|
|
1741
|
+
* @summary Search for facet values.
|
|
1738
1742
|
* @param searchForFacetValues - The searchForFacetValues object.
|
|
1739
|
-
* @param searchForFacetValues.indexName -
|
|
1740
|
-
* @param searchForFacetValues.facetName -
|
|
1743
|
+
* @param searchForFacetValues.indexName - Index on which to perform the request.
|
|
1744
|
+
* @param searchForFacetValues.facetName - Facet name.
|
|
1741
1745
|
* @param searchForFacetValues.searchForFacetValuesRequest - The searchForFacetValuesRequest object.
|
|
1742
1746
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1743
1747
|
*/
|
|
@@ -1765,11 +1769,11 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1765
1769
|
return transporter.request(request, requestOptions);
|
|
1766
1770
|
},
|
|
1767
1771
|
/**
|
|
1768
|
-
* Search for rules
|
|
1772
|
+
* Search for rules in your index. You can control the search with parameters. To list all rules, send an empty request body.
|
|
1769
1773
|
*
|
|
1770
1774
|
* @summary Search for rules.
|
|
1771
1775
|
* @param searchRules - The searchRules object.
|
|
1772
|
-
* @param searchRules.indexName -
|
|
1776
|
+
* @param searchRules.indexName - Index on which to perform the request.
|
|
1773
1777
|
* @param searchRules.searchRulesParams - The searchRulesParams object.
|
|
1774
1778
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1775
1779
|
*/
|
|
@@ -1792,11 +1796,11 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1792
1796
|
return transporter.request(request, requestOptions);
|
|
1793
1797
|
},
|
|
1794
1798
|
/**
|
|
1795
|
-
*
|
|
1799
|
+
* Return records that match the query.
|
|
1796
1800
|
*
|
|
1797
|
-
* @summary Search
|
|
1801
|
+
* @summary Search an index.
|
|
1798
1802
|
* @param searchSingleIndex - The searchSingleIndex object.
|
|
1799
|
-
* @param searchSingleIndex.indexName -
|
|
1803
|
+
* @param searchSingleIndex.indexName - Index on which to perform the request.
|
|
1800
1804
|
* @param searchSingleIndex.searchParams - The searchParams object.
|
|
1801
1805
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1802
1806
|
*/
|
|
@@ -1819,15 +1823,15 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1819
1823
|
return transporter.request(request, requestOptions);
|
|
1820
1824
|
},
|
|
1821
1825
|
/**
|
|
1822
|
-
* Search
|
|
1826
|
+
* Search for synonyms in your index. You can control and filter the search with parameters. To get all synonyms, send an empty request body.
|
|
1823
1827
|
*
|
|
1824
|
-
* @summary Search synonyms.
|
|
1828
|
+
* @summary Search for synonyms.
|
|
1825
1829
|
* @param searchSynonyms - The searchSynonyms object.
|
|
1826
|
-
* @param searchSynonyms.indexName -
|
|
1827
|
-
* @param searchSynonyms.type -
|
|
1828
|
-
* @param searchSynonyms.page -
|
|
1829
|
-
* @param searchSynonyms.hitsPerPage - Maximum number of
|
|
1830
|
-
* @param searchSynonyms.searchSynonymsParams -
|
|
1830
|
+
* @param searchSynonyms.indexName - Index on which to perform the request.
|
|
1831
|
+
* @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).
|
|
1832
|
+
* @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.
|
|
1833
|
+
* @param searchSynonyms.hitsPerPage - Maximum number of hits per page.
|
|
1834
|
+
* @param searchSynonyms.searchSynonymsParams - Body of the `searchSynonyms` operation.
|
|
1831
1835
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1832
1836
|
*/
|
|
1833
1837
|
searchSynonyms({ indexName, type, page, hitsPerPage, searchSynonymsParams, }, requestOptions) {
|
|
@@ -1858,9 +1862,9 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1858
1862
|
return transporter.request(request, requestOptions);
|
|
1859
1863
|
},
|
|
1860
1864
|
/**
|
|
1861
|
-
*
|
|
1865
|
+
* 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).
|
|
1862
1866
|
*
|
|
1863
|
-
* @summary Search
|
|
1867
|
+
* @summary Search for a user ID.
|
|
1864
1868
|
* @param searchUserIdsParams - The searchUserIdsParams object.
|
|
1865
1869
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1866
1870
|
*/
|
|
@@ -1886,9 +1890,9 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1886
1890
|
return transporter.request(request, requestOptions);
|
|
1887
1891
|
},
|
|
1888
1892
|
/**
|
|
1889
|
-
* Set
|
|
1893
|
+
* Set stop word settings for a specific language.
|
|
1890
1894
|
*
|
|
1891
|
-
* @summary Set
|
|
1895
|
+
* @summary Set stop word settings.
|
|
1892
1896
|
* @param dictionarySettingsParams - The dictionarySettingsParams object.
|
|
1893
1897
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1894
1898
|
*/
|
|
@@ -1912,13 +1916,13 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1912
1916
|
return transporter.request(request, requestOptions);
|
|
1913
1917
|
},
|
|
1914
1918
|
/**
|
|
1915
|
-
* Update
|
|
1919
|
+
* 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.
|
|
1916
1920
|
*
|
|
1917
|
-
* @summary Update settings
|
|
1921
|
+
* @summary Update index settings.
|
|
1918
1922
|
* @param setSettings - The setSettings object.
|
|
1919
|
-
* @param setSettings.indexName -
|
|
1923
|
+
* @param setSettings.indexName - Index on which to perform the request.
|
|
1920
1924
|
* @param setSettings.indexSettings - The indexSettings object.
|
|
1921
|
-
* @param setSettings.forwardToReplicas -
|
|
1925
|
+
* @param setSettings.forwardToReplicas - Indicates whether changed index settings are forwarded to the replica indices.
|
|
1922
1926
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1923
1927
|
*/
|
|
1924
1928
|
setSettings({ indexName, indexSettings, forwardToReplicas }, requestOptions) {
|
|
@@ -1944,11 +1948,11 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1944
1948
|
return transporter.request(request, requestOptions);
|
|
1945
1949
|
},
|
|
1946
1950
|
/**
|
|
1947
|
-
* Replace
|
|
1951
|
+
* 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.
|
|
1948
1952
|
*
|
|
1949
1953
|
* @summary Update an API key.
|
|
1950
1954
|
* @param updateApiKey - The updateApiKey object.
|
|
1951
|
-
* @param updateApiKey.key - API
|
|
1955
|
+
* @param updateApiKey.key - API key.
|
|
1952
1956
|
* @param updateApiKey.apiKey - The apiKey object.
|
|
1953
1957
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1954
1958
|
*/
|