added offset and num_wated so pager works
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 9 Jan 2011 20:00:22 +0000 (20:00 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 9 Jan 2011 20:00:22 +0000 (20:00 +0000)
lib/BackupPC/Search/KinoSearch.pm

index e1ba8da..d12577d 100644 (file)
@@ -151,6 +151,8 @@ sub search {
        $split = qq{"$split"}; # exact ordering
        my $hits = $self->searcher->hits(
                query => $split,
        $split = qq{"$split"}; # exact ordering
        my $hits = $self->searcher->hits(
                query => $split,
+               offset => $offset,
+               num_wanted => $on_page,
                sort_spec => $sort_spec,
        );
 
                sort_spec => $sort_spec,
        );