Package org.alfresco.search.model
Class RequestHighlight
java.lang.Object
org.alfresco.search.model.RequestHighlight
Request that highlight fragments to be added to result set rows The properties reflect SOLR highlighting parameters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFieldsItem(RequestHighlightFields fieldsItem) booleanfields(List<RequestHighlightFields> fields) fragmentSize(Integer fragmentSize) @Valid List<RequestHighlightFields>The fields to highlight and field specific configuration properties for each fieldThe character length of each snippet.The number of characters to be considered for highlighting.The string used to mark the end of a highlight in a fragment.The string used to mark the start of a highlight in a fragment.The maximum number of distinct highlight snippets to return for each highlight field.inthashCode()If fragments over lap they can be merged into one larger fragmentShould phrases be identified.maxAnalyzedChars(Integer maxAnalyzedChars) mergeContiguous(Boolean mergeContiguous) voidsetFields(List<RequestHighlightFields> fields) voidsetFragmentSize(Integer fragmentSize) voidsetMaxAnalyzedChars(Integer maxAnalyzedChars) voidsetMergeContiguous(Boolean mergeContiguous) voidsetPostfix(String postfix) voidvoidsetSnippetCount(Integer snippetCount) voidsetUsePhraseHighlighter(Boolean usePhraseHighlighter) snippetCount(Integer snippetCount) toString()usePhraseHighlighter(Boolean usePhraseHighlighter)
-
Constructor Details
-
RequestHighlight
public RequestHighlight()
-
-
Method Details
-
prefix
-
getPrefix
The string used to mark the start of a highlight in a fragment.- Returns:
- prefix
-
setPrefix
-
postfix
-
getPostfix
The string used to mark the end of a highlight in a fragment.- Returns:
- postfix
-
setPostfix
-
snippetCount
-
getSnippetCount
The maximum number of distinct highlight snippets to return for each highlight field.- Returns:
- snippetCount
-
setSnippetCount
-
fragmentSize
-
getFragmentSize
The character length of each snippet.- Returns:
- fragmentSize
-
setFragmentSize
-
maxAnalyzedChars
-
getMaxAnalyzedChars
The number of characters to be considered for highlighting. Matches after this count will not be shown.- Returns:
- maxAnalyzedChars
-
setMaxAnalyzedChars
-
mergeContiguous
-
isMergeContiguous
If fragments over lap they can be merged into one larger fragment- Returns:
- mergeContiguous
-
setMergeContiguous
-
usePhraseHighlighter
-
isUsePhraseHighlighter
Should phrases be identified.- Returns:
- usePhraseHighlighter
-
setUsePhraseHighlighter
-
fields
-
addFieldsItem
-
getFields
The fields to highlight and field specific configuration properties for each field- Returns:
- fields
-
setFields
-
equals
-
hashCode
public int hashCode() -
toString
-