AttributePositionIncrementAttributeImpl, Tokenpublic interface PositionIncrementAttribute extends Attribute
The default value is one.
Some common uses for this are:
TermPositions| Modifier and Type | Method | Description |
|---|---|---|
int |
getPositionIncrement() |
Returns the position increment of this Token.
|
void |
setPositionIncrement(int positionIncrement) |
Set the position increment.
|
void setPositionIncrement(int positionIncrement)
positionIncrement - the distance from the prior termint getPositionIncrement()
setPositionIncrement(int)Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.