Package | Description |
---|---|
org.apache.lucene.analysis |
Text analysis.
|
org.apache.lucene.search.uhighlight |
The UnifiedHighlighter -- a flexible highlighter that can get offsets from postings, term vectors, or analysis.
|
Modifier and Type | Field and Description |
---|---|
static CharacterRunAutomaton |
MockTokenFilter.EMPTY_STOPSET
Empty set of stopwords
|
static CharacterRunAutomaton |
MockTokenFilter.ENGLISH_STOPSET
Set of common english stopwords
|
static CharacterRunAutomaton |
MockTokenizer.KEYWORD
Acts Similar to KeywordTokenizer.
|
static CharacterRunAutomaton |
MockTokenizer.SIMPLE
Acts like LetterTokenizer.
|
static CharacterRunAutomaton |
MockTokenizer.WHITESPACE
Acts Similar to WhitespaceTokenizer
|
Constructor and Description |
---|
MockAnalyzer(java.util.Random random,
CharacterRunAutomaton runAutomaton,
boolean lowerCase)
|
MockAnalyzer(java.util.Random random,
CharacterRunAutomaton runAutomaton,
boolean lowerCase,
CharacterRunAutomaton filter)
Creates a new MockAnalyzer.
|
MockTokenFilter(TokenStream input,
CharacterRunAutomaton filter)
Create a new MockTokenFilter.
|
MockTokenizer(AttributeFactory factory,
CharacterRunAutomaton runAutomaton,
boolean lowerCase) |
MockTokenizer(AttributeFactory factory,
CharacterRunAutomaton runAutomaton,
boolean lowerCase,
int maxTokenLength) |
MockTokenizer(CharacterRunAutomaton runAutomaton,
boolean lowerCase) |
MockTokenizer(CharacterRunAutomaton runAutomaton,
boolean lowerCase,
int maxTokenLength) |
Modifier and Type | Field and Description |
---|---|
protected CharacterRunAutomaton[] |
FieldOffsetStrategy.automata |
protected static CharacterRunAutomaton[] |
UnifiedHighlighter.ZERO_LEN_AUTOMATA_ARRAY |
Modifier and Type | Method and Description |
---|---|
protected CharacterRunAutomaton[] |
UnifiedHighlighter.getAutomata(java.lang.String field,
Query query,
java.util.Set<UnifiedHighlighter.HighlightFlag> highlightFlags) |
Modifier and Type | Method and Description |
---|---|
protected FieldOffsetStrategy |
UnifiedHighlighter.getOffsetStrategy(UnifiedHighlighter.OffsetSource offsetSource,
java.lang.String field,
BytesRef[] terms,
PhraseHelper phraseHelper,
CharacterRunAutomaton[] automata,
java.util.Set<UnifiedHighlighter.HighlightFlag> highlightFlags) |
protected UnifiedHighlighter.OffsetSource |
UnifiedHighlighter.getOptimizedOffsetSource(java.lang.String field,
BytesRef[] terms,
PhraseHelper phraseHelper,
CharacterRunAutomaton[] automata) |
Constructor and Description |
---|
AnalysisOffsetStrategy(java.lang.String field,
BytesRef[] queryTerms,
PhraseHelper phraseHelper,
CharacterRunAutomaton[] automata,
Analyzer analyzer) |
FieldOffsetStrategy(java.lang.String field,
BytesRef[] queryTerms,
PhraseHelper phraseHelper,
CharacterRunAutomaton[] automata) |
MemoryIndexOffsetStrategy(java.lang.String field,
java.util.function.Predicate<java.lang.String> fieldMatcher,
BytesRef[] extractedTerms,
PhraseHelper phraseHelper,
CharacterRunAutomaton[] automata,
Analyzer analyzer,
java.util.function.Function<Query,java.util.Collection<Query>> multiTermQueryRewrite) |
PostingsOffsetStrategy(java.lang.String field,
BytesRef[] queryTerms,
PhraseHelper phraseHelper,
CharacterRunAutomaton[] automata) |
PostingsWithTermVectorsOffsetStrategy(java.lang.String field,
BytesRef[] queryTerms,
PhraseHelper phraseHelper,
CharacterRunAutomaton[] automata) |
TermVectorOffsetStrategy(java.lang.String field,
BytesRef[] queryTerms,
PhraseHelper phraseHelper,
CharacterRunAutomaton[] automata) |
TokenStreamOffsetStrategy(java.lang.String field,
BytesRef[] terms,
PhraseHelper phraseHelper,
CharacterRunAutomaton[] automata,
Analyzer indexAnalyzer) |
Copyright © 2000–2018 The Apache Software Foundation. All rights reserved.