public interface TermPositions extends TermDocs
The document and frequency are the same as for a TermDocs. The positions portion lists the ordinal positions of each occurrence of a term in a document.
| Modifier and Type | Method and Description |
|---|---|
int |
nextPosition()
Returns next position in the current document.
|
int nextPosition()
throws IOException
TermDocs.freq() times
without calling TermDocs.next() This is
invalid until TermDocs.next() is called for
the first time.
IOExceptionCopyright © 2024 GATE. All rights reserved.