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.TokenattributesAssembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
| C# |
|---|
public virtual void SetTermLength( int length ) |
| Visual Basic |
|---|
Public Overridable Sub SetTermLength ( _ length As Integer _ ) |
| Visual C++ |
|---|
public: virtual void SetTermLength( int length ) |
Parameters
- length
- Type: System..::..Int32
the truncated length