How can I get all facet results returned, as right now it appears to only be returning 9 or 10 results (doesn't appear to be consistent)
I include the facet like:
".TermsFacetFor(x => x.Category)"
and get them back with
var categoryTerms = results .TermsFacetFor(x => x.Category).Terms.OrderBy(i => i.Term);
Any pointers?
ThanksDanny
By default, only 10 facets will be returned. To increase this, use:
.TermsFacetFor(x => x.Category, facet => facet.Size = 25)
In your search query that is, prior to calling GetResult/GetContentResult
Thanks Per, just what I was looking for! Worked a treat!
Cheers
Danny
How can I get all facet results returned, as right now it appears to only be returning 9 or 10 results (doesn't appear to be consistent)
I include the facet like:
".TermsFacetFor(x => x.Category)"
and get them back with
Any pointers?
Thanks
Danny