Class: SearchResult

models/search-result~SearchResult

new SearchResult(rank, eventContext)

Construct a new SearchResult
Parameters:
Name Type Description
rank number where this SearchResult ranks in the results
eventContext event-context.EventContext the matching event and its context
Source:

Methods

(static) fromJson(jsonObj, eventMapper) → {SearchResult}

Create a SearchResponse from the response to /search
Parameters:
Name Type Description
jsonObj Object
eventMapper function
Source:
Returns:
Type
SearchResult