Uses of Interface
org.apache.lucene.util.Attribute
Packages that use Attribute
Package
Description
Additional ICU-specific Attributes for text analysis.
Additional Kuromoji-specific Attributes for text analysis.
Additional Korean-specific Attributes for text analysis.
Miscellaneous Tokenstreams.
General-purpose attributes for text analysis.
Custom
AttributeImpl for indexing collation keys as index terms.Code to search indices.
Some utility classes.
-
Uses of Attribute in org.apache.lucene.analysis.icu.tokenattributes
Subinterfaces of Attribute in org.apache.lucene.analysis.icu.tokenattributesModifier and TypeInterfaceDescriptioninterfaceThis attribute stores the UTR #24 script value for a token of text.Classes in org.apache.lucene.analysis.icu.tokenattributes that implement AttributeModifier and TypeClassDescriptionclassExtension ofCharTermAttributeImplthat encodes the term text as a binary Unicode collation key instead of as UTF-8 bytes.classImplementation ofScriptAttributethat stores the script as an integer. -
Uses of Attribute in org.apache.lucene.analysis.ja.tokenattributes
Subinterfaces of Attribute in org.apache.lucene.analysis.ja.tokenattributesModifier and TypeInterfaceDescriptioninterfaceAttribute forToken.getBaseForm().interfaceAttribute for Kuromoji inflection data.interfaceAttribute forToken.getPartOfSpeech().interfaceAttribute for Kuromoji reading dataClasses in org.apache.lucene.analysis.ja.tokenattributes that implement AttributeModifier and TypeClassDescriptionclassAttribute forToken.getBaseForm().classAttribute for Kuromoji inflection data.classAttribute forToken.getPartOfSpeech().classAttribute for Kuromoji reading data -
Uses of Attribute in org.apache.lucene.analysis.ko.tokenattributes
Subinterfaces of Attribute in org.apache.lucene.analysis.ko.tokenattributesModifier and TypeInterfaceDescriptioninterfacePart of Speech attributes for Korean.interfaceAttribute for Korean reading dataClasses in org.apache.lucene.analysis.ko.tokenattributes that implement AttributeModifier and TypeClassDescriptionclassPart of Speech attributes for Korean.classAttribute for Korean reading data -
Uses of Attribute in org.apache.lucene.analysis.miscellaneous
Subinterfaces of Attribute in org.apache.lucene.analysis.miscellaneousModifier and TypeInterfaceDescriptionstatic interfaceAttribute providing access to the term builder and UTF-16 conversionClasses in org.apache.lucene.analysis.miscellaneous that implement AttributeModifier and TypeClassDescriptionstatic final classImplementation ofConcatenateGraphFilter.BytesRefBuilderTermAttribute -
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.collation.tokenattributes
Classes in org.apache.lucene.collation.tokenattributes that implement AttributeModifier and TypeClassDescriptionclassExtension ofCharTermAttributeImplthat encodes the term text as a binary Unicode collation key instead of as UTF-8 bytes. -
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.private static interfaceUsed for sharing automata between segmentsinterfaceAdd thisAttributeto a freshAttributeSourcebefore callingMultiTermQuery.getTermsEnum(Terms,AttributeSource).Classes in org.apache.lucene.search that implement AttributeModifier and TypeClassDescriptionfinal classImplementation class forBoostAttribute.private static classfinal 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.Fields in org.apache.lucene.util with type parameters of type AttributeModifier and TypeFieldDescriptionprivate final Map<Class<? extends Attribute>, AttributeImpl> AttributeSource.attributesMethods 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.AttributeSource.getAttributeInterfaces(Class<? extends AttributeImpl> clazz) 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.AttributeFactory.DefaultAttributeFactory.createAttributeInstance(Class<? extends Attribute> attClass) final AttributeImplAttributeFactory.StaticImplementationAttributeFactory.createAttributeInstance(Class<? extends Attribute> attClass) private Class<? extends AttributeImpl> AttributeFactory.DefaultAttributeFactory.findImplClass(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.