Highlight with backend request?


I make a backend request from ASP.NET Core with highlighting. I don’t find any documentation about highlighting and snippets.

This is my example query

        var result = await indexes.Content.SearchAsync<IndexedContent>(new Query
            SearchQuery = request.Query,
            AttributesToSnippet = [
            AttributesToHighlight = [
            SnippetEllipsisText = "[...]",
            HighlightPostTag = "</strong>",
            HighlightPreTag = "<strong>",
            HitsPerPage = 5,
        }, ct: cancellationToken);

        return result.Hits;

But when I use that, the ellipsis text is not applied and the result has nothing that would help with the highlighting topic.