geary/sql
Michael Gratton 4fe0d92147 engine: Convert from SQLite FTS3/4 to FTS5 for full-text-search
Add SQL migration that drops the old FTS4 MessageSearchTable table,
re-create as a FTS5 table, clean up the column names a bit, and adds a
flags column so unread/starred queries can be made fast.

Define a SQLite FTS5 extension function `geary_matches()` to replace
the FTS3 `offsets()` function which no longer exists in FTS5, based on
Tracker's implementation.

Update code to FTS5 conventions (docid -> rowid, etc), use new column
names, populate and update the flags column as the email's flags
change, and use new match function for getting matching tokens.

Advanced searches are probably currently broken, these will be fixed
by subsequent commits.
2021-01-19 20:48:17 +11:00
..
meson.build engine: Convert from SQLite FTS3/4 to FTS5 for full-text-search 2021-01-19 20:48:17 +11:00
version-001.sql Remove SQLHeavy: Closes #5034 2012-07-11 15:40:39 -07:00
version-002.sql Remove SQLHeavy: Closes #5034 2012-07-11 15:40:39 -07:00
version-003.sql Remove SQLHeavy: Closes #5034 2012-07-11 15:40:39 -07:00
version-004.sql Remove SQLHeavy: Closes #5034 2012-07-11 15:40:39 -07:00
version-005.sql Remove existing contact harvesting mechanism 2019-06-13 16:28:59 +10:00
version-006.sql Properly decode Unicode folder names; fix #5217 2013-02-25 15:01:37 -08:00
version-007.sql Prefetch mail in background according to age of message: Closes #6365 2013-02-25 20:18:37 -08:00
version-008.sql Add index to in_reply_to column; fix #6504 2013-03-11 14:34:33 -07:00
version-009.sql Allow external images from whitelisted senders to be displayed: Closes #5642 2013-05-14 18:07:53 -07:00
version-010.sql Closes #7120 Store and update unseen count in database 2013-06-21 18:20:56 -07:00
version-011.sql engine: Remove in-tree unicodesn stemmer 2020-10-14 20:05:15 +11:00
version-012.sql Merge branch 'master' into feature/search 2013-06-24 17:54:41 -07:00
version-013.sql Non-image inline attachments not shown in client: Closes #5748 2013-07-19 16:28:56 -07:00
version-014.sql Set SQLite page size to 4K: Closes #7423 2013-09-24 18:48:12 -07:00
version-015.sql In Non-English locales, Geary displays wrong month: Closes #7354 2013-09-25 18:04:58 -07:00
version-016.sql Index attachment filenames properly; fix #7575 2013-10-02 12:56:25 -07:00
version-017.sql Add option to save sent mail 2014-01-29 18:18:31 -08:00
version-018.sql Don't multithread db upgrades 2014-03-03 17:40:53 -08:00
version-019.sql Validate contact emails before adding 2014-02-21 15:00:57 -08:00
version-020.sql Fix a number of database hiccups 2014-03-12 16:39:22 -07:00
version-021.sql Fix a number of database hiccups 2014-03-12 16:39:22 -07:00
version-022.sql Show attachments lacking a Content-Disposition: Bug #713830 2014-08-12 14:22:57 -07:00
version-023.sql Improved search experience: Bug #720361 2014-12-16 12:26:31 -08:00
version-024.sql Periodic database & attachments garbage collection: Bug #714134 2014-12-18 17:00:47 -08:00
version-025.sql Rebuild MessageSearchTable. Database version 25. Bug 772522. 2016-10-22 07:34:30 +11:00
version-026.sql Store last cleanup time in GarbageCollectionTable 2020-01-21 17:57:33 +01:00
version-027.sql sql: Add migration for bad message-id data in the database 2020-08-13 15:50:07 +10:00
version-028.sql sql: Add db migration to clean up message_ids with extra whitespace 2020-08-23 12:58:17 +10:00
version-029.sql engine: Remove in-tree unicodesn stemmer 2020-10-14 20:05:15 +11:00
version-030.sql engine: Convert from SQLite FTS3/4 to FTS5 for full-text-search 2021-01-19 20:48:17 +11:00