Class DefaultHighlightParams
- java.lang.Object
-
- com.atlassian.confluence.search.v2.DefaultHighlightParams
-
- All Implemented Interfaces:
HightlightParams
public class DefaultHighlightParams extends Object implements HightlightParams
- Since:
- 5.10
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_ENCODER
static String
NONE_ENCODER
-
Constructor Summary
Constructors Constructor Description DefaultHighlightParams(SearchQuery query)
Constructs a parameter object used for highlightingDefaultHighlightParams(String encoder, SearchQuery query)
Constructs a parameter object used for highlighting
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getEncoder()
The encoding required for highlight result.String
getPostTag()
String
getPreTag()
SearchQuery
getQuery()
-
-
-
Field Detail
-
DEFAULT_ENCODER
public static final String DEFAULT_ENCODER
- See Also:
- Constant Field Values
-
NONE_ENCODER
public static final String NONE_ENCODER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DefaultHighlightParams
public DefaultHighlightParams(SearchQuery query)
Constructs a parameter object used for highlighting- Parameters:
query
- the query used to highlight query terms in the search result
-
DefaultHighlightParams
public DefaultHighlightParams(String encoder, SearchQuery query)
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 Detail
-
getPreTag
public String getPreTag()
- Specified by:
getPreTag
in interfaceHightlightParams
-
getPostTag
public String getPostTag()
- Specified by:
getPostTag
in interfaceHightlightParams
-
getEncoder
public String 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
public SearchQuery getQuery()
- Specified by:
getQuery
in interfaceHightlightParams
-
-