Package version:

Defines how the Suggest API should apply to a group of fields in the index.

interface SearchSuggester {
    name: string;
    searchMode: "analyzingInfixMatching";
    sourceFields: string[];
}

Properties

name: string

The name of the suggester.

searchMode

A value indicating the capabilities of the suggester.

sourceFields: string[]

The list of field names to which the suggester applies. Each field must be searchable.