]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/search.php
hint blocked IPs about missing UA
[nominatim.git] / website / search.php
index aa0e870adb5c4242015b16f39f2b8af5b6fc903e..bcd5718e2422ab1b795b24c28b3b993980280208 100755 (executable)
                                                                                                $aSearch['sType'] = $aSearchTerm['type'];
                                                                                                if (sizeof($aSearch['aName'])) $aSearch['sOperator'] = 'name';
                                                                                                else $aSearch['sOperator'] = 'near'; // near = in for the moment
+                                                                                               if (strlen($aSearchTerm['operator']) == 0) $aSearch['iSearchRank'] += 1;
 
                                                                                                // Do we have a shortcut id?
                                                                                                if ($aSearch['sOperator'] == 'name')