SuggestOptions

data class SuggestOptions(var providers: List<String>?, var source: String?, var country: String?, var region: String?, var city: String?, var clientVariants: List<String>?, var requestType: String?, var acceptLanguage: String?)

Options for a suggest request, mapped to merino suggest endpoint query parameters. All fields are optional — omitted fields are not sent to merino.

Constructors

Link copied to clipboard
constructor(providers: List<String>?, source: String?, country: String?, region: String?, city: String?, clientVariants: List<String>?, requestType: String?, acceptLanguage: String?)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The Accept-Language header value to forward to Merino (e.g. "en-US").

Link copied to clipboard
var city: String?

City name (e.g. "San Francisco").

Link copied to clipboard

List of any experiments or rollouts that are affecting the client's Suggest experience. If Merino recognizes any of them it will modify its behavior accordingly.

Link copied to clipboard

ISO 3166-1 country code (e.g. "US").

Link copied to clipboard

List of suggestion providers to query (e.g. ["wikipedia", "adm"]).

Link copied to clipboard

Comma separated string of subdivision code(s) (e.g. "CA").

Link copied to clipboard

For AccuWeather provider, the request type should be either a "location" or "weather" string. For "location" it will get location completion suggestion. For "weather" it will return weather suggestions. If omitted, it defaults to weather suggestions.

Link copied to clipboard

Identifier of which part of firefox the request comes from (e.g. "urlbar", "newtab").