Do not send back the full content in the search response

This commit is contained in:
André Duffeck
2026-03-19 10:09:14 +01:00
parent 7234115ae4
commit 10bc14130e

View File

@@ -92,7 +92,9 @@ func (b *Backend) Search(ctx context.Context, sir *searchService.SearchIndexRequ
)
}
searchParams := opensearchgoAPI.SearchParams{}
searchParams := opensearchgoAPI.SearchParams{
SourceExcludes: []string{"Content"}, // Do not send back the full content in the search response, as it is only needed for highlighting and can be large. The highlighted snippets will be sent back in the response instead.
}
switch {
case sir.PageSize == -1: