WITH SPELL_CORRECTION

WITH SPELL_CORRECTION is an optional clause that can be added to a SOSL query. When set to true, spell correction is enabled for searches that support spell correction. When set to false, spell correction is not enabled. The default value is true. The WITH SPELL_CORRECTION clause can be used in API version 40 or later.

The following SOSL statement disables spell correction on a search of accounts for the term San Francisco.

The WITH SPELL_CORRECTION clause in SOSL is supported in SOAP API, REST API, and Apex.

See Also