H Brian,<br><br><div class="gmail_quote">On Sun, Jan 3, 2010 at 2:14 PM, Brian Quinion <span dir="ltr"><<a href="mailto:openstreetmap@brian.quinion.co.uk">openstreetmap@brian.quinion.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">> I have setup my own copy of Nominatim that uses only data for Romania<br>
> (thanks Brian) which is visible here:<br>
> <a href="http://cipt2001.homeip.net:8765/gazetteer/index.php" target="_blank">http://cipt2001.homeip.net:8765/gazetteer/index.php</a> and now I am trying to<br>
> keep it up to date. I am using daily diffs from the Romanian OSM server to<br>
> update the database using osm2pgsql, and now I am wondering what will be the<br>
> best way to do an update of the indexes. The only solution I have so far is<br>
> to start a new indexing process from scratch, but this is taking some time<br>
> and definitely is not the best strategy.<br>
<br>
</div></div>Have a look at util.update.php. On the main server that script is run<br>
each night as:<br>
<br>
util.update.php --import-daily --import-all --index<br>
<br>
It downloads and imports the daily diffs for the main server (shelling<br>
out to osm2pgsql) and then re-indexes as needed.  On the main server<br>
it takes around 6 hours to run.  You can probably just change the<br>
download source and re-use the script as is.<br>
<br></blockquote><div><br>I tried to use that script as is but I get an error:<br><br>Fatal error: Call to undefined function getCmdOpt() in /home/ctalaba/osm/gazetteer/util.update.php on line 20<br><br>I couldn't find where this function is defined, so I will just use part of the code (the indexing part) as a base for my own script. I will probably get back on this list with the result, hopefully it will be helpful for somebody else.<br>
<br>Thanks,<br>Ciprian<br></div></div><br>