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 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 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeepWordFilter
public KeepWordFilter(TokenStream in,
Set<String> words,
boolean ignoreCase)
next
public final Token next(Token in)
throws IOException
- Overrides:
next
in class TokenStream
- Throws:
IOException
Copyright © 2008 Apache Software Foundation. All Rights Reserved.