Just like {@link #getPositionIncrementGap}, except for Token offsets instead. By default this returns 1 for tokenized fields and, as if the fields were joined with an extra space character, and 0 for un-tokenized fields. This method is only called if the field produced at least one token for indexing.

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

Syntax

C#
public virtual int GetOffsetGap(
	Fieldable field
)
Visual Basic
Public Overridable Function GetOffsetGap ( _
	field As Fieldable _
) As Integer
Visual C++
public:
virtual int GetOffsetGap(
	Fieldable^ field
)

Parameters

field
Type: Lucene.Net.Documents..::..Fieldable
the field just indexed

Return Value

offset gap, added to the next token emitted from {@link #TokenStream(String,Reader)}

See Also