在fts3.c的开头的注释里面就讲解了fts使用到的各个数据块的结构。
1, doclist的结构说明,
**
** A doclist is stored like this:**
** array {
** varint docid;
** array { (position list for column 0)
** varint position; (2 more than the delta from previous position)
** }
** array {
** varint POS_COLUMN; (marks start of position list for new column)
** varint column; (index of new column)
** array {
** varint position; (2 more than the delta from previous position)
** }
** }
** varint POS_END; (marks end of positions for this document.
** }
**