X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/7d192ace6d0b6a9675af985dcf237f8ecc8ebd06..65c89194fccef562c544c05dbcef0d9e6ad16a0d:/utils/update.php diff --git a/utils/update.php b/utils/update.php index 3086a70b..8e118834 100644 --- a/utils/update.php +++ b/utils/update.php @@ -48,6 +48,7 @@ $aCMDOptions getCmdOpt($_SERVER['argv'], $aCMDOptions, $aResult, true, true); if (!isset($aResult['index-instances'])) $aResult['index-instances'] = 1; + if (!isset($aResult['index-rank'])) $aResult['index-rank'] = 0; date_default_timezone_set('Etc/UTC'); @@ -305,6 +306,8 @@ if ($aResult['index']) { } runWithEnv($sCmd, $aProcEnv); + + $oDB->query('update import_status set indexed = true'); } if ($aResult['update-address-levels']) { @@ -443,6 +446,11 @@ if ($aResult['import-osmosis'] || $aResult['import-osmosis-all']) { $sSQL = 'update import_status set indexed = true'; $oDB->query($sSQL); + } else { + if ($aResult['import-osmosis-all']) { + echo "Error: --no-index cannot be used with continuous imports (--import-osmosis-all).\n"; + exit(1); + } } $fDuration = time() - $fStartTime;