@algolia/client-search 5.38.0 → 5.40.0
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 +58 -61
- package/dist/builds/browser.js +15 -15
- package/dist/builds/browser.js.map +1 -1
- package/dist/builds/browser.min.js +1 -1
- package/dist/builds/browser.min.js.map +1 -1
- package/dist/builds/browser.umd.js +1 -1
- package/dist/builds/fetch.js +15 -15
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +15 -15
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +15 -15
- package/dist/builds/node.js.map +1 -1
- package/dist/builds/worker.js +15 -15
- package/dist/builds/worker.js.map +1 -1
- package/dist/fetch.d.ts +58 -61
- package/dist/node.d.cts +58 -61
- package/dist/node.d.ts +58 -61
- package/dist/src/searchClient.cjs +15 -15
- package/dist/src/searchClient.cjs.map +1 -1
- package/dist/src/searchClient.js +15 -15
- package/dist/src/searchClient.js.map +1 -1
- package/dist/worker.d.ts +58 -61
- package/package.json +9 -9
package/dist/src/searchClient.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
getAlgoliaAgent,
|
|
8
8
|
shuffle
|
|
9
9
|
} from "@algolia/client-common";
|
|
10
|
-
var apiClientVersion = "5.
|
|
10
|
+
var apiClientVersion = "5.40.0";
|
|
11
11
|
function getDefaultHosts(appId) {
|
|
12
12
|
return [
|
|
13
13
|
{
|
|
@@ -556,7 +556,7 @@ function createSearchClient({
|
|
|
556
556
|
return transporter.request(request, requestOptions);
|
|
557
557
|
},
|
|
558
558
|
/**
|
|
559
|
-
* If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index. If you want to use auto-generated object IDs, use the [`saveObject` operation](
|
|
559
|
+
* If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index. If you want to use auto-generated object IDs, use the [`saveObject` operation](https://www.algolia.com/doc/rest-api/search/save-object). To update _some_ attributes of an existing record, use the [`partial` operation](https://www.algolia.com/doc/rest-api/search/partial-update-object) instead. To add, update, or replace multiple records, use the [`batch` operation](https://www.algolia.com/doc/rest-api/search/batch).
|
|
560
560
|
*
|
|
561
561
|
* Required API Key ACLs:
|
|
562
562
|
* - addObject
|
|
@@ -982,7 +982,7 @@ function createSearchClient({
|
|
|
982
982
|
return transporter.request(request, requestOptions);
|
|
983
983
|
},
|
|
984
984
|
/**
|
|
985
|
-
* This operation doesn\'t accept empty filters. This operation is resource-intensive. You should only use it if you can\'t get the object IDs of the records you want to delete. It\'s more efficient to get a list of object IDs with the [`browse` operation](
|
|
985
|
+
* This operation doesn\'t accept empty filters. This operation is resource-intensive. You should only use it if you can\'t get the object IDs of the records you want to delete. It\'s more efficient to get a list of object IDs with the [`browse` operation](https://www.algolia.com/doc/rest-api/search/browse), and then delete the records using the [`batch` operation](https://www.algolia.com/doc/rest-api/search/batch). This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
|
|
986
986
|
*
|
|
987
987
|
* Required API Key ACLs:
|
|
988
988
|
* - deleteIndex
|
|
@@ -1011,7 +1011,7 @@ function createSearchClient({
|
|
|
1011
1011
|
return transporter.request(request, requestOptions);
|
|
1012
1012
|
},
|
|
1013
1013
|
/**
|
|
1014
|
-
* 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
|
|
1014
|
+
* 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).
|
|
1015
1015
|
*
|
|
1016
1016
|
* Required API Key ACLs:
|
|
1017
1017
|
* - deleteIndex
|
|
@@ -1035,7 +1035,7 @@ function createSearchClient({
|
|
|
1035
1035
|
return transporter.request(request, requestOptions);
|
|
1036
1036
|
},
|
|
1037
1037
|
/**
|
|
1038
|
-
* Deletes a record by its object ID. To delete more than one record, use the [`batch` operation](
|
|
1038
|
+
* Deletes a record by its object ID. To delete more than one record, use the [`batch` operation](https://www.algolia.com/doc/rest-api/search/batch). To delete records matching a query, use the [`deleteBy` operation](https://www.algolia.com/doc/rest-api/search/delete-by).
|
|
1039
1039
|
*
|
|
1040
1040
|
* Required API Key ACLs:
|
|
1041
1041
|
* - deleteObject
|
|
@@ -1063,7 +1063,7 @@ function createSearchClient({
|
|
|
1063
1063
|
return transporter.request(request, requestOptions);
|
|
1064
1064
|
},
|
|
1065
1065
|
/**
|
|
1066
|
-
* Deletes a rule by its ID. To find the object ID for rules, use the [`search` operation](
|
|
1066
|
+
* Deletes a rule by its ID. To find the object ID for rules, use the [`search` operation](https://www.algolia.com/doc/rest-api/search/search-rules).
|
|
1067
1067
|
*
|
|
1068
1068
|
* Required API Key ACLs:
|
|
1069
1069
|
* - editSettings
|
|
@@ -1119,7 +1119,7 @@ function createSearchClient({
|
|
|
1119
1119
|
return transporter.request(request, requestOptions);
|
|
1120
1120
|
},
|
|
1121
1121
|
/**
|
|
1122
|
-
* Deletes a synonym by its ID. To find the object IDs of your synonyms, use the [`search` operation](
|
|
1122
|
+
* Deletes a synonym by its ID. To find the object IDs of your synonyms, use the [`search` operation](https://www.algolia.com/doc/rest-api/search/search-synonyms).
|
|
1123
1123
|
*
|
|
1124
1124
|
* Required API Key ACLs:
|
|
1125
1125
|
* - editSettings
|
|
@@ -1270,7 +1270,7 @@ function createSearchClient({
|
|
|
1270
1270
|
return transporter.request(request, requestOptions);
|
|
1271
1271
|
},
|
|
1272
1272
|
/**
|
|
1273
|
-
* Retrieves one record by its object ID. To retrieve more than one record, use the [`objects` operation](
|
|
1273
|
+
* Retrieves one record by its object ID. To retrieve more than one record, use the [`objects` operation](https://www.algolia.com/doc/rest-api/search/get-objects).
|
|
1274
1274
|
*
|
|
1275
1275
|
* Required API Key ACLs:
|
|
1276
1276
|
* - search
|
|
@@ -1331,7 +1331,7 @@ function createSearchClient({
|
|
|
1331
1331
|
return transporter.request(request, requestOptions);
|
|
1332
1332
|
},
|
|
1333
1333
|
/**
|
|
1334
|
-
* Retrieves a rule by its ID. To find the object ID of rules, use the [`search` operation](
|
|
1334
|
+
* Retrieves a rule by its ID. To find the object ID of rules, use the [`search` operation](https://www.algolia.com/doc/rest-api/search/search-rules).
|
|
1335
1335
|
*
|
|
1336
1336
|
* Required API Key ACLs:
|
|
1337
1337
|
* - settings
|
|
@@ -1406,7 +1406,7 @@ function createSearchClient({
|
|
|
1406
1406
|
return transporter.request(request, requestOptions);
|
|
1407
1407
|
},
|
|
1408
1408
|
/**
|
|
1409
|
-
* Retrieves a synonym by its ID. To find the object IDs for your synonyms, use the [`search` operation](
|
|
1409
|
+
* Retrieves a synonym by its ID. To find the object IDs for your synonyms, use the [`search` operation](https://www.algolia.com/doc/rest-api/search/search-synonyms).
|
|
1410
1410
|
*
|
|
1411
1411
|
* Required API Key ACLs:
|
|
1412
1412
|
* - settings
|
|
@@ -1657,7 +1657,7 @@ function createSearchClient({
|
|
|
1657
1657
|
return transporter.request(request, requestOptions);
|
|
1658
1658
|
},
|
|
1659
1659
|
/**
|
|
1660
|
-
* Copies or moves (renames) an index within the same Algolia application. - Existing destination indices are overwritten, except for their analytics data. - If the destination index doesn\'t exist yet, it\'ll be created. - This operation is resource-intensive. **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
|
|
1660
|
+
* Copies or moves (renames) an index within the same Algolia application. - Existing destination indices are overwritten, except for their analytics data. - If the destination index doesn\'t exist yet, it\'ll be created. - This operation is resource-intensive. **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 keeps its 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). This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
|
|
1661
1661
|
*
|
|
1662
1662
|
* Required API Key ACLs:
|
|
1663
1663
|
* - addObject
|
|
@@ -1804,7 +1804,7 @@ function createSearchClient({
|
|
|
1804
1804
|
return transporter.request(request, requestOptions);
|
|
1805
1805
|
},
|
|
1806
1806
|
/**
|
|
1807
|
-
* Adds a record to an index or replaces 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](
|
|
1807
|
+
* Adds a record to an index or replaces 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](https://www.algolia.com/doc/rest-api/search/partial-update-object). To add, update, or replace multiple records, use the [`batch` operation](https://www.algolia.com/doc/rest-api/search/batch). This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
|
|
1808
1808
|
*
|
|
1809
1809
|
* Required API Key ACLs:
|
|
1810
1810
|
* - addObject
|
|
@@ -1833,7 +1833,7 @@ function createSearchClient({
|
|
|
1833
1833
|
return transporter.request(request, requestOptions);
|
|
1834
1834
|
},
|
|
1835
1835
|
/**
|
|
1836
|
-
* 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](
|
|
1836
|
+
* 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](https://www.algolia.com/doc/rest-api/search/save-rules).
|
|
1837
1837
|
*
|
|
1838
1838
|
* Required API Key ACLs:
|
|
1839
1839
|
* - editSettings
|
|
@@ -1913,7 +1913,7 @@ function createSearchClient({
|
|
|
1913
1913
|
return transporter.request(request, requestOptions);
|
|
1914
1914
|
},
|
|
1915
1915
|
/**
|
|
1916
|
-
* 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](
|
|
1916
|
+
* 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](https://www.algolia.com/doc/rest-api/search/save-synonyms).
|
|
1917
1917
|
*
|
|
1918
1918
|
* Required API Key ACLs:
|
|
1919
1919
|
* - editSettings
|
|
@@ -2144,7 +2144,7 @@ function createSearchClient({
|
|
|
2144
2144
|
return transporter.request(request, requestOptions);
|
|
2145
2145
|
},
|
|
2146
2146
|
/**
|
|
2147
|
-
* Searches a single index and returns matching search results
|
|
2147
|
+
* Searches a single index and returns matching search results as hits. This method lets you retrieve up to 1,000 hits. If you need more, use the [`browse` operation](https://www.algolia.com/doc/rest-api/search/browse) or increase the `paginatedLimitedTo` index setting.
|
|
2148
2148
|
*
|
|
2149
2149
|
* Required API Key ACLs:
|
|
2150
2150
|
* - search
|