Skip to content

A posting list maps a search term to the rows that contain it. LUMA stores two kinds: trigram lists for the trigram index kind and full-text lists for the full-text index kind. Both are ordinary entries in the keyspace, so they live in SEAM data files like any other key and value (crates/strata-sql/src/postings.rs).

  • Keyspace 0x04 holds trigram postings.
  • Keyspace 0x05 holds full-text postings.

See the keyspace map for every first byte.

Each list is split into blocks. The value of one block is a compact, sorted run of keys with payloads, and it exists in five revisions. A reader tells them apart from the first bytes of the value, see Block head.

Revision Marker Page Body in one line SEAM 1 writers
1 none (first byte not 0x00) Unmarked n entries of shared prefix, suffix and payload bytes No, read-only
2 0xE2 (or the early 0x02) Revision 2 front-coded or 9-byte numeric keys, in three modes Yes (fallback; 0x02 is read-only)
3 0xE3 Revision 3 9-byte integer keys, bit-split, with integer groups Yes, store format 2+
4 0xE4 Revision 4 tuples of 2 to 8 integer fields Yes, store format 4+
5 0xE5 Revision 5 wraps a revision 2, 3 or 4 block and adds term positions Yes, store format 4+

Markers 0xE6 to 0xEF are reserved for newer builds and are rejected with NewerFormat.

  • The value upgrade hook is applied to every Put written, so flush and compaction also repack posting blocks (SPEC V653, V656). See Migration.
  • Postings evolve additively: a new revision is a new marker byte, and old blocks are never reinterpreted (SPEC V461). See Compatibility rules.
  • A block holds at most 1024 entries and at most 4 tiers.
  • To see how a list is addressed, read Posting keys.
  • To see what one entry carries, read Posting payloads.
  • To identify a block, read Block head, then the page for the revision you found.
  • For the packed integer layout shared by revisions 3 and 4, read Integer groups.