mirror of
https://github.com/patarapolw/cjdic2.git
synced 2026-11-09 17:39:35 +00:00
fix rendering for various dicts
This commit is contained in:
1 parent
8bd087b869
commit
69f931f2a1
4 files changed
+22
-21
No files matched your search
@@ -64,7 +64,7 @@ impl YomitanDatabase {
|
||||
LEFT JOIN yomitan.rule_sets r ON r.id = t.rules_id
|
||||
LEFT JOIN yomitan.term_tag_sets tt ON tt.id = t.term_tags_id
|
||||
WHERE t.term_norm GLOB ?1 {} t.reading GLOB ?2
|
||||
ORDER BY tr.max_score DESC
|
||||
ORDER BY tr.max_score DESC, d.sort_order DESC
|
||||
LIMIT ?3 OFFSET ?4
|
||||
"#,
|
||||
and_or
|
||||
|
||||
@@ -126,10 +126,10 @@ impl YomitanWriter {
|
||||
|
||||
self.conn.execute_batch(
|
||||
"
|
||||
CREATE INDEX IF NOT EXISTS dictionaries_sort_order ON dctionaries (sort_order DESC);
|
||||
CREATE INDEX IF NOT EXISTS dictionaries_lang ON dictionaries (lang);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS terms_dict_id ON terms (dict_id);
|
||||
CREATE INDEX IF NOT EXISTS terms_term_LOWER ON terms (LOWER(term));
|
||||
CREATE INDEX IF NOT EXISTS terms_reading ON terms (reading);
|
||||
CREATE INDEX IF NOT EXISTS terms_term_reading_score ON terms(term, reading, score DESC);
|
||||
|
||||
|
||||
Reference in new issue
Block a user