SearchResult
Defined in: src/models/search-result.ts:21
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SearchResult(
rank,context):SearchResult
Defined in: src/models/search-result.ts:53
Construct a new SearchResult
Parameters
Section titled “Parameters”number
where this SearchResult ranks in the results
context
Section titled “context”EventContext
the matching event and its context
Returns
Section titled “Returns”SearchResult
Properties
Section titled “Properties”context
Section titled “context”
readonlycontext:EventContext
Defined in: src/models/search-result.ts:55
the matching event and its context
readonlyrank:number
Defined in: src/models/search-result.ts:54
where this SearchResult ranks in the results
Methods
Section titled “Methods”fromJson()
Section titled “fromJson()”
staticfromJson(jsonObj,eventMapper):SearchResult
Defined in: src/models/search-result.ts:26
Create a SearchResponse from the response to /search
Parameters
Section titled “Parameters”jsonObj
Section titled “jsonObj”eventMapper
Section titled “eventMapper”EventMapper
Returns
Section titled “Returns”SearchResult