org.apache.lucene.analysis.phonetic

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>
    See Also:
    DaitchMokotoffSoundexFilter