Uses of Interface
org.apache.lucene.util.Attribute
Packages that use 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
Subinterfaces of Attribute in org.apache.lucene.analysis.tokenattributesModifier and TypeInterfaceDescriptioninterfaceThis attribute can be used if you have the raw term bytes to be indexed.interfaceThe term text of a Token.interfaceThis attribute can be used to pass different flags down theTokenizerchain, e.g.interfaceThis attribute can be used to mark a token as a keyword.interfaceThe start and end character offset of a Token.interfaceThe payload of a Token.interfaceDetermines the position of this token relative to the previous Token in a TokenStream, used in phrase searching.interfaceDetermines how many positions this token spans.interfaceThis attribute tracks what sentence a given token belongs to as well as potentially other sentence specific attributes.interfaceSets the custom term frequency of a term within one document.interfaceThis attribute is requested by TermsHashPerField to index the contents.interfaceA Token's lexical type.Classes in org.apache.lucene.analysis.tokenattributes that implement AttributeModifier and TypeClassDescriptionclassImplementation class forBytesTermAttribute.classDefault implementation ofCharTermAttribute.classDefault implementation ofFlagsAttribute.final classDefault implementation ofKeywordAttribute.classDefault implementation ofOffsetAttribute.classDefault implementation of the common attributes used by Lucene:CharTermAttributeTypeAttributePositionIncrementAttributePositionLengthAttributeOffsetAttributeTermFrequencyAttributeclassDefault implementation ofPayloadAttribute.classDefault implementation ofPositionIncrementAttribute.classDefault implementation ofPositionLengthAttribute.classDefault implementation ofSentenceAttribute.classDefault implementation ofTermFrequencyAttribute.classDefault implementation ofTypeAttribute. -
Uses of Attribute in org.apache.lucene.search
Subinterfaces of Attribute in org.apache.lucene.searchModifier and TypeInterfaceDescriptioninterfaceAdd thisAttributeto aTermsEnumreturned byMultiTermQuery.getTermsEnum(Terms,AttributeSource)and update the boost on each returned term.interfaceAdd thisAttributeto a freshAttributeSourcebefore callingMultiTermQuery.getTermsEnum(Terms,AttributeSource).Classes in org.apache.lucene.search that implement AttributeModifier and TypeClassDescriptionfinal classImplementation class forBoostAttribute.final classImplementation class forMaxNonCompetitiveBoostAttribute. -
Uses of Attribute in org.apache.lucene.util
Classes in org.apache.lucene.util that implement AttributeModifier and TypeClassDescriptionclassBase 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) Returns the instance of the passed in Attribute contained in this AttributeSourceMethods 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 AttributeImplAttributeFactory.createAttributeInstance(Class<? extends Attribute> attClass) Returns anAttributeImplfor the suppliedAttributeinterface class.final AttributeImplAttributeFactory.StaticImplementationAttributeFactory.createAttributeInstance(Class<? extends Attribute> attClass) final booleanAttributeSource.hasAttribute(Class<? extends Attribute> attClass) The caller must pass in a Class<? extends Attribute> value.voidThis method gets called for every property in anAttributeImpl/AttributeSourcepassing the class name of theAttribute, a key and the actual value.