Class DictionaryCompoundWordTokenFilter

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class DictionaryCompoundWordTokenFilter
    extends CompoundWordTokenFilterBase
    A TokenFilter that decomposes compound words found in many Germanic languages.

    "Donaudampfschiff" becomes Donau, dampf, schiff so that you can find "Donaudampfschiff" even when you only enter "schiff". It uses a brute-force algorithm to achieve this.