Package org.apache.solr.highlight
Class UnifiedSolrHighlighter.SolrExtendedUnifiedHighlighter
- java.lang.Object
-
- org.apache.lucene.search.uhighlight.UnifiedHighlighter
-
- org.apache.solr.highlight.UnifiedSolrHighlighter.SolrExtendedUnifiedHighlighter
-
- Enclosing class:
- UnifiedSolrHighlighter
protected static class UnifiedSolrHighlighter.SolrExtendedUnifiedHighlighter extends org.apache.lucene.search.uhighlight.UnifiedHighlighter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.search.uhighlight.UnifiedHighlighter
org.apache.lucene.search.uhighlight.UnifiedHighlighter.Builder, org.apache.lucene.search.uhighlight.UnifiedHighlighter.HighlightFlag, org.apache.lucene.search.uhighlight.UnifiedHighlighter.LimitedStoredFieldVisitor, org.apache.lucene.search.uhighlight.UnifiedHighlighter.OffsetSource
-
-
Field Summary
Fields Modifier and Type Field Description protected RTimerTree
loadFieldValuesTimer
protected static Predicate<String>
NOT_REQUIRED_FIELD_MATCH_PREDICATE
protected org.apache.solr.common.params.SolrParams
params
protected IndexSchema
schema
-
Constructor Summary
Constructors Constructor Description SolrExtendedUnifiedHighlighter(SolrQueryRequest req)
-
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 forCustomSeparatorBreakIterator
protected BreakIterator
parseBreakIterator(String type, Locale locale)
parse a break iterator type for the specified localeprotected 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
builder, builderWithoutSearcher, evaluateFlags, evaluateFlags, evaluateFlags, extractTerms, filterExtractedTerms, getAutomata, getCacheFieldValCharsThreshold, getFieldHighlighter, getHighlightComponents, getIndexAnalyzer, getIndexSearcher, getMaxLength, getOffsetStrategy, getOptimizedOffsetSource, getPhraseHelper, hasUnrecognizedQuery, highlight, highlight, highlightFields, highlightFields, highlightFields, highlightFieldsAsObjects, highlightWithoutSearcher, newFieldHighlighter, newLimitedStoredFieldsVisitor, preSpanQueryRewrite, requiresRewrite, setBreakIterator, setCacheFieldValCharsThreshold, setFieldMatcher, setFormatter, setHandleMultiTermQuery, setHighlightPhrasesStrictly, setMaxLength, setMaxNoHighlightPassages, setPassageRelevancyOverSpeed, setScorer, setWeightMatches, shouldHandleMultiTermQuery, shouldHighlightPhrasesStrictly, shouldPreferPassageRelevancyOverSpeed
-
-
-
-
Field Detail
-
NOT_REQUIRED_FIELD_MATCH_PREDICATE
protected static final Predicate<String> NOT_REQUIRED_FIELD_MATCH_PREDICATE
-
params
protected final org.apache.solr.common.params.SolrParams params
-
schema
protected final IndexSchema schema
-
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 classorg.apache.lucene.search.uhighlight.UnifiedHighlighter
-
getFieldInfo
protected org.apache.lucene.index.FieldInfo getFieldInfo(String field)
- Overrides:
getFieldInfo
in classorg.apache.lucene.search.uhighlight.UnifiedHighlighter
-
getMaxNoHighlightPassages
public int getMaxNoHighlightPassages(String field)
- Overrides:
getMaxNoHighlightPassages
in classorg.apache.lucene.search.uhighlight.UnifiedHighlighter
-
getFormatter
protected org.apache.lucene.search.uhighlight.PassageFormatter getFormatter(String fieldName)
- Overrides:
getFormatter
in classorg.apache.lucene.search.uhighlight.UnifiedHighlighter
-
getScorer
protected org.apache.lucene.search.uhighlight.PassageScorer getScorer(String fieldName)
- Overrides:
getScorer
in classorg.apache.lucene.search.uhighlight.UnifiedHighlighter
-
getBreakIterator
protected BreakIterator getBreakIterator(String field)
- Overrides:
getBreakIterator
in classorg.apache.lucene.search.uhighlight.UnifiedHighlighter
-
parseBiSepChar
protected char parseBiSepChar(String sepChar)
parse custom separator char forCustomSeparatorBreakIterator
-
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 classorg.apache.lucene.search.uhighlight.UnifiedHighlighter
- Throws:
IOException
-
getFlags
protected Set<org.apache.lucene.search.uhighlight.UnifiedHighlighter.HighlightFlag> getFlags(String field)
- Overrides:
getFlags
in classorg.apache.lucene.search.uhighlight.UnifiedHighlighter
-
-