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.
Example
The following SOSL statement disables spell correction on a search of accounts for
the term San
Francisco.
FIND {San Francisco} IN ALL FIELDS RETURNING Account WITH SPELL_CORRECTION = false
Supported APIs
The WITH
SPELL_CORRECTION clause in SOSL is supported in SOAP API, REST API, and
Apex.