Apache Lucene.Net 2.4.0 Class Library API

StandardAnalyzer.SetMaxTokenLength Method 

Set maximum allowed token length. If a token is seen that exceeds this length then it is discarded. This setting only takes effect the next time tokenStream or reusableTokenStream is called.

public virtual void SetMaxTokenLength(
   int length
);

See Also

StandardAnalyzer Class | Lucene.Net.Analysis.Standard Namespace