Skip to content

Commit 5138783

Browse files
committed
Make score and _score optional in SearchMatch to support Spice v1 and v2
1 parent a345449 commit 5138783

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/interfaces.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,13 @@ export interface SearchMatch {
133133
*/
134134
dataset: string;
135135
/**
136-
* The similarity of the match to the query
136+
* The similarity of the match to the query (Spice v1)
137137
*/
138-
score: number;
138+
score?: number;
139+
/**
140+
* The similarity of the match to the query (Spice v2)
141+
*/
142+
_score?: number;
139143
/**
140144
* The matches for this result
141145
*/

0 commit comments

Comments
 (0)