Constructors
constructor
- new Document(id: string, fields: Object, payload?: Object | null): Document
-
Parameters
-
id: string
-
fields: Object
-
Default value payload: Object | null = null
Methods
snippetize
- snippetize(field: string, size?: number, boldTokens: string[]): void
-
Parameters
-
field: string
-
Default value size: number = 500
-
boldTokens: string[]
Returns void
Represents a single document in a result set