]> git.openstreetmap.org Git - nominatim.git/blob - sql/indices_search.src.sql
Merge pull request #1809 from lonvia/fix-display-names
[nominatim.git] / sql / indices_search.src.sql
1 -- Indices used for /search API.
2 -- These indices are created only after the indexing process is done.
3
4 CREATE INDEX CONCURRENTLY idx_search_name_nameaddress_vector ON search_name USING GIN (nameaddress_vector) WITH (fastupdate = off) {ts:search-index};
5 CREATE INDEX CONCURRENTLY idx_search_name_name_vector ON search_name USING GIN (name_vector) WITH (fastupdate = off) {ts:search-index};
6 CREATE INDEX CONCURRENTLY idx_search_name_centroid ON search_name USING GIST (centroid) {ts:search-index};