Skip to content

Commit

Permalink
# fix(types): updating reRankingApplyFilter type and adding new prope…
Browse files Browse the repository at this point in the history
…rty to RankingInfo (#1394)

* fix(types): updating reRankingApplyFilter type

* feat: add property to hit's rankinginfo
  • Loading branch information
alphonseb committed Feb 23, 2022
1 parent 49d6635 commit e8f08ed
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/client-search/src/types/Hit.ts
Expand Up @@ -43,6 +43,7 @@ export type RankingInfo = {
readonly rankingScore: number;
readonly score: number;
};
readonly promotedByReRanking?: boolean;
};

export type Hit<THit> = THit & {
Expand Down
3 changes: 2 additions & 1 deletion packages/client-search/src/types/SearchOptions.ts
Expand Up @@ -366,5 +366,6 @@ export type SearchOptions = {
readonly reRankingApplyFilter?:
| string
| readonly string[]
| ReadonlyArray<readonly string[] | string>;
| ReadonlyArray<readonly string[] | string>
| null;
};
3 changes: 2 additions & 1 deletion packages/client-search/src/types/Settings.ts
Expand Up @@ -359,5 +359,6 @@ export type Settings = {
readonly reRankingApplyFilter?:
| string
| readonly string[]
| ReadonlyArray<readonly string[] | string>;
| ReadonlyArray<readonly string[] | string>
| null;
};

0 comments on commit e8f08ed

Please sign in to comment.