Skip to content

Each entry in a posting list is a primary key plus a payload. The payload depends on the kind of list (crates/strata-sql/src/postings.rs). The same payload appears in PENDING entries and inside posting blocks.

List Payload
Trigram one varint
Document list one varint
Full-text term varint tf ‖ varint len ‖ [tf position varints]
  • tf is the term frequency: how many times the term occurs in the row.
  • len is a varint length that bounds the positions.
  • The position list is optional (SPEC V734). When present it has tf varints. The first is an absolute position, and each later one is a delta that must be greater than 0. Every position must be less than len. Writers store positions only when there are exactly tf of them and at most 65536.

In a revision 5 block the positions are not stored inline. The inner block holds (key, tf, len) and a presence bitmap says which entries have positions.