geary/sql/version-023.sql
Jim Nelson 533ab75ee3 Improved search experience: Bug #720361
This introduces a new full-text search algorithm that attempts to
curb the effects of overstemming in the Porter Snowball stemmer.
The FTS table will be regenerated with this update.

The crux of this new algorithm is a configurable heuristic that
reduces stemmed matching.  The configuration is not available via the
UI (I suspect it will only confuse users) but can be changed by power
users via GSettings.  More information is available at:

https://wiki.gnome.org/Apps/Geary/FullTextSearchStrategy
2014-12-16 12:26:31 -08:00

21 lines
479 B
SQL

--
-- Database upgrade to add FTS tokenize virtual table, which allows for querying the tokenizer
-- directly for stemmed words, and dropping the stemmed FTS table for an unstemmed one. We now
-- use the stemmer manually to generate search queries.
--
DROP TABLE MessageSearchTable;
CREATE VIRTUAL TABLE MessageSearchTable USING fts4(
body,
attachment,
subject,
from_field,
receivers,
cc,
bcc,
tokenize=simple,
prefix="2,4,6,8,10"
);