Skip to content

Commit

Permalink
Merge pull request #25 from savage13/tokenizer_revert
Browse files Browse the repository at this point in the history
Revert tokenizer to default, trigram didn't handle integers properly
  • Loading branch information
leoetlino authored Jun 19, 2022
2 parents 8952ed2 + 4e881b1 commit b9c4b5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ checkKorokTypes();

function createFts() {
db.exec(`
CREATE VIRTUAL TABLE objs_fts USING fts5(content="", tokenize="trigram", map, actor, name, data, 'drop', equip, onehit, lastboss, hard, no_rankup, scale, bonus, static, region, fieldarea, lotm, korok, korok_type, location);
CREATE VIRTUAL TABLE objs_fts USING fts5(content="", tokenize="unicode61", map, actor, name, data, 'drop', equip, onehit, lastboss, hard, no_rankup, scale, bonus, static, region, fieldarea, lotm, korok, korok_type, location);
INSERT INTO objs_fts(rowid, map, actor, name, data, 'drop', equip, onehit, lastboss, hard, no_rankup, scale, bonus, static, region, fieldarea, lotm, korok, korok_type, location)
SELECT objid, map_type || '/' || map_name, unit_config_name, ui_name, data, ui_drop, ui_equip, one_hit_mode, last_boss_mode, hard_mode, disable_rankup_for_hard_mode, scale, sharp_weapon_judge_type, map_static, region, field_area, spawns_with_lotm, korok_id, korok_type, location FROM objs;
Expand Down

0 comments on commit b9c4b5c

Please sign in to comment.