Method GetOffsetGap
GetOffsetGap(IFieldable)
Just like GetPositionIncrementGap(String), 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.
Declaration
public virtual int GetOffsetGap(IFieldable field)
Parameters
Type | Name | Description |
---|---|---|
IFieldable | field | the field just indexed |
Returns
Type | Description |
---|---|
System.Int32 | offset gap, added to the next token emitted from TokenStream(String, IO.TextReader) |