From: Frank Lichtenheld
Date: Mon, 18 Jun 2007 17:41:36 +0000 (+0200)
Subject: html/search.tmpl: Improve message about too many results for fulltext search
X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=ffbc4361c427cc0c4181b1801037caced97cf33b;p=deb%2Fpackages.git
html/search.tmpl: Improve message about too many results for fulltext search
This brings this message closer to reality and also mentions that the results
are sorted by relevance now.
---
diff --git a/templates/html/search.tmpl b/templates/html/search.tmpl
index 33a0b42..bbb4cde 100644
--- a/templates/html/search.tmpl
+++ b/templates/html/search.tmpl
@@ -65,10 +65,15 @@ Found [% results %] matching packages.
[% END %]
[% IF too_many_hits %]
+[% IF opts.search != "names" %]
+Note that this only shows the best matches, sorted by relevance.
+If the first few packages don't match what you searched for, try using more keywords or alternative
+keywords.
+[% ELSE %]
Your search was too wide so we will only display exact matches.
At least [% too_many_hits %] results have been omitted and will not be displayed.
Please consider using a longer keyword or more keywords.
-[% END %]
+[% END; END %]
[% UNLESS results %]
Sorry, your search gave no results