@algolia/client-search 4.11.0 → 4.12.2
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
|
@@ -389,17 +389,17 @@ export declare type DeleteByFiltersOptions = {
|
|
|
389
389
|
/**
|
|
390
390
|
* Filter hits by facet value.
|
|
391
391
|
*/
|
|
392
|
-
readonly facetFilters?: string | readonly string[] | ReadonlyArray<readonly string[]>;
|
|
392
|
+
readonly facetFilters?: string | readonly string[] | ReadonlyArray<readonly string[] | string>;
|
|
393
393
|
/**
|
|
394
394
|
* Filter on numeric attributes.
|
|
395
395
|
*/
|
|
396
|
-
readonly numericFilters?: string | readonly string[] | ReadonlyArray<readonly string[]>;
|
|
396
|
+
readonly numericFilters?: string | readonly string[] | ReadonlyArray<readonly string[] | string>;
|
|
397
397
|
/**
|
|
398
398
|
* Filter hits by tags. tagFilters is a different way of filtering, which relies on the _tags
|
|
399
399
|
* attribute. It uses a simpler syntax than filters. You can use it when you want to do
|
|
400
400
|
* simple filtering based on tags.
|
|
401
401
|
*/
|
|
402
|
-
readonly tagFilters?: string | readonly string[] | ReadonlyArray<readonly string[]>;
|
|
402
|
+
readonly tagFilters?: string | readonly string[] | ReadonlyArray<readonly string[] | string>;
|
|
403
403
|
/**
|
|
404
404
|
* Search for entries around a central geolocation, enabling a geo search within a circular area.
|
|
405
405
|
*/
|
|
@@ -1099,6 +1099,7 @@ export declare type RankingInfo = {
|
|
|
1099
1099
|
readonly rankingScore: number;
|
|
1100
1100
|
readonly score: number;
|
|
1101
1101
|
};
|
|
1102
|
+
readonly promotedByReRanking?: boolean;
|
|
1102
1103
|
};
|
|
1103
1104
|
|
|
1104
1105
|
export declare const removeUserID: (base: SearchClient) => (userID: string, requestOptions?: RequestOptions | undefined) => Readonly<Promise<RemoveUserIDResponse>>;
|
|
@@ -1127,7 +1128,7 @@ export declare const replaceAllSynonyms: (base: SearchIndex) => (synonyms: reado
|
|
|
1127
1128
|
|
|
1128
1129
|
export declare const replaceDictionaryEntries: (base: SearchClient) => (dictionary: DictionaryName, entries: readonly DictionaryEntry[], requestOptions?: (RequestOptions & DictionaryEntriesOptions) | undefined) => Readonly<WaitablePromise<DictionaryEntriesResponse>>;
|
|
1129
1130
|
|
|
1130
|
-
declare type RequireAtLeastOne<TType> = {
|
|
1131
|
+
export declare type RequireAtLeastOne<TType> = {
|
|
1131
1132
|
[TKey in keyof TType]-?: Required<Pick<TType, TKey>> & Partial<Pick<TType, Exclude<keyof TType, TKey>>>;
|
|
1132
1133
|
}[keyof TType];
|
|
1133
1134
|
|
|
@@ -1399,7 +1400,7 @@ export declare type SearchOptions = {
|
|
|
1399
1400
|
/**
|
|
1400
1401
|
* Filter hits by facet value.
|
|
1401
1402
|
*/
|
|
1402
|
-
readonly facetFilters?: string | readonly string[] | ReadonlyArray<readonly string[]>;
|
|
1403
|
+
readonly facetFilters?: string | readonly string[] | ReadonlyArray<readonly string[] | string>;
|
|
1403
1404
|
/**
|
|
1404
1405
|
* Create filters for ranking purposes, where records that match the filter are ranked highest.
|
|
1405
1406
|
*/
|
|
@@ -1407,13 +1408,13 @@ export declare type SearchOptions = {
|
|
|
1407
1408
|
/**
|
|
1408
1409
|
* Filter on numeric attributes.
|
|
1409
1410
|
*/
|
|
1410
|
-
readonly numericFilters?: string | readonly string[] | ReadonlyArray<readonly string[]>;
|
|
1411
|
+
readonly numericFilters?: string | readonly string[] | ReadonlyArray<readonly string[] | string>;
|
|
1411
1412
|
/**
|
|
1412
1413
|
* Filter hits by tags. tagFilters is a different way of filtering, which relies on the _tags
|
|
1413
1414
|
* attribute. It uses a simpler syntax than filters. You can use it when you want to do
|
|
1414
1415
|
* simple filtering based on tags.
|
|
1415
1416
|
*/
|
|
1416
|
-
readonly tagFilters?: string | readonly string[] | ReadonlyArray<readonly string[]>;
|
|
1417
|
+
readonly tagFilters?: string | readonly string[] | ReadonlyArray<readonly string[] | string>;
|
|
1417
1418
|
/**
|
|
1418
1419
|
* Determines how to calculate the total score for filtering.
|
|
1419
1420
|
*/
|
|
@@ -1679,6 +1680,10 @@ export declare type SearchOptions = {
|
|
|
1679
1680
|
* This parameter is only used to turn off Dynamic Re-Ranking (with false) at search time.
|
|
1680
1681
|
*/
|
|
1681
1682
|
readonly enableReRanking?: boolean;
|
|
1683
|
+
/**
|
|
1684
|
+
* When Dynamic Re-Ranking is enabled, only records that match these filters will be impacted by Dynamic Re-Ranking.
|
|
1685
|
+
*/
|
|
1686
|
+
readonly reRankingApplyFilter?: string | readonly string[] | ReadonlyArray<readonly string[] | string> | null;
|
|
1682
1687
|
};
|
|
1683
1688
|
|
|
1684
1689
|
export declare type SearchResponse<TObject = {}> = {
|
|
@@ -2292,6 +2297,18 @@ export declare type Settings = {
|
|
|
2292
2297
|
};
|
|
2293
2298
|
};
|
|
2294
2299
|
};
|
|
2300
|
+
/**
|
|
2301
|
+
* Whether this index should use Dynamic Re-Ranking.
|
|
2302
|
+
* @link https://www.algolia.com/doc/guides/algolia-ai/re-ranking/
|
|
2303
|
+
*
|
|
2304
|
+
* Note: You need to turn on Dynamic Re-Ranking on your index for it to have an effect on
|
|
2305
|
+
* your search results. You can do this through the Re-Ranking page on the dashboard.
|
|
2306
|
+
*/
|
|
2307
|
+
readonly enableReRanking?: boolean;
|
|
2308
|
+
/**
|
|
2309
|
+
* When Dynamic Re-Ranking is enabled, only records that match these filters will be impacted by Dynamic Re-Ranking.
|
|
2310
|
+
*/
|
|
2311
|
+
readonly reRankingApplyFilter?: string | readonly string[] | ReadonlyArray<readonly string[] | string> | null;
|
|
2295
2312
|
};
|
|
2296
2313
|
|
|
2297
2314
|
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.2",
|
|
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.2",
|
|
20
|
+
"@algolia/requester-common": "4.12.2",
|
|
21
|
+
"@algolia/transporter": "4.12.2"
|
|
22
22
|
}
|
|
23
23
|
}
|