Class KeepWordFilterFactory

  • All Implemented Interfaces:
    ResourceLoaderAware

    public class KeepWordFilterFactory
    extends AbstractWordsFileFilterFactory
    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 (case-insensitive: if the name is 'htmlStrip', 'htmlstrip' can be used when looking up the service).
    "keepWord"