]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/search.php
Black/whitelisting for special phrases
[nominatim.git] / website / search.php
index a049f07e6c4b5f7702f4148aa58fbeb74c510577..f0bcf077513b9017e884de74a7da3c03f948dd13 100755 (executable)
                                                                $sPlaceIDs = join(',',$aPlaceIDs);
        
                                                                // Now they are indexed look for a house attached to a street we found
-                                                               $sHouseNumberRegex = '\\\\m'.str_replace(' ','[-, ]',$aSearch['sHouseNumber']).'\\\\M';                                         
+                                                               $sHouseNumberRegex = '\\\\m'.str_replace(' ','[-,/ ]',$aSearch['sHouseNumber']).'\\\\M';                                                
                                                                $sSQL = "select place_id from placex where parent_place_id in (".$sPlaceIDs.") and housenumber ~* E'".$sHouseNumberRegex."'";
                                                                if (sizeof($aExcludePlaceIDs))
                                                                {