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.

Namespace: Lucene.Net.Analysis.Tokenattributes
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
void SetTermLength(
	int length
)
Visual Basic
Sub SetTermLength ( _
	length As Integer _
)
Visual C++
void SetTermLength(
	int length
)

Parameters

length
Type: System..::..Int32
the truncated length

See Also