From 7466c7ed3a5cbb505bdcd2de01ad48c40afa7b9a Mon Sep 17 00:00:00 2001 From: Richie Cahill Date: Fri, 12 Jun 2026 13:35:20 -0400 Subject: [PATCH] fixed duplicat enrichment --- python/ebook_search/bm25_corpus.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/python/ebook_search/bm25_corpus.py b/python/ebook_search/bm25_corpus.py index 79172a4..6c8a15d 100644 --- a/python/ebook_search/bm25_corpus.py +++ b/python/ebook_search/bm25_corpus.py @@ -172,13 +172,7 @@ def fetch_bm25_corpus_records(session: Session) -> list[dict[str, object]]: EbookSource.author.label("source_author"), EbookChapter.title.label("chapter_title"), EbookChunk.page_label.label("page_label"), - func.concat_ws( - " ", - EbookSource.title, - EbookSource.author, - EbookChapter.title, - EbookChunk.search_text, - ).label("bm25_text"), + EbookChunk.search_text.label("bm25_text"), ) .select_from(EbookChunk) .join(EbookSource, EbookSource.id == EbookChunk.source_id)