|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.index.LuceneStopWords
public final class LuceneStopWords
This class simply loads a hashmap of Lucene stop words from the array given by StopAnalyzer. This way a single map lookup can be used instead of iterating over the array every time.
Field Summary | |
---|---|
static String[] |
ENGLISH_STOP_WORDS
Keep a copy of the stop words here in case the Lucene package is not available |
Constructor Summary | |
---|---|
LuceneStopWords()
Constructor for the LuceneStopWords object |
Method Summary | |
---|---|
static boolean |
isStopWord(String word)
Indicates whether the given word is a Lucene stop word |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String[] ENGLISH_STOP_WORDS
Constructor Detail |
---|
public LuceneStopWords()
Method Detail |
---|
public static boolean isStopWord(String word)
word
-
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |