DocsAndPositionsEnum

Method Detail

nextPosition

Returns the next position. You should only call this
up to DocsEnum.freq() times else
the behavior is not defined. If positions were not
indexed this will return -1; this only happens if
offsets were indexed and you passed needsOffset=true
when pulling the enum.