X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/caa8210112d608609f6825dff6893b6e9c83b7c6..24e52de5f34363dd7fa5cc318d00e7c7135b84ff:/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;