Skip to content

Commit e8464e7

Browse files
authored
Add index and collection fields to KHit (#726)
1 parent 9da1b1b commit e8464e7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/types/KDocument.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,16 @@ export interface KHit<TKDocumentContent extends KDocumentContent>
6767
* Elasticsearch relevance score
6868
*/
6969
_score: number;
70+
71+
/**
72+
* Document index
73+
* Present only in the case of a multi search
74+
*/
75+
index?: string;
76+
77+
/**
78+
* Document collection
79+
* Present only in the case of a multi search
80+
*/
81+
collection?: string;
7082
}

0 commit comments

Comments
 (0)