]> git.openstreetmap.org Git - nominatim.git/blob - lib-sql/tables/addressline.sql
pass reverse-only as a separate parameter
[nominatim.git] / lib-sql / tables / addressline.sql
1 -- SPDX-License-Identifier: GPL-2.0-only
2 --
3 -- This file is part of Nominatim. (https://nominatim.org)
4 --
5 -- Copyright (C) 2026 by the Nominatim developer community.
6 -- For a full list of authors see the git log.
7
8 DROP TABLE IF EXISTS place_addressline;
9
10 CREATE TABLE place_addressline (
11   place_id BIGINT NOT NULL,
12   address_place_id BIGINT NOT NULL,
13   distance FLOAT NOT NULL,
14   cached_rank_address SMALLINT NOT NULL,
15   fromarea boolean NOT NULL,
16   isaddress boolean NOT NULL
17   ) {{db.tablespace.search_data}};
18
19 CREATE INDEX idx_place_addressline_place_id ON place_addressline
20   USING BTREE (place_id) {{db.tablespace.search_index}};