@algolia/client-search 4.11.0 → 4.12.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.
|
@@ -278,6 +278,15 @@ const getApiKey = (base) => {
|
|
|
278
278
|
};
|
|
279
279
|
};
|
|
280
280
|
|
|
281
|
+
const getAppTask = (base) => {
|
|
282
|
+
return (taskID, requestOptions) => {
|
|
283
|
+
return base.transporter.read({
|
|
284
|
+
method: requesterCommon.MethodEnum.Get,
|
|
285
|
+
path: clientCommon.encode('1/task/%s', taskID.toString()),
|
|
286
|
+
}, requestOptions);
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
|
|
281
290
|
const getDictionarySettings = (base) => {
|
|
282
291
|
return (requestOptions) => {
|
|
283
292
|
return base.transporter.read({
|
|
@@ -317,15 +326,6 @@ const getTopUserIDs = (base) => {
|
|
|
317
326
|
};
|
|
318
327
|
};
|
|
319
328
|
|
|
320
|
-
const getAppTask = (base) => {
|
|
321
|
-
return (taskID, requestOptions) => {
|
|
322
|
-
return base.transporter.read({
|
|
323
|
-
method: requesterCommon.MethodEnum.Get,
|
|
324
|
-
path: clientCommon.encode('1/task/%s', taskID.toString()),
|
|
325
|
-
}, requestOptions);
|
|
326
|
-
};
|
|
327
|
-
};
|
|
328
|
-
|
|
329
329
|
const getUserID = (base) => {
|
|
330
330
|
return (userID, requestOptions) => {
|
|
331
331
|
return base.transporter.read({
|
package/dist/client-search.d.ts
CHANGED
|
@@ -1127,7 +1127,7 @@ export declare const replaceAllSynonyms: (base: SearchIndex) => (synonyms: reado
|
|
|
1127
1127
|
|
|
1128
1128
|
export declare const replaceDictionaryEntries: (base: SearchClient) => (dictionary: DictionaryName, entries: readonly DictionaryEntry[], requestOptions?: (RequestOptions & DictionaryEntriesOptions) | undefined) => Readonly<WaitablePromise<DictionaryEntriesResponse>>;
|
|
1129
1129
|
|
|
1130
|
-
declare type RequireAtLeastOne<TType> = {
|
|
1130
|
+
export declare type RequireAtLeastOne<TType> = {
|
|
1131
1131
|
[TKey in keyof TType]-?: Required<Pick<TType, TKey>> & Partial<Pick<TType, Exclude<keyof TType, TKey>>>;
|
|
1132
1132
|
}[keyof TType];
|
|
1133
1133
|
|
|
@@ -1679,6 +1679,10 @@ export declare type SearchOptions = {
|
|
|
1679
1679
|
* This parameter is only used to turn off Dynamic Re-Ranking (with false) at search time.
|
|
1680
1680
|
*/
|
|
1681
1681
|
readonly enableReRanking?: boolean;
|
|
1682
|
+
/**
|
|
1683
|
+
* When Dynamic Re-Ranking is enabled, only records that match these filters will be impacted by Dynamic Re-Ranking.
|
|
1684
|
+
*/
|
|
1685
|
+
readonly reRankingApplyFilter?: string | readonly string[] | ReadonlyArray<readonly string[] | string>;
|
|
1682
1686
|
};
|
|
1683
1687
|
|
|
1684
1688
|
export declare type SearchResponse<TObject = {}> = {
|
|
@@ -2292,6 +2296,18 @@ export declare type Settings = {
|
|
|
2292
2296
|
};
|
|
2293
2297
|
};
|
|
2294
2298
|
};
|
|
2299
|
+
/**
|
|
2300
|
+
* Whether this index should use Dynamic Re-Ranking.
|
|
2301
|
+
* @link https://www.algolia.com/doc/guides/algolia-ai/re-ranking/
|
|
2302
|
+
*
|
|
2303
|
+
* Note: You need to turn on Dynamic Re-Ranking on your index for it to have an effect on
|
|
2304
|
+
* your search results. You can do this through the Re-Ranking page on the dashboard.
|
|
2305
|
+
*/
|
|
2306
|
+
readonly enableReRanking?: boolean;
|
|
2307
|
+
/**
|
|
2308
|
+
* When Dynamic Re-Ranking is enabled, only records that match these filters will be impacted by Dynamic Re-Ranking.
|
|
2309
|
+
*/
|
|
2310
|
+
readonly reRankingApplyFilter?: string | readonly string[] | ReadonlyArray<readonly string[] | string>;
|
|
2295
2311
|
};
|
|
2296
2312
|
|
|
2297
2313
|
declare type SharedMultipleQueriesQuery = {
|
|
@@ -274,6 +274,15 @@ const getApiKey = (base) => {
|
|
|
274
274
|
};
|
|
275
275
|
};
|
|
276
276
|
|
|
277
|
+
const getAppTask = (base) => {
|
|
278
|
+
return (taskID, requestOptions) => {
|
|
279
|
+
return base.transporter.read({
|
|
280
|
+
method: MethodEnum.Get,
|
|
281
|
+
path: encode('1/task/%s', taskID.toString()),
|
|
282
|
+
}, requestOptions);
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
|
|
277
286
|
const getDictionarySettings = (base) => {
|
|
278
287
|
return (requestOptions) => {
|
|
279
288
|
return base.transporter.read({
|
|
@@ -313,15 +322,6 @@ const getTopUserIDs = (base) => {
|
|
|
313
322
|
};
|
|
314
323
|
};
|
|
315
324
|
|
|
316
|
-
const getAppTask = (base) => {
|
|
317
|
-
return (taskID, requestOptions) => {
|
|
318
|
-
return base.transporter.read({
|
|
319
|
-
method: MethodEnum.Get,
|
|
320
|
-
path: encode('1/task/%s', taskID.toString()),
|
|
321
|
-
}, requestOptions);
|
|
322
|
-
};
|
|
323
|
-
};
|
|
324
|
-
|
|
325
325
|
const getUserID = (base) => {
|
|
326
326
|
return (userID, requestOptions) => {
|
|
327
327
|
return base.transporter.read({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@algolia/client-search",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.12.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@algolia/client-common": "4.
|
|
20
|
-
"@algolia/requester-common": "4.
|
|
21
|
-
"@algolia/transporter": "4.
|
|
19
|
+
"@algolia/client-common": "4.12.0",
|
|
20
|
+
"@algolia/requester-common": "4.12.0",
|
|
21
|
+
"@algolia/transporter": "4.12.0"
|
|
22
22
|
}
|
|
23
23
|
}
|