Interface SpellingCorrectionOrBuilder (2.2.9)

public interface SpellingCorrectionOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCorrected()

public abstract boolean getCorrected()

Indicates if the query was corrected by the spell checker.

bool corrected = 1;

Returns
TypeDescription
boolean

The corrected.

getCorrectedHtml()

public abstract String getCorrectedHtml()

Corrected output with html tags to highlight the corrected words. Corrected words are called out with the "<b><i>...</i></b>" html tags. For example, the user input query is "software enginear", where the second word, "enginear," is incorrect. It should be "engineer". When spelling correction is enabled, this value is "software <b><i>engineer</i></b>".

string corrected_html = 3;

Returns
TypeDescription
String

The correctedHtml.

getCorrectedHtmlBytes()

public abstract ByteString getCorrectedHtmlBytes()

Corrected output with html tags to highlight the corrected words. Corrected words are called out with the "<b><i>...</i></b>" html tags. For example, the user input query is "software enginear", where the second word, "enginear," is incorrect. It should be "engineer". When spelling correction is enabled, this value is "software <b><i>engineer</i></b>".

string corrected_html = 3;

Returns
TypeDescription
ByteString

The bytes for correctedHtml.

getCorrectedText()

public abstract String getCorrectedText()

Correction output consisting of the corrected keyword string.

string corrected_text = 2;

Returns
TypeDescription
String

The correctedText.

getCorrectedTextBytes()

public abstract ByteString getCorrectedTextBytes()

Correction output consisting of the corrected keyword string.

string corrected_text = 2;

Returns
TypeDescription
ByteString

The bytes for correctedText.