Do not send back the full content in the search response

This commit is contained in:
André Duffeck committed 2026-03-23 13:52:09 +01:00
1 parent 7234115ae4
commit 10bc14130e
1 file changed
+3 -1
+3 -1
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: