Copyright© 2008-2022 Sitevision AB, all rights reserved.
null) and this interface will be completely removed in
future releases of Sitevision.@Deprecated public interface SearchHighlighter
This interface is deprecated and non-functional as of Sitevision 3.0. The Sitevision search engine has been replaced
(from Lucene to Solr) and highlighting of arbitrary fields in a search result via SearchHighlighter is no longer possible.
In Solr you should specify the field(-s) that should be highlighted when you execute the query.
| Modifier and Type | Method and Description |
|---|---|
String |
getHighlightedFragment(String aHighlightPreElement,
String aHighlightPostElement,
SearchHit aSearchHit)
Deprecated.
As of Sitevision 3.0 this method will always return
null. Do not use this interface at all,
it will be completely removed in future releases of Sitevision. |
String |
getHighlightedFragment(String aHighlightPreElement,
String aHighlightPostElement,
SearchHit aSearchHit,
String aHighlightingFieldName)
Deprecated.
As of Sitevision 3.0 this method will always return
null. Do not use this interface at all,
it will be completely removed in future releases of Sitevision. |
@Deprecated String getHighlightedFragment(String aHighlightPreElement, String aHighlightPostElement, SearchHit aSearchHit)
null. Do not use this interface at all,
it will be completely removed in future releases of Sitevision.aHighlightPreElement - the opening element to the left of a highlighted word(-s),
e.g "<strong style=\"background-color:yellow\">"aHighlightPostElement - the closing element to the right of a highlighted word(-s), e.g "</strong>"aSearchHit - the search hit that should be highlightedaHighlightPreElement and aHighlightPostElement,
null if nothing could be highlighted@Deprecated String getHighlightedFragment(String aHighlightPreElement, String aHighlightPostElement, SearchHit aSearchHit, String aHighlightingFieldName)
null. Do not use this interface at all,
it will be completely removed in future releases of Sitevision.aHighlightPreElement - the opening element to the left of a highlighted word(-s),
e.g "<strong style=\"background-color:yellow\">"aHighlightPostElement - the closing element to the right of a highlighted word(-s), e.g "</strong>"aSearchHit - the search hit that should be highlightedaHighlightingFieldName - the field that should be highlighted. A default field will be used if
aHighlightingFieldName is null.
The field that with most characters will be used if multiple fields match. Binary fields are ignored.aHighlightPreElement and aHighlightPostElement,
null if nothing could be highlightedSitevision - Portal and Content Management Made Easy
Sitevision is an advanced Java enterprise portal product and a portlet container (JSR 286) that implements Java Content Repository (JSR 283).
Copyright© 2008-2022 Sitevision AB, all rights reserved.