Home > doofinder > Client > suggest

Client.suggest() method

Perform a suggestion query in Doofinder based on the provided parameters.

Signature:

suggest(query: Query | SearchParams): Promise<SearchResponse>;

Parameters

Parameter Type Description
query Query | SearchParams An instance of Query or an object with valid search parameters.

Returns:

Promise<SearchResponse>

A promise to be fullfilled with the response or rejected with a ClientResponseError.