refactor(ebook-search): simplify search and phrase matching

This commit is contained in:
Richie committed 2026-07-24 11:38:51 -04:00
1 parent 0028237579
commit e010756e09
16 files changed
+490 -557

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
"""Shared database columns used to build search-result records."""
from python.orm.richie import EbookChapter, EbookChunk, EbookSource
CHUNK_RECORD_COLUMNS = (
EbookChunk.id.label("chunk_id"),
EbookChunk.text.label("text"),
EbookSource.id.label("source_id"),
EbookSource.title.label("source_title"),
EbookSource.author.label("source_author"),
EbookChapter.title.label("chapter_title"),
EbookChunk.page_label.label("page_label"),
)