X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/8b1a509442a3fa051146f82b8293126916ad8617..09c9fad6c31733065492306c9ee3c052e50ac115:/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;