Skip to content

Latest commit

 

History

History
114 lines (51 loc) · 1.43 KB

search-core.spellcheck.md

File metadata and controls

114 lines (51 loc) · 1.43 KB

Home > @yext/search-core > SpellCheck

SpellCheck interface

A spellcheck response from a search query.

Signature:

export interface SpellCheck 

Properties

Property

Modifiers

Type

Description

correctedQuery

string

The corrected version of the originalQuery.

matchedSubstrings

{ length: number; offset: number; }[]

An array of substring matches which correspond to the highlighting. Offset indicates the index of the match, and the length indicates the number of characters of the match.

originalQuery

string

The query that was input into the spell checker.

type

SpellCheckType

The type of spell check.