]> git.openstreetmap.org Git - nominatim.git/commitdiff
Merge pull request #1984 from lonvia/remove-reverse-index
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 30 Sep 2020 10:02:34 +0000 (12:02 +0200)
committerGitHub <noreply@github.com>
Wed, 30 Sep 2020 10:02:34 +0000 (12:02 +0200)
Remove unused idx_placex_geometry_reverse_lookupPoint

sql/indices.src.sql
utils/check_import_finished.php

index fa009783f1f7f4e94b432888ec2ed96fbe6fad7b..7fcd965f4eb14d61a4bd5ed1366804a697f8504e 100644 (file)
@@ -10,11 +10,6 @@ CREATE INDEX idx_placex_rank_search ON placex USING BTREE (rank_search) {ts:sear
 CREATE INDEX idx_placex_rank_address ON placex USING BTREE (rank_address) {ts:search-index};
 CREATE INDEX idx_placex_parent_place_id ON placex USING BTREE (parent_place_id) {ts:search-index} where parent_place_id IS NOT NULL;
 
-CREATE INDEX idx_placex_geometry_reverse_lookupPoint
-  ON placex USING gist (geometry) {ts:search-index}
-  WHERE (name is not null or housenumber is not null or rank_address between 26 and 27)
-    AND class not in ('railway','tunnel','bridge','man_made')
-    AND rank_address >= 26 AND indexed_status = 0 AND linked_place_id is null;
 CREATE INDEX idx_placex_geometry_reverse_lookupPolygon
   ON placex USING gist (geometry) {ts:search-index}
   WHERE St_GeometryType(geometry) in ('ST_Polygon', 'ST_MultiPolygon')
index 42d834c870b2439cf3aff4a9b8c571fcff9fa535..5ec99b81eb2a8164251a12b1888cdc4b0e50ceb5 100755 (executable)
@@ -106,7 +106,6 @@ $aExpectedIndices = array(
     'idx_placex_rank_address',
     'idx_placex_pendingsector',
     'idx_placex_parent_place_id',
-    'idx_placex_geometry_reverse_lookuppoint',
     'idx_placex_geometry_reverse_lookuppolygon',
     'idx_placex_geometry_reverse_placenode',
     'idx_location_area_country_place_id',