Class 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 Detail

      • RequestHighlight

        public RequestHighlight()
    • Method Detail

      • 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)
      • 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)
      • 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)
      • getFragmentSize

        public Integer getFragmentSize()
        The character length of each snippet.
        Returns:
        fragmentSize
      • setFragmentSize

        public void setFragmentSize​(Integer fragmentSize)
      • 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)
      • isMergeContiguous

        public Boolean isMergeContiguous()
        If fragments over lap they can be merged into one larger fragment
        Returns:
        mergeContiguous
      • setMergeContiguous

        public void setMergeContiguous​(Boolean mergeContiguous)
      • isUsePhraseHighlighter

        public Boolean isUsePhraseHighlighter()
        Should phrases be identified.
        Returns:
        usePhraseHighlighter
      • setUsePhraseHighlighter

        public void setUsePhraseHighlighter​(Boolean usePhraseHighlighter)
      • getFields

        @Valid
        public @Valid List<RequestHighlightFields> getFields()
        The fields to highlight and field specific configuration properties for each field
        Returns:
        fields
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object