public interface PositionIncrementAttribute extends Attribute
The default value is one.
Some common uses for this are:
PostingsEnum
Modifier and Type | Method and 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 termIllegalArgumentException
- if positionIncrement
is negative.getPositionIncrement()
int getPositionIncrement()
setPositionIncrement(int)
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.