Class DaitchMokotoffSoundexFilterFactory


  • public class DaitchMokotoffSoundexFilterFactory
    extends TokenFilterFactory
    Factory for DaitchMokotoffSoundexFilter. Create tokens based on Daitch–Mokotoff Soundex phonetic filter.

    This takes one optional argument:

    inject
    (default=true) add tokens to the stream with the offset=0
     <fieldType name="text_phonetic" class="solr.TextField" positionIncrementGap="100">
       <analyzer>
         <tokenizer class="solr.WhitespaceTokenizerFactory"/>
         <filter class="solr.DaitchMokotoffSoundexFilterFactory" inject="true"/>
       </analyzer>
     </fieldType>
    Since:
    5.0.0
    See Also:
    DaitchMokotoffSoundexFilter
    • Field Detail

      • INJECT

        public static final java.lang.String INJECT
        parameter name: true if encoded tokens should be added as synonyms
        See Also:
        Constant Field Values
      • inject

        final boolean inject
    • Constructor Detail

      • DaitchMokotoffSoundexFilterFactory

        public DaitchMokotoffSoundexFilterFactory​(java.util.Map<java.lang.String,​java.lang.String> args)
        Creates a new PhoneticFilterFactory