searchTextSnippet property

String? searchTextSnippet
getter/setter pair

Contains snippets of text from the document full raw text that most closely match a search query's keywords, if available.

All HTML tags in the original fields are stripped when returned in this field, and matching query keywords are enclosed in HTML bold tags. If the question-answering feature is enabled, this field will instead contain a snippet that answers the user's natural-language query. No HTML bold tags will be present, and highlights in the answer snippet can be found in QAResult.highlights.

Implementation

core.String? searchTextSnippet;