]> git.openstreetmap.org Git - nominatim.git/commitdiff
make rank_search consistent
authorBrian Quinion <openstreetmap@brian.quinion.co.uk>
Thu, 18 Nov 2010 14:59:39 +0000 (14:59 +0000)
committerBrian Quinion <openstreetmap@brian.quinion.co.uk>
Thu, 18 Nov 2010 14:59:39 +0000 (14:59 +0000)
sql/functions.sql

index b71ca380aaebf5545a95d84c46aaaf14e3e74dfa..90c0c4f490c955a9ba8ea1b42e708cf9dd181f50 100644 (file)
@@ -1435,7 +1435,7 @@ BEGIN
     -- if we have a name add this to the name search table
     IF NEW.name IS NOT NULL THEN
 
-      IF NEW.rank_search <= 26 THEN
+      IF NEW.rank_search <= 25 THEN
         result := add_location(NEW.place_id, NEW.country_code, NEW.partition, name_vector, NEW.rank_search, NEW.rank_address, NEW.geometry);
       END IF;