SpellCorrectionSpec

The specification for query spell correction.

JSON representation
{"mode":enum (Mode)}
Fields
mode

enum (Mode)

The mode under which spell correction replaces the original search query. Defaults toMode.AUTO.

Mode

Enum describing under which mode spell correction should occur.

Enums
MODE_UNSPECIFIEDUnspecified spell correction mode. In this case, server behavior defaults toMode.AUTO.
SUGGESTION_ONLYSearch API tries to find a spelling suggestion. If a suggestion is found, it is put in theSearchResponse.corrected_query. The spelling suggestion won't be used as the search query.
AUTOAutomatic spell correction built by the Search API. Search will be based on the corrected query if found.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-06-27 UTC.