# numeric
$schema->spec_field( name => $_, type => $string_type ) foreach ( qw/
backup_date
- backupnum
fid
shareid
type
# sortable numeric
$schema->spec_field( name => $_, type => $sort_type ) foreach (qw/
+ backupnum
date
size
/);
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(
- query => $q,
+ query => $split,
+ offset => $offset,
+ num_wanted => $on_page,
sort_spec => $sort_spec,
);
my $results;
while ( my $hit = $hits->next ) {
-warn "XXX ",dump($hit);
+ warn "## hit = ",dump($hit) if $ENV{DEBUG};
push @$results, $hit;
}