Apache Lucene.Net 2.4.0 Class Library API

Token.SetTermLength Method 

Set number of valid characters (length of the term) in the termBuffer array. Use this to truncate the termBuffer or to synchronize with external manipulation of the termBuffer. Note: to grow the size of the array use {@link #resizeTermBuffer(int)} first.

public void SetTermLength(
   int length
);

Parameters

length
the truncated length

See Also

Token Class | Lucene.Net.Analysis Namespace