|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PositionIncrementAttribute
Determines the position of this token relative to the previous Token in a TokenStream, used in phrase searching.
The default value is one.
Some common uses for this are:
DocsAndPositionsEnum
Method Summary | |
---|---|
int |
getPositionIncrement()
Returns the position increment of this Token. |
void |
setPositionIncrement(int positionIncrement)
Set the position increment. |
Method Detail |
---|
void setPositionIncrement(int positionIncrement)
positionIncrement
- the distance from the prior term
IllegalArgumentException
- if positionIncrement
is negative.getPositionIncrement()
int getPositionIncrement()
setPositionIncrement(int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |