Class UnifiedSolrHighlighter.SolrExtendedUnifiedHighlighter

    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.lucene.search.uhighlight.UnifiedHighlighter

        org.apache.lucene.search.uhighlight.UnifiedHighlighter.HighlightFlag, org.apache.lucene.search.uhighlight.UnifiedHighlighter.LimitedStoredFieldVisitor, org.apache.lucene.search.uhighlight.UnifiedHighlighter.OffsetSource
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected BreakIterator getBreakIterator​(String field)  
      protected org.apache.lucene.index.FieldInfo getFieldInfo​(String field)  
      protected Predicate<String> getFieldMatcher​(String field)  
      protected Set<org.apache.lucene.search.uhighlight.UnifiedHighlighter.HighlightFlag> getFlags​(String field)  
      protected org.apache.lucene.search.uhighlight.PassageFormatter getFormatter​(String fieldName)  
      int getMaxNoHighlightPassages​(String field)  
      protected org.apache.lucene.search.uhighlight.UnifiedHighlighter.OffsetSource getOffsetSource​(String field)  
      protected org.apache.lucene.search.uhighlight.PassageScorer getScorer​(String fieldName)  
      protected List<CharSequence[]> loadFieldValues​(String[] fields, org.apache.lucene.search.DocIdSetIterator docIter, int cacheCharsThreshold)  
      protected char parseBiSepChar​(String sepChar)
      parse custom separator char for CustomSeparatorBreakIterator
      protected BreakIterator parseBreakIterator​(String type, Locale locale)
      parse a break iterator type for the specified locale
      protected Locale parseLocale​(String language, String country, String variant)
      parse a locale from a language+country+variant spec
      • Methods inherited from class org.apache.lucene.search.uhighlight.UnifiedHighlighter

        extractTerms, filterExtractedTerms, getAutomata, getCacheFieldValCharsThreshold, getFieldHighlighter, getHighlightComponents, getIndexAnalyzer, getIndexSearcher, getMaxLength, getOffsetStrategy, getOptimizedOffsetSource, getPhraseHelper, hasUnrecognizedQuery, highlight, highlight, highlightFields, highlightFields, highlightFields, highlightFieldsAsObjects, highlightWithoutSearcher, newLimitedStoredFieldsVisitor, preSpanQueryRewrite, requiresRewrite, setBreakIterator, setCacheFieldValCharsThreshold, setFieldMatcher, setFormatter, setHandleMultiTermQuery, setHighlightPhrasesStrictly, setMaxLength, setMaxNoHighlightPassages, setScorer, shouldHandleMultiTermQuery, shouldHighlightPhrasesStrictly, shouldPreferPassageRelevancyOverSpeed
    • Field Detail

      • NOT_REQUIRED_FIELD_MATCH_PREDICATE

        protected static final Predicate<String> NOT_REQUIRED_FIELD_MATCH_PREDICATE
      • loadFieldValuesTimer

        protected final RTimerTree loadFieldValuesTimer
    • Constructor Detail

      • SolrExtendedUnifiedHighlighter

        public SolrExtendedUnifiedHighlighter​(SolrQueryRequest req)
    • Method Detail

      • getOffsetSource

        protected org.apache.lucene.search.uhighlight.UnifiedHighlighter.OffsetSource getOffsetSource​(String field)
        Overrides:
        getOffsetSource in class org.apache.lucene.search.uhighlight.UnifiedHighlighter
      • getFieldInfo

        protected org.apache.lucene.index.FieldInfo getFieldInfo​(String field)
        Overrides:
        getFieldInfo in class org.apache.lucene.search.uhighlight.UnifiedHighlighter
      • getMaxNoHighlightPassages

        public int getMaxNoHighlightPassages​(String field)
        Overrides:
        getMaxNoHighlightPassages in class org.apache.lucene.search.uhighlight.UnifiedHighlighter
      • getFormatter

        protected org.apache.lucene.search.uhighlight.PassageFormatter getFormatter​(String fieldName)
        Overrides:
        getFormatter in class org.apache.lucene.search.uhighlight.UnifiedHighlighter
      • getScorer

        protected org.apache.lucene.search.uhighlight.PassageScorer getScorer​(String fieldName)
        Overrides:
        getScorer in class org.apache.lucene.search.uhighlight.UnifiedHighlighter
      • getBreakIterator

        protected BreakIterator getBreakIterator​(String field)
        Overrides:
        getBreakIterator in class org.apache.lucene.search.uhighlight.UnifiedHighlighter
      • parseBiSepChar

        protected char parseBiSepChar​(String sepChar)
        parse custom separator char for CustomSeparatorBreakIterator
      • parseBreakIterator

        protected BreakIterator parseBreakIterator​(String type,
                                                   Locale locale)
        parse a break iterator type for the specified locale
      • parseLocale

        protected Locale parseLocale​(String language,
                                     String country,
                                     String variant)
        parse a locale from a language+country+variant spec
      • loadFieldValues

        protected List<CharSequence[]> loadFieldValues​(String[] fields,
                                                       org.apache.lucene.search.DocIdSetIterator docIter,
                                                       int cacheCharsThreshold)
                                                throws IOException
        Overrides:
        loadFieldValues in class org.apache.lucene.search.uhighlight.UnifiedHighlighter
        Throws:
        IOException
      • getFlags

        protected Set<org.apache.lucene.search.uhighlight.UnifiedHighlighter.HighlightFlag> getFlags​(String field)
        Overrides:
        getFlags in class org.apache.lucene.search.uhighlight.UnifiedHighlighter
      • getFieldMatcher

        protected Predicate<String> getFieldMatcher​(String field)
        Overrides:
        getFieldMatcher in class org.apache.lucene.search.uhighlight.UnifiedHighlighter