Skip to content

Commit

Permalink
Extend indexes to local names
Browse files Browse the repository at this point in the history
  • Loading branch information
frafra committed Oct 19, 2024
1 parent 23696a2 commit 6c60cc5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions indexes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
point:
# The point table is small, but so are the partial indexes
place:
where: place IS NOT NULL AND name IS NOT NULL
where: place IS NOT NULL AND name IS NOT NULL AND (tags->('name:en')) IS NOT NULL AND (tags->('name:it')) IS NOT NULL
line:
label:
where: name IS NOT NULL OR ref IS NOT NULL
where: name IS NOT NULL AND (tags->('name:en')) IS NOT NULL AND (tags->('name:it')) IS NOT NULL OR ref IS NOT NULL
ferry:
where: route = 'ferry' AND osm_id > 0
river:
Expand All @@ -19,13 +19,13 @@ polygon:
# The polygon table is by far the largest, and generally the slowest
name:
function: ST_PointOnSurface(way)
where: name IS NOT NULL
where: name IS NOT NULL AND (tags->('name:en')) IS NOT NULL AND (tags->('name:it')) IS NOT NULL
name_z6:
function: ST_PointOnSurface(way)
where: name IS NOT NULL AND way_area > 5980000
where: name IS NOT NULL AND (tags->('name:en')) IS NOT NULL AND (tags->('name:it')) IS NOT NULL AND way_area > 5980000
admin:
function: ST_PointOnSurface(way)
where: name IS NOT NULL AND boundary = 'administrative' AND admin_level IN ('0', '1', '2', '3', '4')
where: name IS NOT NULL AND (tags->('name:en')) IS NOT NULL AND (tags->('name:it')) IS NOT NULL AND boundary = 'administrative' AND admin_level IN ('0', '1', '2', '3', '4')
nobuilding:
where: building IS NULL
military:
Expand Down

0 comments on commit 6c60cc5

Please sign in to comment.