Class KeepWordFilterFactory

  • All Implemented Interfaces:
    ResourceLoaderAware

    public class KeepWordFilterFactory
    extends TokenFilterFactory
    implements ResourceLoaderAware
    Factory for KeepWordFilter.
     <fieldType name="text_keepword" class="solr.TextField" positionIncrementGap="100">
       <analyzer>
         <tokenizer class="solr.WhitespaceTokenizerFactory"/>
         <filter class="solr.KeepWordFilterFactory" words="keepwords.txt" ignoreCase="false"/>
       </analyzer>
     </fieldType>
    Since:
    3.1
    SPI Name (Note: This is case-insensitive. e.g., if the name is 'htmlStrip', 'htmlstrip' can be used when looking up the service):
    "keepWord"