Uses of Interface
org.apache.lucene.util.Attribute
Package
Description
General-purpose attributes for text analysis.
Code to search indices.
Some utility classes.
-
Uses of Attribute in org.apache.lucene.analysis.tokenattributes
Modifier and TypeInterfaceDescriptioninterface
This attribute can be used if you have the raw term bytes to be indexed.interface
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
Sets the custom term frequency of a term within one document.interface
This attribute is requested by TermsHashPerField to index the contents.interface
A Token's lexical type.Modifier and TypeClassDescriptionclass
Implementation class forBytesTermAttribute
.class
Default implementation ofCharTermAttribute
.class
Default implementation ofFlagsAttribute
.final class
Default implementation ofKeywordAttribute
.class
Default implementation ofOffsetAttribute
.class
Default implementation of the common attributes used by Lucene:CharTermAttribute
TypeAttribute
PositionIncrementAttribute
PositionLengthAttribute
OffsetAttribute
TermFrequencyAttribute
class
Default implementation ofPayloadAttribute
.class
Default implementation ofPositionIncrementAttribute
.class
Default implementation ofPositionLengthAttribute
.class
Default implementation ofTermFrequencyAttribute
.class
Default implementation ofTypeAttribute
. -
Uses of Attribute in org.apache.lucene.search
Modifier and TypeInterfaceDescriptioninterface
Add thisAttribute
to aTermsEnum
returned byMultiTermQuery.getTermsEnum(Terms,AttributeSource)
and update the boost on each returned term.interface
Add thisAttribute
to a freshAttributeSource
before callingMultiTermQuery.getTermsEnum(Terms,AttributeSource)
.Modifier and TypeClassDescriptionfinal class
Implementation class forBoostAttribute
.final class
Implementation class forMaxNonCompetitiveBoostAttribute
. -
Uses of Attribute in org.apache.lucene.util
Modifier and TypeClassDescriptionclass
Base class for Attributes that can be added to aAttributeSource
.Modifier 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) Returns the instance of the passed in Attribute contained in this AttributeSourceModifier and TypeMethodDescriptionAttributeSource.getAttributeClassesIterator()
Returns a new iterator that iterates the attribute classes in the same order they were added in.Modifier and TypeMethodDescriptionabstract AttributeImpl
AttributeFactory.createAttributeInstance
(Class<? extends Attribute> attClass) Returns anAttributeImpl
for the suppliedAttribute
interface class.final AttributeImpl
AttributeFactory.StaticImplementationAttributeFactory.createAttributeInstance
(Class<? extends Attribute> attClass) 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.