createSearchEngine

fun createSearchEngine(searchEngineSettings: SearchEngineSettings = this.searchEngineSettings): SearchEngine

Creates a new instance of the SearchEngine. Unlike the shared instance of the SearchEngine acquired from getSearchEngine, a new instance doesn't have any IndexableDataProvider registered.

Return

a new instance instance of SearchEngine.

See also

Parameters

searchEngineSettings

Optional SearchEngine settings. By default SearchEngineSettings passed to MapboxSearchSdk.initialize will be used.

Throws