From ffbc4361c427cc0c4181b1801037caced97cf33b Mon Sep 17 00:00:00 2001
From: Frank Lichtenheld
Date: Mon, 18 Jun 2007 19:41:36 +0200
Subject: [PATCH] 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.
---
templates/html/search.tmpl | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
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
--
2.39.2