Class PostingsConsumer
Abstract API that consumes postings for an individual term.
The lifecycle is:
- PostingsConsumer is returned for each term by StartTerm(BytesRef).
- StartDoc(Int32, Int32) is called for each document where the term occurs, specifying id and term frequency for that document.
- If positions are enabled for the field, then AddPosition(Int32, BytesRef, Int32, Int32) will be called for each occurrence in the document.
- FinishDoc() is called when the producer is done adding positions to the document.
@lucene.experimental
Inheritance
Assembly: DistributedLucene.Net.dll
Syntax
public abstract class PostingsConsumer : object
Constructors
Name | Description |
---|---|
PostingsConsumer() | Sole constructor. (For invocation by subclass constructors, typically implicit.) |
Methods
Name | Description |
---|---|
AddPosition(Int32, BytesRef, Int32, Int32) | Add a new position & payload, and start/end offset. A
|
FinishDoc() | Called when we are done adding positions & payloads for each doc. |
Merge(MergeState, IndexOptions, DocsEnum, FixedBitSet) | Default merge impl: append documents, mapping around deletes. |
StartDoc(Int32, Int32) | Adds a new doc in this term.
|