sqlite-utils rebuild-fts command, closes #155

This commit is contained in:
Simon Willison 2020-09-08 16:16:03 -07:00
commit 176f4e0ef4
5 changed files with 93 additions and 2 deletions

View file

@ -689,6 +689,14 @@ To remove the FTS tables and triggers you created, use ``disable-fts``::
$ sqlite-utils disable-fts mydb.db documents
To rebuild one or more FTS tables (see :ref:`python_api_fts_rebuild`), use ``rebuild-fts``::
$ sqlite-utils rebuild-fts mydb.db documents
You can rebuild every FTS table by running ``rebuild-fts`` without passing any table names::
$ sqlite-utils rebuild-fts mydb.db
.. _cli_vacuum:
Vacuum

View file

@ -1213,6 +1213,8 @@ To remove the FTS tables and triggers you created, use the ``disable_fts()`` tab
dogs.disable_fts()
.. _python_api_fts_rebuild:
Rebuilding a full-text search table
===================================
@ -1232,6 +1234,8 @@ This runs the following SQL::
INSERT INTO dogs_fts (dogs_fts) VALUES ("rebuild");
.. _python_api_fts_optimize:
Optimizing a full-text search table
===================================