#!/bin/bash

sort -u pterms.txt | perl break.pl | db_load -T -t btree pt.idx
sort -u rterms.txt | perl break.pl | db_load -T -t btree rt.idx
sort -u scores.txt | perl break.pl | db_load -T -t btree sc.idx
db_load -f reviews.txt -T -t hash rw.idx

#!/bin/bash

sort -u pterms.txt | perl break.pl | db_load -T -t btree -c duplicates=1 pt.idx
sort -u rterms.txt | perl break.pl | db_load -T -t btree -c duplicates=1 rt.idx
sort -u scores.txt | perl break.pl | db_load -T -t btree -c duplicates=1 sc.idx
db_load -f reviews.txt -T -t hash rw.idx

Allow duplicates when building indicies
Allow duplicates when building indicies