Class DefaultHighlightParams
java.lang.Object
com.atlassian.confluence.search.v2.DefaultHighlightParams
- All Implemented Interfaces:
HightlightParams
- Since:
- 5.10
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstructs a parameter object used for highlightingDefaultHighlightParams
(String encoder, SearchQuery query) Constructs a parameter object used for highlighting -
Method Summary
-
Field Details
-
DEFAULT_ENCODER
- See Also:
-
NONE_ENCODER
- See Also:
-
-
Constructor Details
-
DefaultHighlightParams
Constructs a parameter object used for highlighting- Parameters:
query
- the query used to highlight query terms in the search result
-
DefaultHighlightParams
Constructs a parameter object used for highlighting- Parameters:
encoder
- the encoder to usequery
- the query used to highlight query terms in the search result- Since:
- 5.10.5
-
-
Method Details
-
getPreTag
- Specified by:
getPreTag
in interfaceHightlightParams
-
getPostTag
- Specified by:
getPostTag
in interfaceHightlightParams
-
getEncoder
Description copied from interface:HightlightParams
The encoding required for highlight result. Use NoOpEncoder to bypass encoding.- Specified by:
getEncoder
in interfaceHightlightParams
- Returns:
- "html" if html encoding is required. "none" for bypassing encoding.
-
getQuery
- Specified by:
getQuery
in interfaceHightlightParams
-