org.apache.solr.analysis
Class KeepWordFilter
java.lang.Object
org.apache.lucene.analysis.TokenStream
org.apache.lucene.analysis.TokenFilter
org.apache.solr.analysis.KeepWordFilter
public final class KeepWordFilter
- extends org.apache.lucene.analysis.TokenFilter
A TokenFilter that only keeps tokens with text contained in the
required words. This filter behaves like the inverse of StopFilter.
- Since:
- solr 1.3
- Version:
- $Id: KeepWordFilter.java 643465 2008-04-01 16:10:19Z gsingers $
| Fields inherited from class org.apache.lucene.analysis.TokenFilter |
input |
|
Constructor Summary |
KeepWordFilter(org.apache.lucene.analysis.TokenStream in,
Set<String> words,
boolean ignoreCase)
|
|
Method Summary |
org.apache.lucene.analysis.Token |
next(org.apache.lucene.analysis.Token in)
|
| Methods inherited from class org.apache.lucene.analysis.TokenFilter |
close, reset |
| Methods inherited from class org.apache.lucene.analysis.TokenStream |
next |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeepWordFilter
public KeepWordFilter(org.apache.lucene.analysis.TokenStream in,
Set<String> words,
boolean ignoreCase)
next
public final org.apache.lucene.analysis.Token next(org.apache.lucene.analysis.Token in)
throws IOException
- Overrides:
next in class org.apache.lucene.analysis.TokenStream
- Throws:
IOException
Copyright © 2009 Apache Software Foundation. All Rights Reserved.