org.apache.lucene.analysis
Class StopAnalyzer
public final class StopAnalyzer
Filters LetterTokenizer with LowerCaseFilter and StopFilter.
static String[] | ENGLISH_STOP_WORDS - An array containing some common English words that are not usually useful
for searching.
|
StopAnalyzer() - Builds an analyzer which removes words in ENGLISH_STOP_WORDS.
|
StopAnalyzer(File stopwordsFile) - Builds an analyzer with the stop words from the given file.
|
StopAnalyzer(Reader stopwords) - Builds an analyzer with the stop words from the given reader.
|
StopAnalyzer(Set stopWords) - Builds an analyzer with the stop words from the given set.
|
StopAnalyzer(String[] stopWords) - Builds an analyzer which removes words in the provided array.
|
ENGLISH_STOP_WORDS
public static final String[] ENGLISH_STOP_WORDS
An array containing some common English words that are not usually useful
for searching.
StopAnalyzer
public StopAnalyzer()
Builds an analyzer which removes words in ENGLISH_STOP_WORDS.
StopAnalyzer
public StopAnalyzer(File stopwordsFile)
throws IOException
Builds an analyzer with the stop words from the given file.
StopAnalyzer
public StopAnalyzer(Reader stopwords)
throws IOException
Builds an analyzer with the stop words from the given reader.
StopAnalyzer
public StopAnalyzer(Set stopWords)
Builds an analyzer with the stop words from the given set.
StopAnalyzer
public StopAnalyzer(String[] stopWords)
Builds an analyzer which removes words in the provided array.
tokenStream
public TokenStream tokenStream(String fieldName,
Reader reader)
Filters LowerCaseTokenizer with StopFilter.
- tokenStream in interface Analyzer
Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.