SuggestClient

A client for the merino suggest endpoint.

Use `SuggestClient::new` to create an instance, then call `SuggestClient::get_suggestions` to fetch suggestions for a query.

Constructors

Link copied to clipboard
constructor(config: SuggestConfig)

Creates a new SuggestClient from the given configuration.

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun destroy()
Link copied to clipboard
open override fun getSuggestions(query: String, options: SuggestOptions): String?

Fetches suggestions from the merino suggest endpoint for the given query.