projects
/
BackupPC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added offset and num_wated so pager works
[BackupPC.git]
/
lib
/
BackupPC
/
Search
/
KinoSearch.pm
diff --git
a/lib/BackupPC/Search/KinoSearch.pm
b/lib/BackupPC/Search/KinoSearch.pm
index
0301fa3
..
d12577d
100644
(file)
--- a/
lib/BackupPC/Search/KinoSearch.pm
+++ b/
lib/BackupPC/Search/KinoSearch.pm
@@
-146,9
+146,13
@@
sub search {
my $sort_spec = KinoSearch::Search::SortSpec->new( rules => $rules );
my $sort_spec = KinoSearch::Search::SortSpec->new( rules => $rules );
- $q =~ s/(.)/$1 /g; # _file_path_split
+ my $split = $q;
+ $split =~ s/(.)/$1 /g; # _file_path_split
+ $split = qq{"$split"}; # exact ordering
my $hits = $self->searcher->hits(
my $hits = $self->searcher->hits(
- query => $q,
+ query => $split,
+ offset => $offset,
+ num_wanted => $on_page,
sort_spec => $sort_spec,
);
sort_spec => $sort_spec,
);