Package | Description |
---|---|
org.apache.lucene.analysis |
Support for testing analysis components.
|
org.apache.lucene.analysis.miscellaneous |
Miscellaneous TokenStreams
|
org.apache.lucene.search.highlight |
The highlight package contains classes to provide "keyword in context" features
typically used to highlight search terms in the text of results pages.
|
Modifier and Type | Method and Description |
---|---|
Token |
Token.clone()
Deprecated.
|
Token |
Token.reinit(char[] newTermBuffer,
int newTermOffset,
int newTermLength,
int newStartOffset,
int newEndOffset)
Deprecated.
Shorthand for calling
clear() ,
CharTermAttributeImpl.copyBuffer(char[], int, int) ,
PackedTokenAttributeImpl.setOffset(int, int) ,
PackedTokenAttributeImpl.setType(java.lang.String) on Token.DEFAULT_TYPE |
Token |
Token.reinit(char[] newTermBuffer,
int newTermOffset,
int newTermLength,
int newStartOffset,
int newEndOffset,
String newType)
Deprecated.
|
Token |
Token.reinit(String newTerm,
int newStartOffset,
int newEndOffset)
Deprecated.
Shorthand for calling
clear() ,
CharTermAttributeImpl.append(CharSequence) ,
PackedTokenAttributeImpl.setOffset(int, int) ,
PackedTokenAttributeImpl.setType(java.lang.String) on Token.DEFAULT_TYPE |
Token |
Token.reinit(String newTerm,
int newTermOffset,
int newTermLength,
int newStartOffset,
int newEndOffset)
Deprecated.
Shorthand for calling
clear() ,
CharTermAttributeImpl.append(CharSequence, int, int) ,
PackedTokenAttributeImpl.setOffset(int, int) ,
PackedTokenAttributeImpl.setType(java.lang.String) on Token.DEFAULT_TYPE |
Token |
Token.reinit(String newTerm,
int newTermOffset,
int newTermLength,
int newStartOffset,
int newEndOffset,
String newType)
Deprecated.
|
Token |
Token.reinit(String newTerm,
int newStartOffset,
int newEndOffset,
String newType)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
Token.reinit(Token prototype)
Deprecated.
Copy the prototype token's fields into this one.
|
void |
Token.reinit(Token prototype,
char[] newTermBuffer,
int offset,
int length)
Deprecated.
Copy the prototype token's fields into this one, with a different term.
|
void |
Token.reinit(Token prototype,
String newTerm)
Deprecated.
Copy the prototype token's fields into this one, with a different term.
|
Constructor and Description |
---|
CannedTokenStream(int finalPosInc,
int finalOffset,
Token... tokens)
If you want trailing holes, pass a non-zero
finalPosInc.
|
CannedTokenStream(Token... tokens) |
Modifier and Type | Method and Description |
---|---|
Token |
SingleTokenTokenStream.getToken()
Deprecated.
|
Token |
PrefixAndSuffixAwareTokenFilter.updateInputToken(Token inputToken,
Token lastPrefixToken) |
Token |
PrefixAndSuffixAwareTokenFilter.updateSuffixToken(Token suffixToken,
Token lastInputToken) |
Token |
PrefixAwareTokenFilter.updateSuffixToken(Token suffixToken,
Token lastPrefixToken)
The default implementation adds last prefix token end offset to the suffix token start and end offsets.
|
Modifier and Type | Method and Description |
---|---|
void |
SingleTokenTokenStream.setToken(Token token)
Deprecated.
|
Token |
PrefixAndSuffixAwareTokenFilter.updateInputToken(Token inputToken,
Token lastPrefixToken) |
Token |
PrefixAndSuffixAwareTokenFilter.updateSuffixToken(Token suffixToken,
Token lastInputToken) |
Token |
PrefixAwareTokenFilter.updateSuffixToken(Token suffixToken,
Token lastPrefixToken)
The default implementation adds last prefix token end offset to the suffix token start and end offsets.
|
Constructor and Description |
---|
SingleTokenTokenStream(Token token)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Token |
TokenGroup.getToken(int index) |
Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.