UNPKG

ioredisearch

Version:

Client library for RediSearch Redis Module, designed to work in conjunction with ioredis

16 lines (15 loc) 580 B
import { Document } from './document'; import { NumericDictionary, SchemaDictionary } from './client'; /** * Represents the result of a search query, * and has an array of Document objects */ export declare class Result<T = SchemaDictionary, S = NumericDictionary> { total: number; duration: number; docs: (Document & T)[]; /** * @param snippets An optional dictionary of the form {field: snippet_size} for snippet formatting */ constructor(res: any[], hasContent: boolean, query: string, hasPayload?: boolean, duration?: number, snippets?: S); }