Package org.dlese.dpc.index
Class LuceneStopWords
java.lang.Object
org.dlese.dpc.index.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.
- Author:
- ryandear, John Weatherley
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String[]Keep a copy of the stop words here in case the Lucene package is not available -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisStopWord(String word) Indicates whether the given word is a Lucene stop word
-
Field Details
-
ENGLISH_STOP_WORDS
Keep a copy of the stop words here in case the Lucene package is not available
-
-
Constructor Details
-
LuceneStopWords
public LuceneStopWords()Constructor for the LuceneStopWords object
-
-
Method Details
-
isStopWord
Indicates whether the given word is a Lucene stop word- Parameters:
word-- Returns:
- The luceneStopWord value
-