Skip to content

Commit e8f08ed

Browse files
authored
# fix(types): updating reRankingApplyFilter type and adding new property to RankingInfo (#1394)
* fix(types): updating reRankingApplyFilter type * feat: add property to hit's rankinginfo
1 parent 49d6635 commit e8f08ed

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

packages/client-search/src/types/Hit.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export type RankingInfo = {
4343
readonly rankingScore: number;
4444
readonly score: number;
4545
};
46+
readonly promotedByReRanking?: boolean;
4647
};
4748

4849
export type Hit<THit> = THit & {

packages/client-search/src/types/SearchOptions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,5 +366,6 @@ export type SearchOptions = {
366366
readonly reRankingApplyFilter?:
367367
| string
368368
| readonly string[]
369-
| ReadonlyArray<readonly string[] | string>;
369+
| ReadonlyArray<readonly string[] | string>
370+
| null;
370371
};

packages/client-search/src/types/Settings.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,5 +359,6 @@ export type Settings = {
359359
readonly reRankingApplyFilter?:
360360
| string
361361
| readonly string[]
362-
| ReadonlyArray<readonly string[] | string>;
362+
| ReadonlyArray<readonly string[] | string>
363+
| null;
363364
};

0 commit comments

Comments
 (0)