@algolia/client-search 5.55.0 → 5.55.1
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/README.md +4 -4
- package/dist/browser.d.ts +4 -4
- package/dist/builds/browser.js +10 -3
- package/dist/builds/browser.js.map +1 -1
- package/dist/builds/browser.min.js +4 -4
- package/dist/builds/browser.min.js.map +1 -1
- package/dist/builds/browser.umd.js +5 -5
- package/dist/builds/fetch.js +10 -3
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +9 -3
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +10 -3
- package/dist/builds/node.js.map +1 -1
- package/dist/builds/worker.js +10 -3
- package/dist/builds/worker.js.map +1 -1
- package/dist/fetch.d.ts +4 -4
- package/dist/node.d.cts +4 -4
- package/dist/node.d.ts +4 -4
- package/dist/src/searchClient.cjs +9 -3
- package/dist/src/searchClient.cjs.map +1 -1
- package/dist/src/searchClient.js +10 -3
- package/dist/src/searchClient.js.map +1 -1
- package/dist/worker.d.ts +4 -4
- package/package.json +6 -6
package/dist/builds/node.cjs
CHANGED
|
@@ -31,7 +31,7 @@ var import_requester_node_http = require("@algolia/requester-node-http");
|
|
|
31
31
|
|
|
32
32
|
// src/searchClient.ts
|
|
33
33
|
var import_client_common = require("@algolia/client-common");
|
|
34
|
-
var apiClientVersion = "5.55.
|
|
34
|
+
var apiClientVersion = "5.55.1";
|
|
35
35
|
function getDefaultHosts(appId) {
|
|
36
36
|
return [
|
|
37
37
|
{
|
|
@@ -472,10 +472,16 @@ function createSearchClient({
|
|
|
472
472
|
* @param replaceAllObjects.objects - The array of `objects` to store in the given Algolia `indexName`.
|
|
473
473
|
* @param replaceAllObjects.batchSize - The size of the chunk of `objects`. The number of `batch` calls will be equal to `objects.length / batchSize`. Defaults to 1000.
|
|
474
474
|
* @param replaceAllObjects.scopes - The `scopes` to keep from the index. Defaults to ['settings', 'rules', 'synonyms'].
|
|
475
|
-
* @param replaceAllObjects.maxRetries - The maximum number of retries when polling for task completion.
|
|
475
|
+
* @param replaceAllObjects.maxRetries - The maximum number of retries when polling for task completion. 800 by default.
|
|
476
476
|
* @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `batch`, `operationIndex` and `getTask` method and merged with the transporter requestOptions.
|
|
477
477
|
*/
|
|
478
|
-
async replaceAllObjects({
|
|
478
|
+
async replaceAllObjects({
|
|
479
|
+
indexName,
|
|
480
|
+
objects,
|
|
481
|
+
batchSize,
|
|
482
|
+
scopes,
|
|
483
|
+
maxRetries = import_client_common.DEFAULT_REPLACE_ALL_OBJECTS_MAX_RETRIES
|
|
484
|
+
}, requestOptions) {
|
|
479
485
|
const randomSuffix = Math.floor(Math.random() * 1e6) + 1e5;
|
|
480
486
|
const tmpIndexName = `${indexName}_tmp_${randomSuffix}`;
|
|
481
487
|
if (scopes === void 0) {
|