Create a new Doc instance with given document id.
Create a new Doc instance with given document id.
the document id
the term frequency in this doc
the term text
the Lucene's PostingsEnum instance
the Lucene's Terms instance representing the term vector for this doc
the document id
the term frequency in this doc
Returns true if this Doc has offsets information else false.
Returns true if this Doc has payload else false.
Returns true if this Doc has positions information else false.
Class representing a document in the index. This holds the Lucene document id and term frequency and optionally, positions/offsets information.