mirror of https://github.com/apache/lucene.git
- Cosmetics
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@641497 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8af3598b74
commit
758e123591
|
@ -100,14 +100,15 @@ public final class StopFilter extends TokenFilter {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param stopWords
|
* @param stopWords
|
||||||
* @param ignoreCase If true, all words are lower cased first.
|
* @param ignoreCase If true, all words are lower cased first.
|
||||||
* @return a Set containing the words
|
* @return a Set containing the words
|
||||||
*/
|
*/
|
||||||
public static final Set makeStopSet(String[] stopWords, boolean ignoreCase) {
|
public static final Set makeStopSet(String[] stopWords, boolean ignoreCase) {
|
||||||
CharArraySet stopSet = new CharArraySet(stopWords.length, ignoreCase);
|
CharArraySet stopSet = new CharArraySet(stopWords.length, ignoreCase);
|
||||||
stopSet.addAll(Arrays.asList(stopWords));
|
stopSet.addAll(Arrays.asList(stopWords));
|
||||||
return stopSet; }
|
return stopSet;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the next input Token whose termText() is not a stop word.
|
* Returns the next input Token whose termText() is not a stop word.
|
||||||
|
|
Loading…
Reference in New Issue