From a4fe2c6b64a0b43016d3fa41180ae9112f9a3bcf Mon Sep 17 00:00:00 2001 From: sysops Date: Sun, 10 May 2026 22:44:05 +0200 Subject: [PATCH] fix(PROJ-44): CALL SNIPPETS entfernt Options-Args (Manticore 25 akzeptiert exakt 3) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Manticore 25.0.0 wirft SNIPPETS() expects exactly 3 arguments wenn zusätzliche Options-Strings übergeben werden. Standard-Marker / sind Manticore-Default, daher sind keine Options nötig. Co-Authored-By: Claude Sonnet 4.6 --- internal/index/manticore_snippet.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/internal/index/manticore_snippet.go b/internal/index/manticore_snippet.go index f0e89b4..0152bb1 100644 --- a/internal/index/manticore_snippet.go +++ b/internal/index/manticore_snippet.go @@ -102,10 +102,12 @@ func (idx *manticoreIndex) buildSnippet(mailID, query, matchField string) (strin return "", nil } - // CALL SNIPPETS(text, table, query, ...options). - // Manticore returns a single-column, single-row result. + // CALL SNIPPETS(text, table, query). + // Manticore 25+ accepts exactly 3 arguments; options-as-extra-args were + // removed in this version. Default markers are already /, which is + // what we need. Manticore returns a single-column, single-row result. row := idx.db.QueryRow( - `CALL SNIPPETS(?, ?, ?, 'before_match=', 'after_match=', 'limit=240', 'around=12')`, + `CALL SNIPPETS(?, ?, ?)`, source, idx.table, query, ) var snippet string