You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2014/09/16 03:21:41 UTC
svn commit: r1625197 - in /lucene/dev/trunk/lucene/suggest: build.xml
src/java/org/apache/lucene/search/suggest/analyzing/SuggestStopFilterFactory.java
Author: sarowe
Date: Tue Sep 16 01:21:41 2014
New Revision: 1625197
URL: http://svn.apache.org/r1625197
Log:
LUCENE-5820: license exception + javadocs
Modified:
lucene/dev/trunk/lucene/suggest/build.xml
lucene/dev/trunk/lucene/suggest/src/java/org/apache/lucene/search/suggest/analyzing/SuggestStopFilterFactory.java
Modified: lucene/dev/trunk/lucene/suggest/build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/suggest/build.xml?rev=1625197&r1=1625196&r2=1625197&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/suggest/build.xml (original)
+++ lucene/dev/trunk/lucene/suggest/build.xml Tue Sep 16 01:21:41 2014
@@ -24,7 +24,7 @@
</description>
<!-- 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"/>
Modified: lucene/dev/trunk/lucene/suggest/src/java/org/apache/lucene/search/suggest/analyzing/SuggestStopFilterFactory.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/suggest/src/java/org/apache/lucene/search/suggest/analyzing/SuggestStopFilterFactory.java?rev=1625197&r1=1625196&r2=1625197&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/suggest/src/java/org/apache/lucene/search/suggest/analyzing/SuggestStopFilterFactory.java (original)
+++ lucene/dev/trunk/lucene/suggest/src/java/org/apache/lucene/search/suggest/analyzing/SuggestStopFilterFactory.java Tue Sep 16 01:21:41 2014
@@ -73,7 +73,9 @@ import java.io.IOException;
* </ul>
*/
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";
+ /** multiple words may be specified on each line, trailing comments start with "|" */
public static final String FORMAT_SNOWBALL = "snowball";
private CharArraySet stopWords;
@@ -110,10 +112,12 @@ import java.io.IOException;
}
}
+ /** Whether or not to ignore case */
public boolean isIgnoreCase() {
return ignoreCase;
}
+ /** Returns the configured stopword set */
public CharArraySet getStopWords() {
return stopWords;
}