Class DaitchMokotoffSoundexFilter

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public final class DaitchMokotoffSoundexFilter
    extends TokenFilter
    Create tokens for phonetic matches based on Daitch–Mokotoff Soundex.
    WARNING: This API is experimental and might change in incompatible ways in the next release.
    • Field Detail

      • inject

        protected boolean inject
        true if encoded tokens should be added as synonyms
      • encoder

        protected org.apache.commons.codec.language.DaitchMokotoffSoundex encoder
        phonetic encoder
    • Constructor Detail

      • DaitchMokotoffSoundexFilter

        public DaitchMokotoffSoundexFilter​(TokenStream in,
                                           boolean inject)
        Creates a DaitchMokotoffSoundexFilter by either adding encoded forms as synonyms ( inject=true) or replacing them.