]> git.openstreetmap.org Git - nominatim.git/blobdiff - sql/functions.sql
make rank_search consistent
[nominatim.git] / 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;