Uses of Interface
org.apache.lucene.util.Attribute
-
Packages that use Attribute Package Description org.apache.lucene.analysis API and code to convert text into indexable/searchable tokens.org.apache.lucene.analysis.tokenattributes General-purpose attributes for text analysis.org.apache.lucene.search Code to search indices.org.apache.lucene.util Some utility classes. -
-
Uses of Attribute in org.apache.lucene.analysis
Subinterfaces of Attribute in org.apache.lucene.analysis Modifier and Type Interface Description static interface
NumericTokenStream.NumericTermAttribute
Expert: Use this attribute to get the details of the currently generated token.Classes in org.apache.lucene.analysis that implement Attribute Modifier and Type Class Description static class
NumericTokenStream.NumericTermAttributeImpl
Implementation ofNumericTokenStream.NumericTermAttribute
.class
Token
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 Attribute Modifier and Type Method Description AttributeImpl
Token.TokenAttributeFactory. createAttributeInstance(java.lang.Class<? extends Attribute> attClass)
-
Uses of Attribute in org.apache.lucene.analysis.tokenattributes
Subinterfaces of Attribute in org.apache.lucene.analysis.tokenattributes Modifier and Type Interface Description interface
CharTermAttribute
The term text of a Token.interface
FlagsAttribute
This attribute can be used to pass different flags down theTokenizer
chain, e.g.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
Determines the position of this token relative to the previous Token in a TokenStream, used in phrase searching.interface
PositionLengthAttribute
Determines how many positions this token spans.interface
TermToBytesRefAttribute
This attribute is requested by TermsHashPerField to index the contents.interface
TypeAttribute
A Token's lexical type.Classes in org.apache.lucene.analysis.tokenattributes that implement Attribute Modifier and Type Class Description class
CharTermAttributeImpl
Default implementation ofCharTermAttribute
.class
FlagsAttributeImpl
Default implementation ofFlagsAttribute
.class
KeywordAttributeImpl
Default implementation ofKeywordAttribute
.class
OffsetAttributeImpl
Default implementation ofOffsetAttribute
.class
PayloadAttributeImpl
Default implementation ofPayloadAttribute
.class
PositionIncrementAttributeImpl
Default implementation ofPositionIncrementAttribute
.class
PositionLengthAttributeImpl
Default implementation ofPositionLengthAttribute
.class
TypeAttributeImpl
Default implementation ofTypeAttribute
. -
Uses of Attribute in org.apache.lucene.search
Subinterfaces of Attribute in org.apache.lucene.search Modifier and Type Interface Description interface
BoostAttribute
Add thisAttribute
to aTermsEnum
returned byMultiTermQuery.getTermsEnum(Terms,AttributeSource)
and update the boost on each returned term.static interface
FuzzyTermsEnum.LevenshteinAutomataAttribute
reuses compiled automata across different segments, because they are independent of the indexinterface
MaxNonCompetitiveBoostAttribute
Add thisAttribute
to a freshAttributeSource
before callingMultiTermQuery.getTermsEnum(Terms,AttributeSource)
.Classes in org.apache.lucene.search that implement Attribute Modifier and Type Class Description class
BoostAttributeImpl
Implementation class forBoostAttribute
.static class
FuzzyTermsEnum.LevenshteinAutomataAttributeImpl
Stores compiled automata as a list (indexed by edit distance)class
MaxNonCompetitiveBoostAttributeImpl
Implementation class forMaxNonCompetitiveBoostAttribute
. -
Uses of Attribute in org.apache.lucene.util
Classes in org.apache.lucene.util that implement Attribute Modifier and Type Class Description class
AttributeImpl
Base class for Attributes that can be added to aAttributeSource
.Methods in org.apache.lucene.util with type parameters of type Attribute Modifier and Type Method Description <T extends Attribute>
TAttributeSource. addAttribute(java.lang.Class<T> attClass)
The caller must pass in a Class<? extends Attribute> value.<T extends Attribute>
TAttributeSource. getAttribute(java.lang.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 Attribute Modifier and Type Method Description java.util.Iterator<java.lang.Class<? extends Attribute>>
AttributeSource. 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 Attribute Modifier and Type Method Description abstract AttributeImpl
AttributeSource.AttributeFactory. createAttributeInstance(java.lang.Class<? extends Attribute> attClass)
returns anAttributeImpl
for the suppliedAttribute
interface class.boolean
AttributeSource. hasAttribute(java.lang.Class<? extends Attribute> attClass)
The caller must pass in a Class<? extends Attribute> value.void
AttributeReflector. reflect(java.lang.Class<? extends Attribute> attClass, java.lang.String key, java.lang.Object value)
This method gets called for every property in anAttributeImpl
/AttributeSource
passing the class name of theAttribute
, a key and the actual value.
-