diff options
author | Eric Wong <e@80x24.org> | 2021-01-10 12:14:58 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-01-12 03:51:42 +0000 |
commit | 4ff570e5c3cfb33aff3ca6ad674958d9dd2abda9 (patch) | |
tree | 66299a7b22bc523d230ca93f51b0eae3abca4c59 /lib/PublicInbox/SearchView.pm | |
parent | 392533147f50061d93cb9ed82abf98067dde5472 (diff) | |
download | public-inbox-4ff570e5c3cfb33aff3ca6ad674958d9dd2abda9.tar.gz |
Parallelism and interactivity with pager + SIGPIPE needs work; but results are shown and phrase search works without shell users having to apply Xapian quoting rules on top of standard shell quoting.
Diffstat (limited to 'lib/PublicInbox/SearchView.pm')
-rw-r--r-- | lib/PublicInbox/SearchView.pm | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/PublicInbox/SearchView.pm b/lib/PublicInbox/SearchView.pm index 6b36f795..d50d3cf6 100644 --- a/lib/PublicInbox/SearchView.pm +++ b/lib/PublicInbox/SearchView.pm @@ -14,7 +14,7 @@ use PublicInbox::WwwAtomStream; use PublicInbox::WwwStream qw(html_oneshot); use PublicInbox::SearchThread; use PublicInbox::SearchQuery; -use PublicInbox::Search; +use PublicInbox::Search qw(get_pct); my %rmap_inc; sub mbox_results { @@ -276,14 +276,6 @@ sub sort_relevance { } @{$_[0]} ] } -sub get_pct ($) { - # Capped at "99%" since "100%" takes an extra column in the - # thread skeleton view. <xapian/mset.h> says the value isn't - # very meaningful, anyways. - my $n = $_[0]->get_percent; - $n > 99 ? 99 : $n; -} - sub mset_thread { my ($ctx, $mset, $q) = @_; my $ibx = $ctx->{ibx}; |