Class TypeAsSynonymFilter

    • Constructor Detail

      • TypeAsSynonymFilter

        public TypeAsSynonymFilter​(TokenStream input)
      • TypeAsSynonymFilter

        public TypeAsSynonymFilter​(TokenStream input,
                                   String prefix)
        Parameters:
        input - input tokenstream
        prefix - Prepend this string to every token type emitted as token text. If null, nothing will be prepended.
      • TypeAsSynonymFilter

        public TypeAsSynonymFilter​(TokenStream input,
                                   String prefix,
                                   Set<String> ignore,
                                   int synFlagsMask)
        Parameters:
        input - input tokenstream
        prefix - Prepend this string to every token type emitted as token text. If null, nothing will be prepended.
        ignore - types to ignore (and not convert to a synonym)
        synFlagsMask - a mask to control what flags are propagated to the synonym.