Class DaitchMokotoffSoundexFilter

All Implemented Interfaces:
Closeable, AutoCloseable, Unwrappable<TokenStream>

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 Details

    • 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 Details

    • DaitchMokotoffSoundexFilter

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