Posting payloads
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] |
Full-text payload
Section titled “Full-text payload”tfis the term frequency: how many times the term occurs in the row.lenis a varint length that bounds the positions.- The position list is optional (SPEC V734). When present it has
tfvarints. The first is an absolute position, and each later one is a delta that must be greater than 0. Every position must be less thanlen. Writers store positions only when there are exactlytfof 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.