build_index.pl 323 B

12345678910111213141516
  1. #!/usr/bin/perl
  2. use strict;
  3. use warnings;
  4. use lib 'lib';
  5. use Trog::Data;
  6. use Trog::Config;
  7. use Trog::SQLite::TagIndex;
  8. # Use this to build the post index after you import data, otherwise it's not needed
  9. my $conf = Trog::Config::get();
  10. my $search = Trog::Data->new($conf);
  11. Trog::SQLite::TagIndex::build_index($search);