LUCENE-5820: license exception + javadocs

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1625197 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Steven Rowe 2014-09-16 01:21:41 +00:00
parent 9ab9e98843
commit deeb456560
2 changed files with 5 additions and 1 deletions

View File

@ -24,7 +24,7 @@
</description> </description>
<!-- just a list of words for testing suggesters --> <!-- just a list of words for testing suggesters -->
<property name="rat.excludes" value="**/Top50KWiki.utf8"/> <property name="rat.excludes" value="**/Top50KWiki.utf8,**/stop-snowball.txt"/>
<import file="../module-build.xml"/> <import file="../module-build.xml"/>

View File

@ -73,7 +73,9 @@ import java.io.IOException;
* </ul> * </ul>
*/ */
public class SuggestStopFilterFactory extends TokenFilterFactory implements ResourceLoaderAware { public class SuggestStopFilterFactory extends TokenFilterFactory implements ResourceLoaderAware {
/** the default format, one word per line, whole line comments start with "#" */
public static final String FORMAT_WORDSET = "wordset"; public static final String FORMAT_WORDSET = "wordset";
/** multiple words may be specified on each line, trailing comments start with "&#124;" */
public static final String FORMAT_SNOWBALL = "snowball"; public static final String FORMAT_SNOWBALL = "snowball";
private CharArraySet stopWords; private CharArraySet stopWords;
@ -110,10 +112,12 @@ import java.io.IOException;
} }
} }
/** Whether or not to ignore case */
public boolean isIgnoreCase() { public boolean isIgnoreCase() {
return ignoreCase; return ignoreCase;
} }
/** Returns the configured stopword set */
public CharArraySet getStopWords() { public CharArraySet getStopWords() {
return stopWords; return stopWords;
} }