Trims leading and trailing whitespace from Tokens in the stream.

As of Lucene 4.4, this filter does not support updateOffsets=true anymore as it can lead to broken token streams.

Inheritance: TokenFilter
Ejemplo n.º 1
0
	  public override TrimFilter create(TokenStream input)
	  {
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @SuppressWarnings("deprecation") final org.apache.lucene.analysis.miscellaneous.TrimFilter filter = new org.apache.lucene.analysis.miscellaneous.TrimFilter(luceneMatchVersion, input, updateOffsets);
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
		  TrimFilter filter = new TrimFilter(luceneMatchVersion, input, updateOffsets);
		return filter;
	  }