- Notifications
You must be signed in to change notification settings - Fork 27
Open
Labels
JavaIssue related to the Java clientIssue related to the Java clientJavaScriptIssue related to the JavaScript clientIssue related to the JavaScript client
Description
Description
- SearchResponse, SearchResponses should take a single generic THit
- HighlightResult and SnippetResults should take a single generic THit
SnippetResults and HighlightResult should also be recursive as in v4
declare type SnippetMatch = { readonly value: string; readonly matchLevel: 'none' | 'partial' | 'full'; }; export declare type SnippetResult<THit> = THit extends string | number ? SnippetMatch : { [KAttribute in keyof THit]: SnippetResult<THit[KAttribute]>; }; declare type HighlightMatch = { readonly value: string; readonly matchLevel: 'none' | 'partial' | 'full'; readonly matchedWords: readonly string[]; readonly fullyHighlighted?: boolean; }; export declare type HighlightResult<THit> = THit extends string | number ? HighlightMatch : { [KAttribute in keyof THit]?: HighlightResult<THit[KAttribute]>; }; export declare type Hit<THit> = THit & { readonly objectID: string; readonly _highlightResult?: HighlightResult<THit>; readonly _snippetResult?: SnippetResult<THit>; readonly _rankingInfo?: RankingInfo; readonly _distinctSeqID?: number; };shortcuts
Metadata
Metadata
Assignees
Labels
JavaIssue related to the Java clientIssue related to the Java clientJavaScriptIssue related to the JavaScript clientIssue related to the JavaScript client