fix rendering for various dicts

This commit is contained in:
polv committed 2026-02-24 16:47:39 +07:00
1 parent 8bd087b869
commit 69f931f2a1
4 files changed
+22 -21

No files matched your search

+1 -1
View File
@@ -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
+1 -1
View File
@@ -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);