make backupnum sortable
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 9 Jan 2011 20:11:26 +0000 (20:11 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 9 Jan 2011 20:11:26 +0000 (20:11 +0000)
Makefile
lib/BackupPC/Search/KinoSearch.pm

index 407c3ee..7c87a0f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -16,3 +16,7 @@ tar:
        sudo -u backuppc ./bin/BackupPC_incPartsUpdate
 
 reset: clean update tar
+
+reindex:
+       sudo rm -Rf /tmp/kinosearch/
+       sudo -u backuppc DEBUG=1 bin/BackupPC_updatedb -j -v 3
index d12577d..35cb71b 100644 (file)
@@ -49,7 +49,6 @@ sub indexer {
        # numeric
        $schema->spec_field( name => $_, type => $string_type ) foreach ( qw/
                backup_date
-               backupnum
                fid
                shareid
                type
@@ -69,6 +68,7 @@ sub indexer {
 
        # sortable numeric
        $schema->spec_field( name => $_, type => $sort_type ) foreach (qw/
+               backupnum
                date
                size
        /);