build_index.pl 372 B

1234567891011121314151617
  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);
  12. Trog::SQLite::TagIndex::build_routes($search);