|
SMILA (incubation) API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HighlightingService
HighlightingService using HighlightingTransformer services. Basically a background service for the Highlighting pipelet to make the handling of dynamic transformer services easier.
Field Summary | |
---|---|
static java.lang.String |
HIGHLIGHTING_PARAMETER_NAME
Constant for the sub annotation "name" of annotation HighlightingTransformer. |
static java.lang.String |
HIGHLIGHTING_TRANSFORMERS
Constant for the configuration parameter |
Method Summary | |
---|---|
java.util.Map<java.lang.String,DHighlightingTransformer> |
getTransformerConfigs(QueryParameterAccessor parameters)
Checks if the query contains any Highlight annotations on attributes and converts them into DHighlightingTransformer configuration objects. |
void |
highlight(AnyMap resultRecord,
java.util.Map<java.lang.String,DHighlightingTransformer> highlightConfigs)
Executes highlighting for the record with the given Id using the given highlightConfigs. |
Field Detail |
---|
static final java.lang.String HIGHLIGHTING_TRANSFORMERS
static final java.lang.String HIGHLIGHTING_PARAMETER_NAME
Method Detail |
---|
java.util.Map<java.lang.String,DHighlightingTransformer> getTransformerConfigs(QueryParameterAccessor parameters) throws BlackboardAccessException
parameters
- query parameters
BlackboardAccessException
- if any record access error occursvoid highlight(AnyMap resultRecord, java.util.Map<java.lang.String,DHighlightingTransformer> highlightConfigs) throws BlackboardAccessException, HighlightingTransformerException, ParameterException
resultRecord
- a search result record to highlight.highlightConfigs
- the highlightConfigs
BlackboardAccessException
- if any record access error occurs
HighlightingTransformerException
- if any highlight transformation error occurs
ParameterException
- if any highlight configuration error occurs
|
SMILA (incubation) API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |