SpellCorrectionSpec Stay organized with collections Save and categorize content based on your preferences.
The specification for query spell correction.
| JSON representation |
|---|
{"mode":enum ( |
| Fields | |
|---|---|
mode |
The mode under which spell correction replaces the original search query. Defaults to |
Mode
Enum describing under which mode spell correction should occur.
| Enums | |
|---|---|
MODE_UNSPECIFIED | Unspecified spell correction mode. In this case, server behavior defaults toMode.AUTO. |
SUGGESTION_ONLY | Search 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. |
AUTO | Automatic 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.