From 74ad06e1283615cceb49fd95929b60329d47d3d4 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Tue, 18 Dec 2018 13:49:51 -0800 Subject: [PATCH] Updated notes on FTS5 v.s. FTS4 --- docs/full_text_search.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/full_text_search.rst b/docs/full_text_search.rst index 6bf3b567..987e2272 100644 --- a/docs/full_text_search.rst +++ b/docs/full_text_search.rst @@ -14,7 +14,9 @@ FTS versions There are three different versions of the SQLite FTS module: FTS3, FTS4 and FTS5. You can tell which versions are supported by your instance of Datasette by checking the ``/-/versions`` page. -FTS5 is the most advanced module, but is usually not available is the SQLite version that is bundled with Python. If in doubt, you should use FTS4. +FTS5 is the most advanced module but may not be available in the SQLite version that is bundled with your Python installation. Most importantly, FTS5 is the only version that has the ability to order by search relevance without needing extra code. + +If you can't be sure that FTS5 will be available, you should use FTS4. Adding full-text search to a SQLite table -----------------------------------------