mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-14 18:37:58 +00:00
move index creation for word table to tokenizer
This introduces a finalization routing for the tokenizer where it can post-process the import if necessary.
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
-- Indices used only during search and update.
|
||||
-- These indices are created only after the indexing process is done.
|
||||
|
||||
CREATE INDEX {{sql.if_index_not_exists}} idx_word_word_id
|
||||
ON word USING BTREE (word_id) {{db.tablespace.search_index}};
|
||||
|
||||
CREATE INDEX {{sql.if_index_not_exists}} idx_place_addressline_address_place_id
|
||||
ON place_addressline USING BTREE (address_place_id) {{db.tablespace.search_index}};
|
||||
|
||||
|
||||
2
lib-sql/tokenizer/legacy_tokenizer_indices.sql
Normal file
2
lib-sql/tokenizer/legacy_tokenizer_indices.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
CREATE INDEX {{sql.if_index_not_exists}} idx_word_word_id
|
||||
ON word USING BTREE (word_id) {{db.tablespace.search_index}};
|
||||
Reference in New Issue
Block a user