| java.lang.Object | |
| ↳ | com.atlassian.confluence.search.summary.HitHighlighter |
Finds search hits in content based on a given Lucene query. Highlights those hits with a formatter. This class is not thread safe.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Create a new highlighter that uses the default formatter, and HTML encoding.
| |||||||||||
Create a new highlighter with specified formatter with HTML encoding.
| |||||||||||
Create a new highlighter
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Use the Lucene Highlighter directly.
| |||||||||||
Get a summary, suitable for displaying excerpts of search results.
| |||||||||||
Highlights text without fragmenting it.
| |||||||||||
Highlight text without fragmenting, after stripping wiki markup.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Create a new highlighter that uses the default formatter, and HTML encoding.
The output format for hit highlights is:
Lorem ipsum <span class="search-highlight>dolor</span> sit amet
Create a new highlighter with specified formatter with HTML encoding.
Create a new highlighter
Use the Lucene Highlighter directly. Text that doesn't match the query will return an empty string.
Get a summary, suitable for displaying excerpts of search results.
Highlight text without fragmenting, after stripping wiki markup.

