Package org.alfresco.search.model
Class RequestHighlight
- java.lang.Object
-
- org.alfresco.search.model.RequestHighlight
-
@Validated public class RequestHighlight extends Object
Request that highlight fragments to be added to result set rows The properties reflect SOLR highlighting parameters.
-
-
Constructor Summary
Constructors Constructor Description RequestHighlight()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestHighlightaddFieldsItem(RequestHighlightFields fieldsItem)booleanequals(Object o)RequestHighlightfields(List<RequestHighlightFields> fields)RequestHighlightfragmentSize(Integer fragmentSize)@Valid List<RequestHighlightFields>getFields()The fields to highlight and field specific configuration properties for each fieldIntegergetFragmentSize()The character length of each snippet.IntegergetMaxAnalyzedChars()The number of characters to be considered for highlighting.StringgetPostfix()The string used to mark the end of a highlight in a fragment.StringgetPrefix()The string used to mark the start of a highlight in a fragment.IntegergetSnippetCount()The maximum number of distinct highlight snippets to return for each highlight field.inthashCode()BooleanisMergeContiguous()If fragments over lap they can be merged into one larger fragmentBooleanisUsePhraseHighlighter()Should phrases be identified.RequestHighlightmaxAnalyzedChars(Integer maxAnalyzedChars)RequestHighlightmergeContiguous(Boolean mergeContiguous)RequestHighlightpostfix(String postfix)RequestHighlightprefix(String prefix)voidsetFields(List<RequestHighlightFields> fields)voidsetFragmentSize(Integer fragmentSize)voidsetMaxAnalyzedChars(Integer maxAnalyzedChars)voidsetMergeContiguous(Boolean mergeContiguous)voidsetPostfix(String postfix)voidsetPrefix(String prefix)voidsetSnippetCount(Integer snippetCount)voidsetUsePhraseHighlighter(Boolean usePhraseHighlighter)RequestHighlightsnippetCount(Integer snippetCount)StringtoString()RequestHighlightusePhraseHighlighter(Boolean usePhraseHighlighter)
-
-
-
Method Detail
-
prefix
public RequestHighlight prefix(String prefix)
-
getPrefix
public String getPrefix()
The string used to mark the start of a highlight in a fragment.- Returns:
- prefix
-
setPrefix
public void setPrefix(String prefix)
-
postfix
public RequestHighlight postfix(String postfix)
-
getPostfix
public String getPostfix()
The string used to mark the end of a highlight in a fragment.- Returns:
- postfix
-
setPostfix
public void setPostfix(String postfix)
-
snippetCount
public RequestHighlight snippetCount(Integer snippetCount)
-
getSnippetCount
public Integer getSnippetCount()
The maximum number of distinct highlight snippets to return for each highlight field.- Returns:
- snippetCount
-
setSnippetCount
public void setSnippetCount(Integer snippetCount)
-
fragmentSize
public RequestHighlight fragmentSize(Integer fragmentSize)
-
getFragmentSize
public Integer getFragmentSize()
The character length of each snippet.- Returns:
- fragmentSize
-
setFragmentSize
public void setFragmentSize(Integer fragmentSize)
-
maxAnalyzedChars
public RequestHighlight maxAnalyzedChars(Integer maxAnalyzedChars)
-
getMaxAnalyzedChars
public Integer getMaxAnalyzedChars()
The number of characters to be considered for highlighting. Matches after this count will not be shown.- Returns:
- maxAnalyzedChars
-
setMaxAnalyzedChars
public void setMaxAnalyzedChars(Integer maxAnalyzedChars)
-
mergeContiguous
public RequestHighlight mergeContiguous(Boolean mergeContiguous)
-
isMergeContiguous
public Boolean isMergeContiguous()
If fragments over lap they can be merged into one larger fragment- Returns:
- mergeContiguous
-
setMergeContiguous
public void setMergeContiguous(Boolean mergeContiguous)
-
usePhraseHighlighter
public RequestHighlight usePhraseHighlighter(Boolean usePhraseHighlighter)
-
isUsePhraseHighlighter
public Boolean isUsePhraseHighlighter()
Should phrases be identified.- Returns:
- usePhraseHighlighter
-
setUsePhraseHighlighter
public void setUsePhraseHighlighter(Boolean usePhraseHighlighter)
-
fields
public RequestHighlight fields(List<RequestHighlightFields> fields)
-
addFieldsItem
public RequestHighlight addFieldsItem(RequestHighlightFields fieldsItem)
-
getFields
@Valid public @Valid List<RequestHighlightFields> getFields()
The fields to highlight and field specific configuration properties for each field- Returns:
- fields
-
setFields
public void setFields(List<RequestHighlightFields> fields)
-
-