@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/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.52.1";
|
|
11
11
|
function getDefaultHosts(appId) {
|
|
12
12
|
return [
|
|
13
13
|
{
|
|
@@ -272,7 +272,7 @@ function createSearchClient({
|
|
|
272
272
|
browseRules({ indexName, searchRulesParams, ...browseRulesOptions }, requestOptions) {
|
|
273
273
|
const params = {
|
|
274
274
|
...searchRulesParams,
|
|
275
|
-
hitsPerPage:
|
|
275
|
+
hitsPerPage: searchRulesParams?.hitsPerPage || 1e3
|
|
276
276
|
};
|
|
277
277
|
return createIterablePromise({
|
|
278
278
|
func: (previousResponse) => {
|
|
@@ -309,7 +309,7 @@ function createSearchClient({
|
|
|
309
309
|
}, requestOptions) {
|
|
310
310
|
const params = {
|
|
311
311
|
...searchSynonymsParams,
|
|
312
|
-
page:
|
|
312
|
+
page: searchSynonymsParams?.page || 0,
|
|
313
313
|
hitsPerPage: 1e3
|
|
314
314
|
};
|
|
315
315
|
return createIterablePromise({
|
|
@@ -2002,11 +2002,11 @@ function createSearchClient({
|
|
|
2002
2002
|
return transporter.request(request, requestOptions);
|
|
2003
2003
|
},
|
|
2004
2004
|
/**
|
|
2005
|
-
*
|
|
2005
|
+
* 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.
|
|
2006
2006
|
*
|
|
2007
2007
|
* Required API Key ACLs:
|
|
2008
2008
|
* - search
|
|
2009
|
-
* @param searchMethodParams -
|
|
2009
|
+
* @param searchMethodParams - Multi-query search request body. Results are returned in the same order as the requests.
|
|
2010
2010
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2011
2011
|
*/
|
|
2012
2012
|
search(searchMethodParams, requestOptions) {
|
|
@@ -2342,4 +2342,7 @@ export {
|
|
|
2342
2342
|
apiClientVersion,
|
|
2343
2343
|
createSearchClient
|
|
2344
2344
|
};
|
|
2345
|
+
//# sourceMappingURL=searchClient.js.mapClientVersion,
|
|
2346
|
+
createSearchClient
|
|
2347
|
+
};
|
|
2345
2348
|
//# sourceMappingURL=searchClient.js.map
|