List<SearchItem> results = session
.Query<SearchItem, ContentSearchIndex>()
.Highlight(x => x.Text, 128, 1, new HighlightingOptions
{
PreTags = new[] { "**" },
PostTags = new[] { "**" }
}, out Highlightings highlightings)
.Search(x => x.Text, "raven")
.ToList();
List<SearchItem> results = session
.Advanced
.DocumentQuery<SearchItem, ContentSearchIndex>()
.Highlight(x => x.Text, 128, 1, new HighlightingOptions
{
PreTags = new[] { "**" },
PostTags = new[] { "**" }
}, out Highlightings highlightings)
.Search(x => x.Text, "raven")
.ToList();