mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-30 12:22:10 +03:00
73c449b97b
A place needs all lower address rank object indexed to make up the address. The search rank no longer ensures that as it can have a different ordering than the address rank. This switches indexing rank order to address ranks. Non-address objects (with address rank 0) are indexed together with POIs.
10 lines
569 B
SQL
10 lines
569 B
SQL
-- Indices used only during search and update.
|
|
-- These indices are created only after the indexing process is done.
|
|
|
|
CREATE INDEX CONCURRENTLY idx_placex_pendingsector ON placex USING BTREE (rank_address,geometry_sector) {ts:address-index} where indexed_status > 0;
|
|
|
|
CREATE INDEX CONCURRENTLY idx_location_area_country_place_id ON location_area_country USING BTREE (place_id) {ts:address-index};
|
|
|
|
DROP INDEX CONCURRENTLY IF EXISTS place_id_idx;
|
|
CREATE UNIQUE INDEX CONCURRENTLY idx_place_osm_unique on place using btree(osm_id,osm_type,class,type) {ts:address-index};
|