]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/search.php
ignore frequent partial search terms
[nominatim.git] / website / search.php
index 60df370d4ea6842e42fea75628c8c9f233aa6310..1d877e77ebfdf76564e1d8b0cab03bc47cb06fa1 100755 (executable)
                        // Check which tokens we have, get the ID numbers                       
                        $sSQL = 'select word_id,word_token, word, class, type, location, country_code, operator';
                        $sSQL .= ' from word where word_token in ('.join(',',array_map("getDBQuoted",$aTokens)).')';
+                       $sSQL .= ' and search_name_count < '.CONST_Max_Word_Frequency;
                        $sSQL .= ' and (class is null or class not in (\'highway\'))';
 //                     $sSQL .= ' group by word_token, word, class, type, location, country_code';