Skip to content

rebuild-fts command and table.rebuild_fts() method #155

Closed

Description

@simonw

https://sqlite.org/forum/forumpost/fa777fff86

Easiest thing would be to run a 'rebuild' to rebuild the FTS index from scratch based on the contents of the content table. i.e.

INSERT INTO licenses_fts(licenses_fts) VALUES('rebuild');

https://www.sqlite.org/fts5.html#the_rebuild_command

Activity

  1. simonw commented on Sep 8, 2020

    @simonw
    OwnerAuthor

    For the command version:

    sqlite-utils rebuild-fts mydb.db
    

    This will rebuild all detected FTS tables. You can also specify one or more explicit tables:

    sqlite-utils rebuild-fts mydb.db dogs
    
  2. added a commit that references this issue on Sep 8, 2020
  3. simonw commented on Sep 8, 2020

    @simonw
    OwnerAuthor

    I'm going to update sqlite-utils optimize to also take an optional list of tables, for consistency.

  4. added a commit that references this issue on Sep 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions