]> git.openstreetmap.org Git - nominatim.git/commit
Index placex centroid for the SQLite category search
authorItz-Agasta <rupamgolui69@gmail.com>
Mon, 27 Jul 2026 11:16:58 +0000 (16:46 +0530)
committerItz-Agasta <rupamgolui69@gmail.com>
Thu, 30 Jul 2026 07:19:27 +0000 (12:49 +0530)
commitd077b66ef1f592886eeab0874e000b28147d8bcc
tree488e422fda70c0f74067e9d6181124166b0ad056
parent32a74b77a223eceed163d7303665421caa2eee41
Index placex centroid for the SQLite category search

SQLite has no ltree, so category search matches on class/type, but it
still needs the spatial part of the query to be indexed. Only
placex.geometry had a spatial index, so moving the category searches
onto the centroid would leave them without one and the SpatialIndex
subquery would match nothing.
src/nominatim_db/tools/convert_sqlite.py