Database specification#
This is writing about specification of generated database.
Base#
Using SQLite and FTS5 extension. Details are described in SQLite website.
atsphinx-sqlite3fts run these strategy.
Use
trigramtokenizer to search Japanese text (not work withunicode61).Split document table and searching virtual table (document has
pagethat is not target of search).
Tables#
atsphinx-sqlite3fts use peewee to manage database schemas.
document table#
This table contains all of property for refer to documents.
section table#
This table contains all of property for refer to section of documents.
content table#
This table is registered only targets of full-text searching. Currently, this contains title and body of documents.
body is plain text to pick all text contents from doctree.
Relation#
section.document_idis as foreign key todocument.id.document-fts.rowidis as foreign key tosection.id.
You can use JOIN statement some tables.