Uses of Interface
org.apache.lucene.util.Attribute
Packages that use Attribute
Package
Description
API and code to convert text into indexable/searchable tokens.
General-purpose attributes for text analysis.
Code to search indices.
Some utility classes.
-
Uses of Attribute in org.apache.lucene.analysis
Subinterfaces of Attribute in org.apache.lucene.analysisModifier and TypeInterfaceDescriptionstatic interface
Expert: Use this attribute to get the details of the currently generated token.Classes in org.apache.lucene.analysis that implement AttributeModifier and TypeClassDescriptionstatic final class
Implementation ofNumericTokenStream.NumericTermAttribute
.class
A Token is an occurrence of a term from the text of a field.Method parameters in org.apache.lucene.analysis with type arguments of type AttributeModifier and TypeMethodDescriptionToken.TokenAttributeFactory.createAttributeInstance
(Class<? extends Attribute> attClass) -
Uses of Attribute in org.apache.lucene.analysis.tokenattributes
Subinterfaces of Attribute in org.apache.lucene.analysis.tokenattributesModifier and TypeInterfaceDescriptioninterface
The term text of a Token.interface
This attribute can be used to pass different flags down theTokenizer
chain, e.g.interface
This attribute can be used to mark a token as a keyword.interface
The start and end character offset of a Token.interface
The payload of a Token.interface
Determines the position of this token relative to the previous Token in a TokenStream, used in phrase searching.interface
Determines how many positions this token spans.interface
This attribute is requested by TermsHashPerField to index the contents.interface
A Token's lexical type.Classes in org.apache.lucene.analysis.tokenattributes that implement AttributeModifier and TypeClassDescriptionclass
Default implementation ofCharTermAttribute
.class
Default implementation ofFlagsAttribute
.final class
Default implementation ofKeywordAttribute
.class
Default implementation ofOffsetAttribute
.class
Default implementation ofPayloadAttribute
.class
Default implementation ofPositionIncrementAttribute
.class
Default implementation ofPositionLengthAttribute
.class
Default implementation ofTypeAttribute
. -
Uses of Attribute in org.apache.lucene.search
Subinterfaces of Attribute in org.apache.lucene.searchModifier and TypeInterfaceDescriptioninterface
Add thisAttribute
to aTermsEnum
returned byMultiTermQuery.getTermsEnum(Terms,AttributeSource)
and update the boost on each returned term.static interface
reuses compiled automata across different segments, because they are independent of the indexinterface
Add thisAttribute
to a freshAttributeSource
before callingMultiTermQuery.getTermsEnum(Terms,AttributeSource)
.Classes in org.apache.lucene.search that implement AttributeModifier and TypeClassDescriptionfinal class
Implementation class forBoostAttribute
.static final class
Stores compiled automata as a list (indexed by edit distance)final class
Implementation class forMaxNonCompetitiveBoostAttribute
. -
Uses of Attribute in org.apache.lucene.util
Classes in org.apache.lucene.util that implement AttributeModifier and TypeClassDescriptionclass
Base class for Attributes that can be added to aAttributeSource
.Methods in org.apache.lucene.util with type parameters of type AttributeModifier and TypeMethodDescriptionfinal <T extends Attribute>
TAttributeSource.addAttribute
(Class<T> attClass) The caller must pass in a Class<? extends Attribute> value.final <T extends Attribute>
TAttributeSource.getAttribute
(Class<T> attClass) The caller must pass in a Class<? extends Attribute> value.Methods in org.apache.lucene.util that return types with arguments of type AttributeModifier and TypeMethodDescriptionAttributeSource.getAttributeClassesIterator()
Returns a new iterator that iterates the attribute classes in the same order they were added in.Method parameters in org.apache.lucene.util with type arguments of type AttributeModifier and TypeMethodDescriptionabstract AttributeImpl
AttributeSource.AttributeFactory.createAttributeInstance
(Class<? extends Attribute> attClass) returns anAttributeImpl
for the suppliedAttribute
interface class.final boolean
AttributeSource.hasAttribute
(Class<? extends Attribute> attClass) The caller must pass in a Class<? extends Attribute> value.void
This method gets called for every property in anAttributeImpl
/AttributeSource
passing the class name of theAttribute
, a key and the actual value.