X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/75e35f383224fb8eab3d9a28b111499c0a670eff..174fca9c7ae30ad4bab666f2bdcdb288ed188e3e:/lib/lib.php diff --git a/lib/lib.php b/lib/lib.php index f92985ba..e4a343d1 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -481,71 +481,19 @@ function _debugDumpGroupedSearches($aData, $aTokens) foreach ($aTokens as $sToken => $aWords) { if ($aWords) { foreach ($aWords as $aToken) { - $aWordsIDs[$aToken['word_id']] = $sToken.'('.$aToken['word_id'].')'; + $aWordsIDs[$aToken['word_id']] = + '#'.$sToken.'('.$aToken['word_id'].')#'; } } } } echo "
rank | Name Tokens | Name Not | "; - echo "Address Tokens | Address Not | country | "; - echo "operator | class | type | postcode | house# | "; - echo "Lat | Lon | Radius | Address Tokens | Address Not | country | operator | "; + echo "class | type | postcode | housenumber | "; foreach ($aData as $iRank => $aRankedSet) { foreach ($aRankedSet as $aRow) { - echo "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
$iRank | "; - - echo ""; - $sSep = ''; - foreach ($aRow['aName'] as $iWordID) { - echo $sSep.'#'.$aWordsIDs[$iWordID].'#'; - $sSep = ', '; - } - echo " | "; - - echo ""; - $sSep = ''; - foreach ($aRow['aNameNonSearch'] as $iWordID) { - echo $sSep.'#'.$aWordsIDs[$iWordID].'#'; - $sSep = ', '; - } - echo " | "; - - echo ""; - $sSep = ''; - foreach ($aRow['aAddress'] as $iWordID) { - echo $sSep.'#'.$aWordsIDs[$iWordID].'#'; - $sSep = ', '; - } - echo " | "; - - echo ""; - $sSep = ''; - foreach ($aRow['aAddressNonSearch'] as $iWordID) { - echo $sSep.'#'.$aWordsIDs[$iWordID].'#'; - $sSep = ', '; - } - echo " | "; - - echo "".$aRow['sCountryCode']." | "; - - echo "".$aRow['sOperator']." | "; - echo "".$aRow['sClass']." | "; - echo "".$aRow['sType']." | "; - - echo "".$aRow['sPostcode']." | "; - echo "".$aRow['sHouseNumber']." | "; - - if ($aRow['oNear']) { - echo "".$aRow['oNear']->lat()." | "; - echo "".$aRow['oNear']->lon()." | "; - echo "".$aRow['oNear']->radius()." | "; - } else { - echo ""; - } - - echo " |