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:
@@ -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 <b>/<b/>, which is
|
||||
// what we need. Manticore returns a single-column, single-row result.
|
||||
row := idx.db.QueryRow(
|
||||
`CALL SNIPPETS(?, ?, ?, 'before_match=<b>', 'after_match=</b>', 'limit=240', 'around=12')`,
|
||||
`CALL SNIPPETS(?, ?, ?)`,
|
||||
source, idx.table, query,
|
||||
)
|
||||
var snippet string
|
||||
|
||||
Reference in New Issue
Block a user