From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id E6DCB2022A; Thu, 18 Aug 2016 09:51:50 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Cc: Philip Oakley Subject: [PATCH 2/2] searchview: link to internal help text Date: Thu, 18 Aug 2016 09:51:50 +0000 Message-Id: <20160818095150.17118-3-e@80x24.org> In-Reply-To: <20160818095150.17118-1-e@80x24.org> References: <20160818095150.17118-1-e@80x24.org> List-Id: 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(-) diff --git a/lib/PublicInbox/SearchView.pm b/lib/PublicInbox/SearchView.pm index 3623a78..4f0811a 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 { -- EW