diff --git a/src/main/java/org/teacon/chahoutan/repo/SearchIndexRepository.java b/src/main/java/org/teacon/chahoutan/repo/SearchIndexRepository.java index 3e45ae6..ddd535e 100644 --- a/src/main/java/org/teacon/chahoutan/repo/SearchIndexRepository.java +++ b/src/main/java/org/teacon/chahoutan/repo/SearchIndexRepository.java @@ -25,6 +25,8 @@ SELECT p.id, cast(p.id AS text) AS text_content FROM chahoutan_posts p JOIN chahoutan_revisions r ON p.revision_id = r.id AND p.id = :id UNION ALL SELECT p.id, c.text_content FROM chahoutan_posts p JOIN chahoutan_corrections c ON p.revision_id = c.revision_id AND p.id = :id + UNION ALL SELECT p.id, f.footnote AS text_content + FROM chahoutan_posts p JOIN chahoutan_post_footnotes f ON p.revision_id = f.revision_id AND p.id = :id UNION ALL SELECT p.id, e.editor AS text_content FROM chahoutan_posts p JOIN chahoutan_editors e ON p.id = e.post_id AND p.id = :id )