I’ve got the following snippet of code and its all working, and bringing in the data I want, but its bringing in too much data for my search result. I would like to break it down to 300 words. I have found the code I need to attach to the description field, but I am uncertain of how to do this. The code I believe will take the first 300 words is
Split(' ').Take(300).Aggregate((a, b) => a + " " + b);
The linq code I am using is below:
searchResults.DataSource = from r in response.Results
select new
{
Title = r[SearchContentProperty.Title],
Summary = r[SearchContentProperty.HighlightedSummary],
Id = r[SearchContentProperty.Id] * 10,
Quicklink = r[SearchContentProperty.QuickLink],
Description = r[SearchContentProperty.Description]
};
how about