X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/fbbdd31399da42b94188d9d4aa4f084efd4876a4..d44a428b744916a21c2d82d654f1358efe027d21:/lib-sql/tokenizer/legacy_tokenizer_tables.sql diff --git a/lib-sql/tokenizer/legacy_tokenizer_tables.sql b/lib-sql/tokenizer/legacy_tokenizer_tables.sql index 3410b763..937eaaa2 100644 --- a/lib-sql/tokenizer/legacy_tokenizer_tables.sql +++ b/lib-sql/tokenizer/legacy_tokenizer_tables.sql @@ -12,6 +12,8 @@ CREATE TABLE word ( CREATE INDEX idx_word_word_token ON word USING BTREE (word_token) {{db.tablespace.search_index}}; +CREATE INDEX idx_word_word ON word + USING BTREE (word) {{db.tablespace.search_index}} WHERE word is not null; GRANT SELECT ON word TO "{{config.DATABASE_WEBUSER}}"; DROP SEQUENCE IF EXISTS seq_word;