QuerySpellerType Class

public final class QuerySpellerType
extends ExpandableStringEnum<QuerySpellerType>

Improve search recall by spell-correcting individual search query terms.

Field Summary

Modifier and Type Field and Description
static final QuerySpellerType LEXICON

Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter.

static final QuerySpellerType NONE

Speller not enabled.

Constructor Summary

Constructor Description
QuerySpellerType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of QuerySpellerType value.

Method Summary

Modifier and Type Method and Description
static QuerySpellerType fromString(String name)

Creates or finds a QuerySpellerType from its string representation.

static Collection<QuerySpellerType> values()

Gets known QuerySpellerType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

LEXICON

public static final QuerySpellerType LEXICON

Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter.

NONE

public static final QuerySpellerType NONE

Speller not enabled.

Constructor Details

QuerySpellerType

@Deprecated
public QuerySpellerType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of QuerySpellerType value.

Method Details

fromString

public static QuerySpellerType fromString(String name)

Creates or finds a QuerySpellerType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding QuerySpellerType.

values

public static Collection<QuerySpellerType> values()

Gets known QuerySpellerType values.

Returns:

known QuerySpellerType values.

Applies to