Limit the highlighter to two fragments

This commit is contained in:
André Duffeck
2026-03-24 09:39:32 +01:00
parent 4fa5198501
commit 8a83eea742
+3 -2
View File
@@ -113,8 +113,9 @@ func (b *Backend) Search(ctx context.Context, sir *searchService.SearchIndexRequ
osu.SearchBodyParams{
Highlight: &osu.BodyParamHighlight{
HighlightOptions: osu.HighlightOptions{
PreTags: []string{"<mark>"},
PostTags: []string{"</mark>"},
NumberOfFragments: 2,
PreTags: []string{"<mark>"},
PostTags: []string{"</mark>"},
},
Fields: map[string]osu.HighlightOptions{
"Content": {