FileDocCategorySizeDatePackage
TermPositions.javaAPI DocApache Lucene 1.91350Mon Feb 20 09:20:14 GMT 2006org.apache.lucene.index

TermPositions

public interface TermPositions implements TermDocs
TermPositions provides an interface for enumerating the <document, frequency, <position>* > tuples for a term.

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.

see
IndexReader#termPositions()

Fields Summary
Constructors Summary
Methods Summary
public intnextPosition()
Returns next position in the current document. It is an error to call this more than {@link #freq()} times without calling {@link #next()}

This is invalid until {@link #next()} is called for the first time.