@Override public TrimFilter create(TokenStream input) { if (luceneMatchVersion == null) { return new TrimFilter(input); } @SuppressWarnings("deprecation") final TrimFilter filter = new TrimFilter(luceneMatchVersion, input, updateOffsets); return filter; }
@Override public TokenStream create(TokenStream tokenStream) { if (version.onOrAfter(Version.LUCENE_4_4_0)) { return new TrimFilter(tokenStream); } else { @SuppressWarnings("deprecation") final TokenStream filter = new Lucene43TrimFilter(tokenStream, updateOffsets); return filter; } }
@Override public TokenStream create(TokenStream tokenStream) { return new TrimFilter(tokenStream); }
@Override public TrimFilter create(TokenStream input) { return new TrimFilter(input, updateOffsets); }
@Override public TrimFilter create(TokenStream input) { @SuppressWarnings("deprecation") final TrimFilter filter = new TrimFilter(luceneMatchVersion, input, updateOffsets); return filter; }