createSearchEngine

Creates a new instance of the SearchEngine. A new instance doesn't have any IndexableDataProvider registered by default.

Return

a new instance instance of SearchEngine.

See also

Parameters

settings

SearchEngine settings.

apiType

The type of the API used by the Search Engines. Note that ApiType.GEOCODING is the only available publicly. You might need to contact sales to enable access for other API types.


Deprecated

Specify ApiType explicitly

Replace with

createSearchEngine(apiType = , settings = )

Deprecated, use a function that takes ApiType as a parameter.

Creates a new instance of the SearchEngine with ApiType.GEOCODING api type. A new instance doesn't have any IndexableDataProvider registered by default.

Note: The ApiType.GEOCODING API type is supported in compatibility mode. For example, the Geocoding v5 API will align with Search Box response types.

Additionally, please note that Points of Interest (POI) data will be removed from the Geocoding v5 API on December 20, 2024.

For more information, visit Geocoding v5 API page.

Return

a new instance instance of SearchEngine.

See also

Parameters

settings

SearchEngine settings.