org.apache.lucene.index
Interface TermPositions
- TermDocs
- FilterIndexReader.FilterTermPositions, MultipleTermPositions
public interface TermPositions
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.
IndexReader.termPositions
int | nextPosition() - Returns next position in the current document.
|
nextPosition
public int nextPosition()
throws IOException
Returns next position in the current document. It is an error to call
this more than
freq()
times
without calling
next()
This is
invalid until
next()
is called for
the first time.
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.