]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-sql/tokenizer/legacy_tokenizer_tables.sql
add Python part for new ICU-based tokenizer
[nominatim.git] / lib-sql / tokenizer / legacy_tokenizer_tables.sql
index 3410b763a11b738132ffd307ee9e1e70ee6aeef9..937eaaa297f32c0304fbd2958331204ad013d378 100644 (file)
@@ -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;