Example usage for Java org.apache.lucene.index PostingsEnum fields, constructors, methods, implement or subclass
The text is from its open source code.
short | NONE Flag to pass to TermsEnum#postings(PostingsEnum,int) if you don't require per-document postings in the returned enum. |
short | FREQS Flag to pass to TermsEnum#postings(PostingsEnum,int) if you require term frequencies in the returned enum. |
short | POSITIONS Flag to pass to TermsEnum#postings(PostingsEnum,int) if you require term positions in the returned enum. |
short | OFFSETS Flag to pass to TermsEnum#postings(PostingsEnum,int) if you require offsets in the returned enum. |
short | PAYLOADS Flag to pass to TermsEnum#postings(PostingsEnum,int) if you require payloads in the returned enum. |
short | ALL Flag to pass to TermsEnum#postings(PostingsEnum,int) to get positions, payloads and offsets in the returned enum |
PostingsEnum() Sole constructor. |
int | advance(int target) Advances to the first beyond the current whose document number is greater than or equal to target, and returns the document number itself. |
int | docID() Returns the following:
|
int | endOffset() Returns end offset for the current position, or -1 if offsets were not indexed. |
int | freq() Returns term frequency in the current document, or 1 if the field was indexed with IndexOptions#DOCS . |
BytesRef | getPayload() Returns the payload at this position, or null if no payload was indexed. |
int | nextDoc() Advances to the next document in the set and returns the doc it is currently on, or #NO_MORE_DOCS if there are no more docs in the set. NOTE: after the iterator has exhausted you should not call this method, as it may result in unpredicted behavior. |
int | nextPosition() Returns the next position, or -1 if positions were not indexed. |
int | startOffset() Returns start offset for the current position, or -1 if offsets were not indexed. |