org.apache.solr.analysis
Class KeepWordFilterFactory
java.lang.Object
org.apache.solr.analysis.BaseTokenFilterFactory
org.apache.solr.analysis.KeepWordFilterFactory
- All Implemented Interfaces:
- TokenFilterFactory, ResourceLoaderAware
public class KeepWordFilterFactory
- extends BaseTokenFilterFactory
- implements ResourceLoaderAware
- Since:
- solr 1.3
- Version:
- $Id: KeepWordFilterFactory.java 761036 2009-04-01 20:07:44Z gsingers $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeepWordFilterFactory
public KeepWordFilterFactory()
inform
public void inform(org.apache.solr.common.ResourceLoader loader)
- Specified by:
inform
in interface ResourceLoaderAware
setWords
public void setWords(Set<String> words)
- Set the keep word list.
NOTE: if ignoreCase==true, the words are expected to be lowercase
setIgnoreCase
public void setIgnoreCase(boolean ignoreCase)
create
public KeepWordFilter create(TokenStream input)
- Description copied from interface:
TokenFilterFactory
- Transform the specified input TokenStream
- Specified by:
create
in interface TokenFilterFactory
getWords
public CharArraySet getWords()
isIgnoreCase
public boolean isIgnoreCase()
Copyright © 2011 Apache Software Foundation. All Rights Reserved.