| Package | Description |
|---|---|
| org.apache.lucene.analysis |
API and code to convert text into indexable/searchable tokens.
|
| org.apache.lucene.analysis.tokenattributes |
Useful
Attributes for text analysis. |
| org.apache.lucene.util |
Some utility classes.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Token
A Token is an occurrence of a term from the text of a field.
|
| Modifier and Type | Method and Description |
|---|---|
AttributeImpl |
Token.TokenAttributeFactory.createAttributeInstance(Class<? extends Attribute> attClass) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
CharTermAttribute
The term text of a Token.
|
interface |
FlagsAttribute
This attribute can be used to pass different flags down the
Tokenizer chain,
eg from one TokenFilter to another one. |
interface |
KeywordAttribute
This attribute can be used to mark a token as a keyword.
|
interface |
OffsetAttribute
The start and end character offset of a Token.
|
interface |
PayloadAttribute
The payload of a Token.
|
interface |
PositionIncrementAttribute
The positionIncrement determines the position of this token
relative to the previous Token in a TokenStream, used in phrase
searching.
|
interface |
PositionLengthAttribute
The positionLength determines how many positions this
token spans.
|
interface |
TermAttribute
Deprecated.
Use
CharTermAttribute instead. |
interface |
TypeAttribute
A Token's lexical type.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CharTermAttributeImpl
The term text of a Token.
|
class |
FlagsAttributeImpl
This attribute can be used to pass different flags down the tokenizer chain,
eg from one TokenFilter to another one.
|
class |
KeywordAttributeImpl
This attribute can be used to mark a token as a keyword.
|
class |
OffsetAttributeImpl
The start and end character offset of a Token.
|
class |
PayloadAttributeImpl
The payload of a Token.
|
class |
PositionIncrementAttributeImpl
The positionIncrement determines the position of this token
relative to the previous Token in a
TokenStream, used in phrase
searching. |
class |
PositionLengthAttributeImpl
|
class |
TermAttributeImpl
Deprecated.
This class is not used anymore. The backwards layer in
AttributeFactory uses the replacement implementation.
|
class |
TypeAttributeImpl
A Token's lexical type.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AttributeImpl
Base class for Attributes that can be added to a
AttributeSource. |
| Modifier and Type | Method and Description |
|---|---|
<A extends Attribute> |
AttributeSource.addAttribute(Class<A> attClass)
The caller must pass in a Class<? extends Attribute> value.
|
<A extends Attribute> |
AttributeSource.getAttribute(Class<A> attClass)
The caller must pass in a Class<? extends Attribute> value.
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<Class<? extends Attribute>> |
AttributeSource.getAttributeClassesIterator()
Returns a new iterator that iterates the attribute classes
in the same order they were added in.
|
| Modifier and Type | Method and Description |
|---|---|
abstract AttributeImpl |
AttributeSource.AttributeFactory.createAttributeInstance(Class<? extends Attribute> attClass)
returns an
AttributeImpl for the supplied Attribute interface class. |
boolean |
AttributeSource.hasAttribute(Class<? extends Attribute> attClass)
The caller must pass in a Class<? extends Attribute> value.
|
void |
AttributeReflector.reflect(Class<? extends Attribute> attClass,
String key,
Object value)
This method gets called for every property in an
AttributeImpl/AttributeSource
passing the class name of the Attribute, a key and the actual value. |
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.