London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
Hi Rob
You need to request the facets then extract them from the search results as shown below:
var tagCounts = searchResults .TermsFacetFor(x => x.Tags).Terms; foreach(var tagCount in tagCounts) { string tag = tagCount.Term; int count = tagCount.Count; Console.WriteLine(tag + ": " + count); }
Please note this is extracted from the officual Find documentation here:
David
How on the view do we render a facet?