Permalink
Browse files

misc. SearchToo updates (a lot more to come!)

  • Loading branch information...
1 parent dab34c1 commit 28f251f330accb75b806307d34ae40a82c67a787 @pudge pudge committed May 23, 2007
@@ -94,6 +94,12 @@ sub prepResults {
$results->{records_matches} = $sopts->{matches};
$results->{records_max} = $sopts->{max};
$results->{records_start} = $sopts->{start};
+ if ($sopts->{matches}) {
+ $results->{records_page} = int($sopts->{start}/$sopts->{max}) + 1;
+ $results->{records_pages} = int($sopts->{matches}/$sopts->{max}) + 1;
+ } else {
+ $results->{records_page} = $results->{records_page} = 0;
+ }
return $results;
}
@@ -40,9 +40,6 @@ our %primary = (
firehose => 'id',
);
-# other fields included will be indexed, but NOT tokenized
-# firehose: tids primaryskid type category date popularity activity editorpop
-
# turn into hashes
for my $hash (\%text, \%content) {
for my $type (keys %$hash) {
@@ -59,7 +56,7 @@ sub new {
return unless $plugin->{'SearchToo'};
my $handled;
- { no strict;
+ { no strict 'refs';
$handled = ${$class . '::handled'};
}
@@ -1,7 +1,5 @@
package Slash::SearchToo::Kinosearch;
-# STILL IN PROGRESS NOT READY FOR USE
-
use strict;
use File::Path;
use File::Spec::Functions;

0 comments on commit 28f251f

Please sign in to comment.