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