Class TypeTokenFilterFactory

  • All Implemented Interfaces:
    ResourceLoaderAware

    public class TypeTokenFilterFactory
    extends TokenFilterFactory
    implements ResourceLoaderAware
    Factory class for TypeTokenFilter.
     <fieldType name="chars" class="solr.TextField" positionIncrementGap="100">
       <analyzer>
         <tokenizer class="solr.StandardTokenizerFactory"/>
         <filter class="solr.TypeTokenFilterFactory" types="stoptypes.txt"
                       useWhitelist="false"/>
       </analyzer>
     </fieldType>
    • Constructor Detail

      • TypeTokenFilterFactory

        public TypeTokenFilterFactory​(java.util.Map<java.lang.String,​java.lang.String> args)
        Creates a new TypeTokenFilterFactory
    • Method Detail

      • inform

        public void inform​(ResourceLoader loader)
                    throws java.io.IOException
        Description copied from interface: ResourceLoaderAware
        Initializes this component with the provided ResourceLoader (used for loading classes, files, etc).
        Specified by:
        inform in interface ResourceLoaderAware
        Throws:
        java.io.IOException
      • isEnablePositionIncrements

        public boolean isEnablePositionIncrements()
      • getStopTypes

        public java.util.Set<java.lang.String> getStopTypes()