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 interfaceNumericTokenStream.NumericTermAttributeExpert: 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 classNumericTokenStream.NumericTermAttributeImplImplementation ofNumericTokenStream.NumericTermAttribute.classTokenA 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 AttributeImplToken.TokenAttributeFactory. createAttributeInstance(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 interfaceCharTermAttributeThe term text of a Token.interfaceFlagsAttributeThis attribute can be used to pass different flags down theTokenizerchain, e.g.interfaceKeywordAttributeThis attribute can be used to mark a token as a keyword.interfaceOffsetAttributeThe start and end character offset of a Token.interfacePayloadAttributeThe payload of a Token.interfacePositionIncrementAttributeDetermines the position of this token relative to the previous Token in a TokenStream, used in phrase searching.interfacePositionLengthAttributeDetermines how many positions this token spans.interfaceTermToBytesRefAttributeThis attribute is requested by TermsHashPerField to index the contents.interfaceTypeAttributeA Token's lexical type.Classes in org.apache.lucene.analysis.tokenattributes that implement Attribute Modifier and Type Class Description classCharTermAttributeImplDefault implementation ofCharTermAttribute.classFlagsAttributeImplDefault implementation ofFlagsAttribute.classKeywordAttributeImplDefault implementation ofKeywordAttribute.classOffsetAttributeImplDefault implementation ofOffsetAttribute.classPayloadAttributeImplDefault implementation ofPayloadAttribute.classPositionIncrementAttributeImplDefault implementation ofPositionIncrementAttribute.classPositionLengthAttributeImplDefault implementation ofPositionLengthAttribute.classTypeAttributeImplDefault implementation ofTypeAttribute. -
Uses of Attribute in org.apache.lucene.search
Subinterfaces of Attribute in org.apache.lucene.search Modifier and Type Interface Description interfaceBoostAttributeAdd thisAttributeto aTermsEnumreturned byMultiTermQuery.getTermsEnum(Terms,AttributeSource)and update the boost on each returned term.static interfaceFuzzyTermsEnum.LevenshteinAutomataAttributereuses compiled automata across different segments, because they are independent of the indexinterfaceMaxNonCompetitiveBoostAttributeAdd thisAttributeto a freshAttributeSourcebefore callingMultiTermQuery.getTermsEnum(Terms,AttributeSource).Classes in org.apache.lucene.search that implement Attribute Modifier and Type Class Description classBoostAttributeImplImplementation class forBoostAttribute.static classFuzzyTermsEnum.LevenshteinAutomataAttributeImplStores compiled automata as a list (indexed by edit distance)classMaxNonCompetitiveBoostAttributeImplImplementation class forMaxNonCompetitiveBoostAttribute. -
Uses of Attribute in org.apache.lucene.util
Classes in org.apache.lucene.util that implement Attribute Modifier and Type Class Description classAttributeImplBase 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(Class<T> attClass)The caller must pass in a Class<? extends Attribute> value.<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 Attribute Modifier and Type Method Description Iterator<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 AttributeImplAttributeSource.AttributeFactory. createAttributeInstance(Class<? extends Attribute> attClass)returns anAttributeImplfor the suppliedAttributeinterface class.booleanAttributeSource. hasAttribute(Class<? extends Attribute> attClass)The caller must pass in a Class<? extends Attribute> value.voidAttributeReflector. reflect(Class<? extends Attribute> attClass, String key, Object value)This method gets called for every property in anAttributeImpl/AttributeSourcepassing the class name of theAttribute, a key and the actual value.
-