Package | Description |
---|---|
org.apache.lucene.analysis |
API and code to convert text into indexable/searchable tokens.
|
org.apache.lucene.analysis.standard |
Standards-based analyzers implemented with JFlex.
|
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.queryParser |
A simple query parser implemented with JavaCC.
|
org.apache.lucene.util |
Some utility classes.
|
Modifier and Type | Field | Description |
---|---|---|
protected Version |
StopwordAnalyzerBase.matchVersion |
Modifier and Type | Method | Description |
---|---|---|
static <V> CharArrayMap<V> |
CharArrayMap.copy(Version matchVersion,
Map<?,? extends V> map) |
Returns a copy of the given map as a
CharArrayMap . |
static CharArraySet |
CharArraySet.copy(Version matchVersion,
Set<?> set) |
Returns a copy of the given set as a
CharArraySet . |
static boolean |
StopFilter.getEnablePositionIncrementsVersionDefault(Version matchVersion) |
Deprecated.
use
StopFilter(Version, TokenStream, Set) instead |
static CharArraySet |
WordlistLoader.getSnowballWordSet(Reader reader,
Version matchVersion) |
Reads stopwords from a stopword list in Snowball format.
|
static CharArraySet |
WordlistLoader.getWordSet(Reader reader,
String comment,
Version matchVersion) |
Reads lines from a Reader and adds every non-comment line as an entry to a CharArraySet (omitting
leading and trailing whitespace).
|
static CharArraySet |
WordlistLoader.getWordSet(Reader reader,
Version matchVersion) |
Reads lines from a Reader and adds every line as an entry to a CharArraySet (omitting
leading and trailing whitespace).
|
protected static CharArraySet |
StopwordAnalyzerBase.loadStopwordSet(File stopwords,
Version matchVersion) |
Creates a CharArraySet from a file.
|
protected static CharArraySet |
StopwordAnalyzerBase.loadStopwordSet(Reader stopwords,
Version matchVersion) |
Creates a CharArraySet from a file.
|
static Set<Object> |
StopFilter.makeStopSet(Version matchVersion,
String... stopWords) |
Builds a Set from an array of stop words,
appropriate for passing into the StopFilter constructor.
|
static Set<Object> |
StopFilter.makeStopSet(Version matchVersion,
String[] stopWords,
boolean ignoreCase) |
Creates a stopword set from the given stopword array.
|
static Set<Object> |
StopFilter.makeStopSet(Version matchVersion,
List<?> stopWords) |
Builds a Set from an array of stop words,
appropriate for passing into the StopFilter constructor.
|
static Set<Object> |
StopFilter.makeStopSet(Version matchVersion,
List<?> stopWords,
boolean ignoreCase) |
Creates a stopword set from the given stopword list.
|
Constructor | Description |
---|---|
CharArrayMap(Version matchVersion,
int startSize,
boolean ignoreCase) |
Create map with enough capacity to hold startSize terms
|
CharArrayMap(Version matchVersion,
Map<?,? extends V> c,
boolean ignoreCase) |
Creates a map from the mappings in another map.
|
CharArraySet(Version matchVersion,
int startSize,
boolean ignoreCase) |
Create set with enough capacity to hold startSize terms
|
CharArraySet(Version matchVersion,
Collection<?> c,
boolean ignoreCase) |
Creates a set from a Collection of objects.
|
CharTokenizer(Version matchVersion,
Reader input) |
Creates a new
CharTokenizer instance |
CharTokenizer(Version matchVersion,
AttributeSource.AttributeFactory factory,
Reader input) |
Creates a new
CharTokenizer instance |
CharTokenizer(Version matchVersion,
AttributeSource source,
Reader input) |
Creates a new
CharTokenizer instance |
LetterTokenizer(Version matchVersion,
Reader in) |
Construct a new LetterTokenizer.
|
LetterTokenizer(Version matchVersion,
AttributeSource.AttributeFactory factory,
Reader in) |
Construct a new LetterTokenizer using a given
AttributeSource.AttributeFactory . |
LetterTokenizer(Version matchVersion,
AttributeSource source,
Reader in) |
Construct a new LetterTokenizer using a given
AttributeSource . |
LowerCaseFilter(Version matchVersion,
TokenStream in) |
Create a new LowerCaseFilter, that normalizes token text to lower case.
|
LowerCaseTokenizer(Version matchVersion,
Reader in) |
Construct a new LowerCaseTokenizer.
|
LowerCaseTokenizer(Version matchVersion,
AttributeSource.AttributeFactory factory,
Reader in) |
Construct a new LowerCaseTokenizer using a given
AttributeSource.AttributeFactory . |
LowerCaseTokenizer(Version matchVersion,
AttributeSource source,
Reader in) |
Construct a new LowerCaseTokenizer using a given
AttributeSource . |
SimpleAnalyzer(Version matchVersion) |
Creates a new
SimpleAnalyzer |
StopAnalyzer(Version matchVersion) |
Builds an analyzer which removes words in
StopAnalyzer.ENGLISH_STOP_WORDS_SET . |
StopAnalyzer(Version matchVersion,
File stopwordsFile) |
Builds an analyzer with the stop words from the given file.
|
StopAnalyzer(Version matchVersion,
Reader stopwords) |
Builds an analyzer with the stop words from the given reader.
|
StopAnalyzer(Version matchVersion,
Set<?> stopWords) |
Builds an analyzer with the stop words from the given set.
|
StopFilter(Version matchVersion,
TokenStream in,
Set<?> stopWords) |
Constructs a filter which removes words from the input TokenStream that are
named in the Set.
|
StopFilter(Version matchVersion,
TokenStream input,
Set<?> stopWords,
boolean ignoreCase) |
Deprecated.
Use
StopFilter(Version, TokenStream, Set) instead |
StopwordAnalyzerBase(Version version) |
Creates a new Analyzer with an empty stopword set
|
StopwordAnalyzerBase(Version version,
Set<?> stopwords) |
Creates a new instance initialized with the given stopword set
|
WhitespaceAnalyzer(Version matchVersion) |
Creates a new
WhitespaceAnalyzer |
WhitespaceTokenizer(Version matchVersion,
Reader in) |
Construct a new WhitespaceTokenizer.
|
WhitespaceTokenizer(Version matchVersion,
AttributeSource.AttributeFactory factory,
Reader in) |
Construct a new WhitespaceTokenizer using a given
AttributeSource.AttributeFactory . |
WhitespaceTokenizer(Version matchVersion,
AttributeSource source,
Reader in) |
Construct a new WhitespaceTokenizer using a given
AttributeSource . |
Constructor | Description |
---|---|
ClassicAnalyzer(Version matchVersion) |
Builds an analyzer with the default stop words (
ClassicAnalyzer.STOP_WORDS_SET ). |
ClassicAnalyzer(Version matchVersion,
File stopwords) |
Deprecated.
Use
ClassicAnalyzer(Version, Reader) instead. |
ClassicAnalyzer(Version matchVersion,
Reader stopwords) |
Builds an analyzer with the stop words from the given reader.
|
ClassicAnalyzer(Version matchVersion,
Set<?> stopWords) |
Builds an analyzer with the given stop words.
|
ClassicTokenizer(Version matchVersion,
Reader input) |
Creates a new instance of the
ClassicTokenizer . |
ClassicTokenizer(Version matchVersion,
AttributeSource.AttributeFactory factory,
Reader input) |
Creates a new ClassicTokenizer with a given
AttributeSource.AttributeFactory |
ClassicTokenizer(Version matchVersion,
AttributeSource source,
Reader input) |
Creates a new ClassicTokenizer with a given
AttributeSource . |
StandardAnalyzer(Version matchVersion) |
Builds an analyzer with the default stop words (
StandardAnalyzer.STOP_WORDS_SET ). |
StandardAnalyzer(Version matchVersion,
File stopwords) |
Deprecated.
Use
StandardAnalyzer(Version, Reader) instead. |
StandardAnalyzer(Version matchVersion,
Reader stopwords) |
Builds an analyzer with the stop words from the given reader.
|
StandardAnalyzer(Version matchVersion,
Set<?> stopWords) |
Builds an analyzer with the given stop words.
|
StandardFilter(Version matchVersion,
TokenStream in) |
|
StandardTokenizer(Version matchVersion,
Reader input) |
Creates a new instance of the
StandardTokenizer . |
StandardTokenizer(Version matchVersion,
AttributeSource.AttributeFactory factory,
Reader input) |
Creates a new StandardTokenizer with a given
AttributeSource.AttributeFactory |
StandardTokenizer(Version matchVersion,
AttributeSource source,
Reader input) |
Creates a new StandardTokenizer with a given
AttributeSource . |
UAX29URLEmailAnalyzer(Version matchVersion) |
Builds an analyzer with the default stop words (
UAX29URLEmailAnalyzer.STOP_WORDS_SET ). |
UAX29URLEmailAnalyzer(Version matchVersion,
Reader stopwords) |
Builds an analyzer with the stop words from the given reader.
|
UAX29URLEmailAnalyzer(Version matchVersion,
Set<?> stopWords) |
Builds an analyzer with the given stop words.
|
UAX29URLEmailTokenizer(Version matchVersion,
Reader input) |
Creates a new instance of the UAX29URLEmailTokenizer.
|
UAX29URLEmailTokenizer(Version matchVersion,
AttributeSource.AttributeFactory factory,
Reader input) |
Creates a new UAX29URLEmailTokenizer with a given
AttributeSource.AttributeFactory |
UAX29URLEmailTokenizer(Version matchVersion,
AttributeSource source,
Reader input) |
Creates a new UAX29URLEmailTokenizer with a given
AttributeSource . |
Constructor | Description |
---|---|
IndexUpgrader(Directory dir,
Version matchVersion) |
Creates index upgrader on the given directory, using an
IndexWriter using the given
matchVersion . |
IndexUpgrader(Directory dir,
Version matchVersion,
PrintStream infoStream,
boolean deletePriorCommits) |
Creates index upgrader on the given directory, using an
IndexWriter using the given
matchVersion . |
IndexWriterConfig(Version matchVersion,
Analyzer analyzer) |
|
PersistentSnapshotDeletionPolicy(IndexDeletionPolicy primary,
Directory dir,
IndexWriterConfig.OpenMode mode,
Version matchVersion) |
PersistentSnapshotDeletionPolicy wraps another
IndexDeletionPolicy to enable flexible snapshotting. |
Modifier and Type | Method | Description |
---|---|---|
static Query |
MultiFieldQueryParser.parse(Version matchVersion,
String[] queries,
String[] fields,
Analyzer analyzer) |
Parses a query which searches on the fields specified.
|
static Query |
MultiFieldQueryParser.parse(Version matchVersion,
String[] queries,
String[] fields,
BooleanClause.Occur[] flags,
Analyzer analyzer) |
Parses a query, searching on the fields specified.
|
static Query |
MultiFieldQueryParser.parse(Version matchVersion,
String query,
String[] fields,
BooleanClause.Occur[] flags,
Analyzer analyzer) |
Parses a query, searching on the fields specified.
|
Constructor | Description |
---|---|
MultiFieldQueryParser(Version matchVersion,
String[] fields,
Analyzer analyzer) |
Creates a MultiFieldQueryParser.
|
MultiFieldQueryParser(Version matchVersion,
String[] fields,
Analyzer analyzer,
Map<String,Float> boosts) |
Creates a MultiFieldQueryParser.
|
QueryParser(Version matchVersion,
String f,
Analyzer a) |
Constructs a query parser.
|
Modifier and Type | Method | Description |
---|---|---|
static Version |
Version.valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Version[] |
Version.values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method | Description |
---|---|---|
static CharacterUtils |
CharacterUtils.getInstance(Version matchVersion) |
Returns a
CharacterUtils implementation according to the given
Version instance. |
boolean |
Version.onOrAfter(Version other) |
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.