org.apache.solr.analysis
Class CommonGramsQueryFilterFactory

java.lang.Object
  extended by org.apache.solr.analysis.BaseTokenFilterFactory
      extended by org.apache.solr.analysis.CommonGramsQueryFilterFactory
All Implemented Interfaces:
TokenFilterFactory, ResourceLoaderAware

public class CommonGramsQueryFilterFactory
extends BaseTokenFilterFactory
implements ResourceLoaderAware

Construct CommonGramsQueryFilter This is pretty close to a straight copy from StopFilterFactory


Field Summary
 
Fields inherited from class org.apache.solr.analysis.BaseTokenFilterFactory
args, log
 
Constructor Summary
CommonGramsQueryFilterFactory()
           
 
Method Summary
 CommonGramsQueryFilter create(TokenStream input)
          Create a CommonGramsFilter and wrap it with a CommonGramsQueryFilter
 Set getCommonWords()
           
 void inform(ResourceLoader loader)
           
 boolean isIgnoreCase()
           
 
Methods inherited from class org.apache.solr.analysis.BaseTokenFilterFactory
getArgs, getBoolean, getBoolean, getInt, getInt, getInt, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonGramsQueryFilterFactory

public CommonGramsQueryFilterFactory()
Method Detail

inform

public void inform(ResourceLoader loader)
Specified by:
inform in interface ResourceLoaderAware

isIgnoreCase

public boolean isIgnoreCase()

getCommonWords

public Set getCommonWords()

create

public CommonGramsQueryFilter create(TokenStream input)
Create a CommonGramsFilter and wrap it with a CommonGramsQueryFilter

Specified by:
create in interface TokenFilterFactory


Copyright © 2011 Apache Software Foundation. All Rights Reserved.