fix(PROJ-44): CALL SNIPPETS entfernt Options-Args (Manticore 25 akzeptiert exakt 3)

Manticore 25.0.0 wirft SNIPPETS() expects exactly 3 arguments wenn
zusätzliche Options-Strings übergeben werden. Standard-Marker <b>/<b/>
sind Manticore-Default, daher sind keine Options nötig.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
sysops
2026-05-10 22:44:05 +02:00
parent 032892bc2b
commit a4fe2c6b64
+5 -3
View File
@@ -102,10 +102,12 @@ func (idx *manticoreIndex) buildSnippet(mailID, query, matchField string) (strin
return "", nil return "", nil
} }
// CALL SNIPPETS(text, table, query, ...options). // CALL SNIPPETS(text, table, query).
// Manticore returns a single-column, single-row result. // Manticore 25+ accepts exactly 3 arguments; options-as-extra-args were
// removed in this version. Default markers are already <b>/<b/>, which is
// what we need. Manticore returns a single-column, single-row result.
row := idx.db.QueryRow( row := idx.db.QueryRow(
`CALL SNIPPETS(?, ?, ?, 'before_match=<b>', 'after_match=</b>', 'limit=240', 'around=12')`, `CALL SNIPPETS(?, ?, ?)`,
source, idx.table, query, source, idx.table, query,
) )
var snippet string var snippet string