protected static class UnifiedSolrHighlighter.SolrExtendedUnifiedHighlighter extends UnifiedHighlighter
UnifiedHighlighter.HighlightFlag, UnifiedHighlighter.LimitedStoredFieldVisitor, UnifiedHighlighter.OffsetSource
Modifier and Type | Field and Description |
---|---|
protected RTimerTree |
loadFieldValuesTimer |
protected static Predicate<String> |
NOT_REQUIRED_FIELD_MATCH_PREDICATE |
protected SolrParams |
params |
protected IndexSchema |
schema |
DEFAULT_CACHE_CHARS_THRESHOLD, DEFAULT_MAX_LENGTH, fieldInfos, indexAnalyzer, MULTIVAL_SEP_CHAR, searcher, ZERO_LEN_AUTOMATA_ARRAY
Constructor and Description |
---|
SolrExtendedUnifiedHighlighter(SolrQueryRequest req) |
Modifier and Type | Method and Description |
---|---|
protected BreakIterator |
getBreakIterator(String field) |
protected FieldInfo |
getFieldInfo(String field) |
protected Predicate<String> |
getFieldMatcher(String field) |
protected Set<UnifiedHighlighter.HighlightFlag> |
getFlags(String field) |
protected PassageFormatter |
getFormatter(String fieldName) |
int |
getMaxNoHighlightPassages(String field) |
protected UnifiedHighlighter.OffsetSource |
getOffsetSource(String field) |
protected PassageScorer |
getScorer(String fieldName) |
protected List<CharSequence[]> |
loadFieldValues(String[] fields,
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
|
extractTerms, filterExtractedTerms, getAutomata, getCacheFieldValCharsThreshold, getFieldHighlighter, getIndexAnalyzer, getIndexSearcher, getMaxLength, getOffsetStrategy, getOptimizedOffsetSource, getPhraseHelper, highlight, highlight, highlightFields, highlightFields, highlightFields, highlightFieldsAsObjects, highlightWithoutSearcher, newLimitedStoredFieldsVisitor, preSpanQueryRewrite, requiresRewrite, setBreakIterator, setCacheFieldValCharsThreshold, setFieldMatcher, setFormatter, setHandleMultiTermQuery, setHighlightPhrasesStrictly, setMaxLength, setMaxNoHighlightPassages, setScorer, shouldHandleMultiTermQuery, shouldHighlightPhrasesStrictly, shouldPreferPassageRelevancyOverSpeed
protected static final Predicate<String> NOT_REQUIRED_FIELD_MATCH_PREDICATE
protected final SolrParams params
protected final IndexSchema schema
protected final RTimerTree loadFieldValuesTimer
public SolrExtendedUnifiedHighlighter(SolrQueryRequest req)
protected UnifiedHighlighter.OffsetSource getOffsetSource(String field)
getOffsetSource
in class UnifiedHighlighter
protected FieldInfo getFieldInfo(String field)
getFieldInfo
in class UnifiedHighlighter
public int getMaxNoHighlightPassages(String field)
getMaxNoHighlightPassages
in class UnifiedHighlighter
protected PassageFormatter getFormatter(String fieldName)
getFormatter
in class UnifiedHighlighter
protected PassageScorer getScorer(String fieldName)
getScorer
in class UnifiedHighlighter
protected BreakIterator getBreakIterator(String field)
getBreakIterator
in class UnifiedHighlighter
protected char parseBiSepChar(String sepChar)
CustomSeparatorBreakIterator
protected BreakIterator parseBreakIterator(String type, Locale locale)
protected Locale parseLocale(String language, String country, String variant)
protected List<CharSequence[]> loadFieldValues(String[] fields, DocIdSetIterator docIter, int cacheCharsThreshold) throws IOException
loadFieldValues
in class UnifiedHighlighter
IOException
protected Set<UnifiedHighlighter.HighlightFlag> getFlags(String field)
getFlags
in class UnifiedHighlighter
protected Predicate<String> getFieldMatcher(String field)
getFieldMatcher
in class UnifiedHighlighter
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.