Package | Description |
---|---|
org.apache.lucene.analysis |
Text analysis.
|
org.apache.lucene.analysis.cn.smart |
Analyzer for Simplified Chinese, which indexes words.
|
org.apache.lucene.analysis.core |
Basic, general-purpose analysis components.
|
org.apache.lucene.analysis.icu.segmentation |
Tokenizer that breaks text into words with the Unicode Text Segmentation algorithm.
|
org.apache.lucene.analysis.ja |
Analyzer for Japanese.
|
org.apache.lucene.analysis.ngram |
Character n-gram tokenizers and filters.
|
org.apache.lucene.analysis.path |
Analysis components for path-like strings such as filenames.
|
org.apache.lucene.analysis.pattern |
Set of components for pattern-based (regex) analysis.
|
org.apache.lucene.analysis.standard |
Fast, general-purpose grammar-based tokenizers.
|
org.apache.lucene.analysis.standard.std40 |
Backwards-compatible implementation to match
Version.LUCENE_4_0 |
org.apache.lucene.analysis.th |
Analyzer for Thai.
|
org.apache.lucene.analysis.uima |
Classes that integrate UIMA with Lucene's analysis API.
|
org.apache.lucene.analysis.util |
Utility functions for text analysis.
|
org.apache.lucene.analysis.wikipedia |
Tokenizer that is aware of Wikipedia syntax.
|
org.apache.lucene.collation |
Unicode collation support.
|
org.apache.lucene.search.highlight |
Highlighting search terms.
|
org.apache.lucene.util |
Some utility classes.
|
Modifier and Type | Field and Description |
---|---|
static AttributeFactory |
TokenStream.DEFAULT_TOKEN_ATTRIBUTE_FACTORY
Default
AttributeFactory instance that should be used for TokenStreams. |
static AttributeFactory |
Token.TOKEN_ATTRIBUTE_FACTORY
Deprecated.
Convenience factory that returns
Token as implementation for the basic
attributes and return the default impl (with "Impl" appended) for all other
attributes. |
static AttributeFactory |
MockUTF16TermAttributeImpl.UTF16_TERM_ATTRIBUTE_FACTORY
Factory that returns an instance of this class for CharTermAttribute
|
Modifier and Type | Method and Description |
---|---|
static AttributeFactory |
BaseTokenStreamTestCase.newAttributeFactory()
Returns a random AttributeFactory impl
|
static AttributeFactory |
BaseTokenStreamTestCase.newAttributeFactory(Random random)
Returns a random AttributeFactory impl
|
Constructor and Description |
---|
MockTokenizer(AttributeFactory factory)
|
MockTokenizer(AttributeFactory factory,
CharacterRunAutomaton runAutomaton,
boolean lowerCase) |
MockTokenizer(AttributeFactory factory,
CharacterRunAutomaton runAutomaton,
boolean lowerCase,
int maxTokenLength) |
NumericTokenStream(AttributeFactory factory,
int precisionStep)
Expert: Creates a token stream for numeric values with the specified
precisionStep using the given
AttributeFactory . |
Tokenizer(AttributeFactory factory)
Construct a tokenizer with no input, awaiting a call to
Tokenizer.setReader(java.io.Reader) to
provide input. |
TokenStream(AttributeFactory factory)
A TokenStream using the supplied AttributeFactory for creating new
Attribute instances. |
Modifier and Type | Method and Description |
---|---|
Tokenizer |
HMMChineseTokenizerFactory.create(AttributeFactory factory) |
SentenceTokenizer |
SmartChineseSentenceTokenizerFactory.create(AttributeFactory factory)
Deprecated.
|
Constructor and Description |
---|
HMMChineseTokenizer(AttributeFactory factory)
Creates a new HMMChineseTokenizer, supplying the AttributeFactory
|
SentenceTokenizer(AttributeFactory factory)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
LetterTokenizer |
LetterTokenizerFactory.create(AttributeFactory factory) |
WhitespaceTokenizer |
WhitespaceTokenizerFactory.create(AttributeFactory factory) |
KeywordTokenizer |
KeywordTokenizerFactory.create(AttributeFactory factory) |
LowerCaseTokenizer |
LowerCaseTokenizerFactory.create(AttributeFactory factory) |
Constructor and Description |
---|
KeywordTokenizer(AttributeFactory factory,
int bufferSize) |
LetterTokenizer(AttributeFactory factory)
Construct a new LetterTokenizer using a given
AttributeFactory . |
LowerCaseTokenizer(AttributeFactory factory)
Construct a new LowerCaseTokenizer using a given
AttributeFactory . |
WhitespaceTokenizer(AttributeFactory factory)
Construct a new WhitespaceTokenizer using a given
AttributeFactory . |
Modifier and Type | Method and Description |
---|---|
ICUTokenizer |
ICUTokenizerFactory.create(AttributeFactory factory) |
Constructor and Description |
---|
ICUTokenizer(AttributeFactory factory,
ICUTokenizerConfig config)
Construct a new ICUTokenizer that breaks text into words from the given
Reader, using a tailored BreakIterator configuration.
|
Modifier and Type | Method and Description |
---|---|
JapaneseTokenizer |
JapaneseTokenizerFactory.create(AttributeFactory factory) |
Constructor and Description |
---|
JapaneseTokenizer(AttributeFactory factory,
UserDictionary userDictionary,
boolean discardPunctuation,
JapaneseTokenizer.Mode mode)
Create a new JapaneseTokenizer.
|
Modifier and Type | Method and Description |
---|---|
Tokenizer |
NGramTokenizerFactory.create(AttributeFactory factory)
|
Tokenizer |
EdgeNGramTokenizerFactory.create(AttributeFactory factory) |
Constructor and Description |
---|
EdgeNGramTokenizer(AttributeFactory factory,
int minGram,
int maxGram)
Creates EdgeNGramTokenizer that can generate n-grams in the sizes of the given range
|
Lucene43EdgeNGramTokenizer(AttributeFactory factory,
int minGram,
int maxGram)
Deprecated.
Creates EdgeNGramTokenizer that can generate n-grams in the sizes of the given range
|
Lucene43EdgeNGramTokenizer(AttributeFactory factory,
Lucene43EdgeNGramTokenizer.Side side,
int minGram,
int maxGram)
Deprecated.
Creates EdgeNGramTokenizer that can generate n-grams in the sizes of the given range
|
Lucene43EdgeNGramTokenizer(AttributeFactory factory,
String sideLabel,
int minGram,
int maxGram)
Deprecated.
Creates EdgeNGramTokenizer that can generate n-grams in the sizes of the given range
|
Lucene43NGramTokenizer(AttributeFactory factory,
int minGram,
int maxGram)
Deprecated.
Creates NGramTokenizer with given min and max n-grams.
|
NGramTokenizer(AttributeFactory factory,
int minGram,
int maxGram)
Creates NGramTokenizer with given min and max n-grams.
|
Modifier and Type | Method and Description |
---|---|
Tokenizer |
PathHierarchyTokenizerFactory.create(AttributeFactory factory) |
Constructor and Description |
---|
PathHierarchyTokenizer(AttributeFactory factory,
char delimiter,
char replacement,
int skip) |
PathHierarchyTokenizer(AttributeFactory factory,
int bufferSize,
char delimiter,
char replacement,
int skip) |
ReversePathHierarchyTokenizer(AttributeFactory factory,
char delimiter,
char replacement,
int skip) |
ReversePathHierarchyTokenizer(AttributeFactory factory,
int bufferSize,
char delimiter,
char replacement,
int skip) |
Modifier and Type | Method and Description |
---|---|
PatternTokenizer |
PatternTokenizerFactory.create(AttributeFactory factory)
Split the input using configured pattern
|
Constructor and Description |
---|
PatternTokenizer(AttributeFactory factory,
Pattern pattern,
int group)
creates a new PatternTokenizer returning tokens from group (-1 for split functionality)
|
Modifier and Type | Method and Description |
---|---|
Tokenizer |
UAX29URLEmailTokenizerFactory.create(AttributeFactory factory) |
ClassicTokenizer |
ClassicTokenizerFactory.create(AttributeFactory factory) |
Tokenizer |
StandardTokenizerFactory.create(AttributeFactory factory) |
Constructor and Description |
---|
ClassicTokenizer(AttributeFactory factory)
Creates a new ClassicTokenizer with a given
AttributeFactory |
StandardTokenizer(AttributeFactory factory)
Creates a new StandardTokenizer with a given
AttributeFactory |
UAX29URLEmailTokenizer(AttributeFactory factory)
Creates a new UAX29URLEmailTokenizer with a given
AttributeFactory |
Constructor and Description |
---|
StandardTokenizer40(AttributeFactory factory)
Deprecated.
Creates a new StandardTokenizer40 with a given
AttributeFactory |
UAX29URLEmailTokenizer40(AttributeFactory factory)
Deprecated.
Creates a new UAX29URLEmailTokenizer with a given
AttributeSource . |
Modifier and Type | Method and Description |
---|---|
Tokenizer |
ThaiTokenizerFactory.create(AttributeFactory factory) |
Constructor and Description |
---|
ThaiTokenizer(AttributeFactory factory)
Creates a new ThaiTokenizer, supplying the AttributeFactory
|
Modifier and Type | Method and Description |
---|---|
UIMAAnnotationsTokenizer |
UIMAAnnotationsTokenizerFactory.create(AttributeFactory factory) |
UIMATypeAwareAnnotationsTokenizer |
UIMATypeAwareAnnotationsTokenizerFactory.create(AttributeFactory factory) |
Constructor and Description |
---|
BaseUIMATokenizer(AttributeFactory factory,
String descriptorPath,
Map<String,Object> configurationParameters) |
UIMAAnnotationsTokenizer(String descriptorPath,
String tokenType,
Map<String,Object> configurationParameters,
AttributeFactory factory) |
UIMATypeAwareAnnotationsTokenizer(String descriptorPath,
String tokenType,
String typeAttributeFeaturePath,
Map<String,Object> configurationParameters,
AttributeFactory factory) |
Modifier and Type | Method and Description |
---|---|
abstract Tokenizer |
TokenizerFactory.create(AttributeFactory factory)
Creates a TokenStream of the specified input using the given AttributeFactory
|
Constructor and Description |
---|
CharTokenizer(AttributeFactory factory)
Creates a new
CharTokenizer instance |
SegmentingTokenizerBase(AttributeFactory factory,
BreakIterator iterator)
Construct a new SegmenterBase, also supplying the AttributeFactory
|
Modifier and Type | Method and Description |
---|---|
WikipediaTokenizer |
WikipediaTokenizerFactory.create(AttributeFactory factory) |
Constructor and Description |
---|
WikipediaTokenizer(AttributeFactory factory,
int tokenOutput,
Set<String> untokenizedTypes)
Creates a new instance of the
WikipediaTokenizer . |
Modifier and Type | Class and Description |
---|---|
class |
CollationAttributeFactory
Converts each token into its
CollationKey , and then
encodes the bytes as an index term. |
class |
ICUCollationAttributeFactory
Converts each token into its
CollationKey , and
then encodes bytes as an index term. |
Constructor and Description |
---|
CollationAttributeFactory(AttributeFactory delegate,
Collator collator)
Create a CollationAttributeFactory, using the supplied Attribute Factory
as the factory for all other attributes.
|
ICUCollationAttributeFactory(AttributeFactory delegate,
com.ibm.icu.text.Collator collator)
Create an ICUCollationAttributeFactory, using the supplied Attribute
Factory as the factory for all other attributes.
|
Modifier and Type | Field and Description |
---|---|
static AttributeFactory |
TokenStreamFromTermVector.ATTRIBUTE_FACTORY |
Modifier and Type | Class and Description |
---|---|
static class |
AttributeFactory.StaticImplementationAttributeFactory<A extends AttributeImpl>
Expert: AttributeFactory returning an instance of the given
clazz for the
attributes it implements. |
Modifier and Type | Field and Description |
---|---|
static AttributeFactory |
AttributeFactory.DEFAULT_ATTRIBUTE_FACTORY
This is the default factory that creates
AttributeImpl s using the
class name of the supplied Attribute interface class by appending Impl to it. |
Modifier and Type | Method and Description |
---|---|
AttributeFactory |
AttributeSource.getAttributeFactory()
returns the used AttributeFactory.
|
static <A extends AttributeImpl> |
AttributeFactory.getStaticImplementation(AttributeFactory delegate,
Class<A> clazz)
Returns an AttributeFactory returning an instance of the given
clazz for the
attributes it implements. |
Modifier and Type | Method and Description |
---|---|
static <A extends AttributeImpl> |
AttributeFactory.getStaticImplementation(AttributeFactory delegate,
Class<A> clazz)
Returns an AttributeFactory returning an instance of the given
clazz for the
attributes it implements. |
Constructor and Description |
---|
AttributeSource(AttributeFactory factory)
An AttributeSource using the supplied
AttributeFactory for creating new Attribute instances. |
StaticImplementationAttributeFactory(AttributeFactory delegate,
Class<A> clazz)
Expert: Creates an AttributeFactory returning
clazz as instance for the
attributes it implements and for all other attributes calls the given delegate factory. |
Copyright © 2000–2015 The Apache Software Foundation. All rights reserved.