@algolia/client-search 5.51.0 → 5.52.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 +3 -3
- package/dist/builds/browser.js +3 -3
- 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 +3 -3
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +3 -3
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +3 -3
- package/dist/builds/node.js.map +1 -1
- package/dist/builds/worker.js +3 -3
- package/dist/builds/worker.js.map +1 -1
- package/dist/fetch.d.ts +3 -3
- package/dist/node.d.cts +3 -3
- package/dist/node.d.ts +3 -3
- package/dist/src/searchClient.cjs +3 -3
- package/dist/src/searchClient.cjs.map +1 -1
- package/dist/src/searchClient.js +8 -5
- package/dist/src/searchClient.js.map +1 -1
- package/dist/worker.d.ts +3 -3
- package/package.json +6 -6
package/dist/fetch.d.ts
CHANGED
|
@@ -3173,7 +3173,7 @@ type AccountCopyIndexOptions = {
|
|
|
3173
3173
|
batchSize?: number | undefined;
|
|
3174
3174
|
};
|
|
3175
3175
|
|
|
3176
|
-
declare const apiClientVersion = "5.
|
|
3176
|
+
declare const apiClientVersion = "5.52.1";
|
|
3177
3177
|
declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
|
|
3178
3178
|
transporter: _algolia_client_common.Transporter;
|
|
3179
3179
|
/**
|
|
@@ -3926,11 +3926,11 @@ declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption,
|
|
|
3926
3926
|
*/
|
|
3927
3927
|
saveSynonyms({ indexName, synonymHit, forwardToReplicas, replaceExistingSynonyms }: SaveSynonymsProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
3928
3928
|
/**
|
|
3929
|
-
*
|
|
3929
|
+
* Runs multiple search queries against one or more indices in a single API request. Use cases include: - Searching different indices, such as products and marketing content. - Run multiple queries on the same index with different parameters or filters. If you know the expected result type, use the `searchForHits` or `searchForFacets` helper to simplify the response format.
|
|
3930
3930
|
*
|
|
3931
3931
|
* Required API Key ACLs:
|
|
3932
3932
|
* - search
|
|
3933
|
-
* @param searchMethodParams -
|
|
3933
|
+
* @param searchMethodParams - Multi-query search request body. Results are returned in the same order as the requests.
|
|
3934
3934
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
3935
3935
|
*/
|
|
3936
3936
|
search<T>(searchMethodParams: SearchMethodParams | LegacySearchMethodProps, requestOptions?: RequestOptions): Promise<SearchResponses<T>>;
|
package/dist/node.d.cts
CHANGED
|
@@ -3173,7 +3173,7 @@ type AccountCopyIndexOptions = {
|
|
|
3173
3173
|
batchSize?: number | undefined;
|
|
3174
3174
|
};
|
|
3175
3175
|
|
|
3176
|
-
declare const apiClientVersion = "5.
|
|
3176
|
+
declare const apiClientVersion = "5.52.1";
|
|
3177
3177
|
declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
|
|
3178
3178
|
transporter: _algolia_client_common.Transporter;
|
|
3179
3179
|
/**
|
|
@@ -3926,11 +3926,11 @@ declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption,
|
|
|
3926
3926
|
*/
|
|
3927
3927
|
saveSynonyms({ indexName, synonymHit, forwardToReplicas, replaceExistingSynonyms }: SaveSynonymsProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
3928
3928
|
/**
|
|
3929
|
-
*
|
|
3929
|
+
* Runs multiple search queries against one or more indices in a single API request. Use cases include: - Searching different indices, such as products and marketing content. - Run multiple queries on the same index with different parameters or filters. If you know the expected result type, use the `searchForHits` or `searchForFacets` helper to simplify the response format.
|
|
3930
3930
|
*
|
|
3931
3931
|
* Required API Key ACLs:
|
|
3932
3932
|
* - search
|
|
3933
|
-
* @param searchMethodParams -
|
|
3933
|
+
* @param searchMethodParams - Multi-query search request body. Results are returned in the same order as the requests.
|
|
3934
3934
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
3935
3935
|
*/
|
|
3936
3936
|
search<T>(searchMethodParams: SearchMethodParams | LegacySearchMethodProps, requestOptions?: RequestOptions): Promise<SearchResponses<T>>;
|
package/dist/node.d.ts
CHANGED
|
@@ -3173,7 +3173,7 @@ type AccountCopyIndexOptions = {
|
|
|
3173
3173
|
batchSize?: number | undefined;
|
|
3174
3174
|
};
|
|
3175
3175
|
|
|
3176
|
-
declare const apiClientVersion = "5.
|
|
3176
|
+
declare const apiClientVersion = "5.52.1";
|
|
3177
3177
|
declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
|
|
3178
3178
|
transporter: _algolia_client_common.Transporter;
|
|
3179
3179
|
/**
|
|
@@ -3926,11 +3926,11 @@ declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption,
|
|
|
3926
3926
|
*/
|
|
3927
3927
|
saveSynonyms({ indexName, synonymHit, forwardToReplicas, replaceExistingSynonyms }: SaveSynonymsProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
3928
3928
|
/**
|
|
3929
|
-
*
|
|
3929
|
+
* Runs multiple search queries against one or more indices in a single API request. Use cases include: - Searching different indices, such as products and marketing content. - Run multiple queries on the same index with different parameters or filters. If you know the expected result type, use the `searchForHits` or `searchForFacets` helper to simplify the response format.
|
|
3930
3930
|
*
|
|
3931
3931
|
* Required API Key ACLs:
|
|
3932
3932
|
* - search
|
|
3933
|
-
* @param searchMethodParams -
|
|
3933
|
+
* @param searchMethodParams - Multi-query search request body. Results are returned in the same order as the requests.
|
|
3934
3934
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
3935
3935
|
*/
|
|
3936
3936
|
search<T>(searchMethodParams: SearchMethodParams | LegacySearchMethodProps, requestOptions?: RequestOptions): Promise<SearchResponses<T>>;
|
|
@@ -25,7 +25,7 @@ __export(searchClient_exports, {
|
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(searchClient_exports);
|
|
27
27
|
var import_client_common = require("@algolia/client-common");
|
|
28
|
-
var apiClientVersion = "5.
|
|
28
|
+
var apiClientVersion = "5.52.1";
|
|
29
29
|
function getDefaultHosts(appId) {
|
|
30
30
|
return [
|
|
31
31
|
{
|
|
@@ -2020,11 +2020,11 @@ function createSearchClient({
|
|
|
2020
2020
|
return transporter.request(request, requestOptions);
|
|
2021
2021
|
},
|
|
2022
2022
|
/**
|
|
2023
|
-
*
|
|
2023
|
+
* Runs multiple search queries against one or more indices in a single API request. Use cases include: - Searching different indices, such as products and marketing content. - Run multiple queries on the same index with different parameters or filters. If you know the expected result type, use the `searchForHits` or `searchForFacets` helper to simplify the response format.
|
|
2024
2024
|
*
|
|
2025
2025
|
* Required API Key ACLs:
|
|
2026
2026
|
* - search
|
|
2027
|
-
* @param searchMethodParams -
|
|
2027
|
+
* @param searchMethodParams - Multi-query search request body. Results are returned in the same order as the requests.
|
|
2028
2028
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2029
2029
|
*/
|
|
2030
2030
|
search(searchMethodParams, requestOptions) {
|