Package org.apache.lucene.analysis.ru
Class RussianLetterTokenizer
- java.lang.Object
-
- org.apache.lucene.util.AttributeSource
-
- org.apache.lucene.analysis.TokenStream
-
- org.apache.lucene.analysis.Tokenizer
-
- org.apache.lucene.analysis.util.CharTokenizer
-
- org.apache.lucene.analysis.ru.RussianLetterTokenizer
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
@Deprecated public class RussianLetterTokenizer extends CharTokenizer
Deprecated.(3.1) UseStandardTokenizer
instead, which has the same functionality. This filter will be removed in Lucene 5.0A RussianLetterTokenizer is aTokenizer
that extendsLetterTokenizer
by also allowing the basic Latin digits 0-9.You must specify the required
Version
compatibility when creatingRussianLetterTokenizer
:- As of 3.1,
CharTokenizer
uses an int based API to normalize and detect token characters. SeeCharTokenizer.isTokenChar(int)
andCharTokenizer.normalize(int)
for details.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.util.AttributeSource
AttributeSource.AttributeFactory, AttributeSource.State
-
-
Constructor Summary
Constructors Constructor Description RussianLetterTokenizer(Version matchVersion, java.io.Reader in)
Deprecated.Construct a new RussianLetterTokenizer.RussianLetterTokenizer(Version matchVersion, AttributeSource.AttributeFactory factory, java.io.Reader in)
Deprecated.Construct a new RussianLetterTokenizer using a givenAttributeSource.AttributeFactory
.
-
Method Summary
-
Methods inherited from class org.apache.lucene.analysis.util.CharTokenizer
end, incrementToken, reset
-
Methods inherited from class org.apache.lucene.util.AttributeSource
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toString
-
-
-
-
Constructor Detail
-
RussianLetterTokenizer
public RussianLetterTokenizer(Version matchVersion, java.io.Reader in)
Deprecated.Construct a new RussianLetterTokenizer. * @param matchVersion Lucene version to match See {@link above}- Parameters:
in
- the input to split up into tokens
-
RussianLetterTokenizer
public RussianLetterTokenizer(Version matchVersion, AttributeSource.AttributeFactory factory, java.io.Reader in)
Deprecated.Construct a new RussianLetterTokenizer using a givenAttributeSource.AttributeFactory
. * @param matchVersion Lucene version to match See {@link above}- Parameters:
factory
- the attribute factory to use for thisTokenizer
in
- the input to split up into tokens
-
-