Final touch of a shingle token before it is passed on to the consumer from method {@link #next(org.apache.lucene.analysis.Token)}. Calculates and sets type, flags, position increment, start/end offsets and weight.

Namespace: Lucene.Net.Analyzers.Shingle
Assembly: Lucene.Net.Contrib.Analyzers (in Lucene.Net.Contrib.Analyzers.dll) Version: 2.9.2.1 (2.9.2.1)

Syntax

C#
public void UpdateToken(
	Token token,
	List<Token> shingle,
	int currentPermutationStartOffset,
	List<Row> currentPermutationRows,
	List<Token> currentPermuationTokens
)
Visual Basic
Public Sub UpdateToken ( _
	token As Token, _
	shingle As List(Of Token), _
	currentPermutationStartOffset As Integer, _
	currentPermutationRows As List(Of Row), _
	currentPermuationTokens As List(Of Token) _
)
Visual C++
public:
void UpdateToken(
	Token^ token, 
	List<Token^>^ shingle, 
	int currentPermutationStartOffset, 
	List<Row^>^ currentPermutationRows, 
	List<Token^>^ currentPermuationTokens
)

Parameters

token
Type: Lucene.Net.Analysis..::..Token
Shingle Token
shingle
Type: System.Collections.Generic..::..List<(Of <(<'Token>)>)>
Tokens used to produce the shingle token.
currentPermutationStartOffset
Type: System..::..Int32
Start offset in parameter currentPermutationTokens
currentPermutationRows
Type: System.Collections.Generic..::..List<(Of <(<'Row>)>)>
index to Matrix.Column.Row from the position of tokens in parameter currentPermutationTokens
currentPermuationTokens
Type: System.Collections.Generic..::..List<(Of <(<'Token>)>)>
tokens of the current permutation of rows in the matrix.

See Also