Database/Words

Functions in this category are used to manipulate and update the vocabulary part of an lq-text index, and also deal with the low-level binary representation of lists of matches.
The pblock structure (referred to chiefly in this section) is defined in h/pblock.h; it is an in-memory representation of the data stored in one or more physical database blocks for a given word.
The t_WID type is a Word IDentifier: each distinct word in the vocabulary is assigned a unique number (a C unsigned long, starting at one rather than zero). This number is used as an index into a fixed-record-size file, `widindex'. The record contained there stores the first few matches for the word, and possibly a pointer into the overflow file, `data', where the rest of the matches are stored.