Skip to content

Commit e9f6865

Browse files
committed
Set vector field in search response to optionnal
1 parent 0cf8704 commit e9f6865

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types/types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,10 @@ export type SearchResponse<
196196
> = {
197197
hits: Hits<T>
198198
processingTimeMs: number
199-
facetDistribution?: FacetDistribution
200199
query: string
200+
facetDistribution?: FacetDistribution
201201
facetStats?: FacetStats
202-
vector: number[]
202+
vector?: number[]
203203
} & (undefined extends S
204204
? Partial<FinitePagination & InfinitePagination>
205205
: true extends IsFinitePagination<NonNullable<S>>

0 commit comments

Comments
 (0)