Highlight with backend request?

Hi,

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 = [
                "coreTitle:30",
                "coreDescription:30",
                "pageText:4"
            ],
            AttributesToHighlight = [
                "coreTitle",
                "coreDescription",
                "pageText"
            ],
            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.