Class DelimitedBoostTokenFilter

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

    public final class DelimitedBoostTokenFilter
    extends TokenFilter
    Characters before the delimiter are the "token", those after are the boost.

    For example, if the delimiter is '|', then for the string "foo|0.7", foo is the token and 0.7 is the boost.

    Note make sure your Tokenizer doesn't split on the delimiter, or this won't work