X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/55c8a0ac08ee4b7e6b385deccba5e21186e7dfd1..5d656891ba072d88b8b281d239d0dce9f7bd6a1c:/sql/indices_updates.src.sql

diff --git a/sql/indices_updates.src.sql b/sql/indices_updates.src.sql
index 99f59cdb..6d4c968e 100644
--- a/sql/indices_updates.src.sql
+++ b/sql/indices_updates.src.sql
@@ -1,9 +1,9 @@
 -- 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_search,geometry_sector) {ts:address-index} where indexed_status > 0;
+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) {ts:address-index};
+CREATE UNIQUE INDEX CONCURRENTLY idx_place_osm_unique on place using btree(osm_id,osm_type,class,type) {ts:address-index};
