Not returning all facet results

Vote:
 

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?

Thanks
Danny

#81016
Feb 07, 2014 10:05
Vote:
 

By default, only 10 facets will be returned. To increase this, use:

.TermsFacetFor(x => x.Category, facet => facet.Size = 25)

    

#81017
Feb 07, 2014 10:17
Vote:
 

In your search query that is, prior to calling GetResult/GetContentResult

#81018
Feb 07, 2014 10:18
Vote:
 

Thanks Per, just what I was looking for! Worked a treat!

Cheers

Danny

#81023
Feb 07, 2014 10:42
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.