[Geocoding] Empty search_name in Nominatim DB
Dmitry Dzhus
dima at dzhus.org
Sun Oct 28 20:24:34 GMT 2012
Good day!
I've installed Nominatim on my server and performed the initial import with
./utils/setup.php --osm-file <pbf> --all
I can't get Nominatim to perform geocoding: search.php returns zero results.
Reverse geocoding, however, works as expected for the imported location.
After comparing debug output from my server and
nominatim.openstreetmap.org, I've discovered that Nominatim first
selects tokens from `words` (this query succeeds in my server and
returns results similar to the online nominatim (save for word IDs
which is expected)), and then proceeds to fetch `place_id`s from
`search_name` table.
Perhaps this is where my Nominatim instance fails: my Postgres table
`search_name` is empty. I assume that this is not expected for a fresh
installation.
I'm using Nominatim from https://github.com/twain47/Nominatim. I can't
be sure if this is a bug in Nominatim or I got the import process
wrong.
The import log seems to contain no error messages, save for these:
Using projection SRS 4326 (Latlong)
NOTICE: table "place" does not exist, skipping
NOTICE: type "keyvalue" does not exist, skipping
NOTICE: type "wordscore" does not exist, skipping
NOTICE: type "stringlanguagetype" does not exist, skipping
NOTICE: type "keyvaluetype" does not exist, skipping
NOTICE: function get_connected_ways(pg_catalog.int4[]) does not
exist, skipping
(which I believe are not errors at all)
Re-importing did not help. Can you point at something I can do to
track down the source of issue?
More information about the Geocoding
mailing list