new strings.Highlight(matchedText, matchedPage, rawSnippet, highlightedSnippet)
The Highlight type.
Parameters:
Name | Type | Description |
---|---|---|
matchedText |
string | the matched text fragment. |
matchedPage |
number | the page number (1-based) from which the snippet was extracted. |
rawSnippet |
string | a snippet of text surrounding the matched text fragment (about 300 characters). |
highlightedSnippet |
string | a snippet of text surrounding the matched and highlighted text fragment (about 300 characters). |
- Source: