From 837dfbc19794cb65491cb324f023631473c17a58 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 18 Aug 2016 09:25:21 +0000 Subject: searchview: link to internal help text The internal help text links to the Xapian query parser documentation anyways, but also provides information on which prefixes exist. --- lib/PublicInbox/SearchView.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/PublicInbox/SearchView.pm') diff --git a/lib/PublicInbox/SearchView.pm b/lib/PublicInbox/SearchView.pm index 3623a78b..4f0811a8 100644 --- a/lib/PublicInbox/SearchView.pm +++ b/lib/PublicInbox/SearchView.pm @@ -85,12 +85,11 @@ sub mset_summary { sub err_txt { my ($ctx, $err) = @_; - my $u = '//xapian.org/docs/queryparser.html'; - $u = PublicInbox::Hval::prurl($ctx->{env}, $u); + my $u = $ctx->{-inbox}->base_url($ctx->{env}) . '_/text/help/'; $err =~ s/^\s*Exception:\s*//; # bad word to show users :P $err = ascii_html($err); "\nBad query: $err\n" . - qq{See $u for Xapian query syntax}; + qq{See $u for help on using search}; } sub search_nav_top { -- cgit v1.2.3-24-ge0c7