Term facet count

Vote:
 

TermsFacetFor is only giving me 10 terms, but I now there should be more. Here is my query for retreiving the facets:

var result = 
   GetDealersQuery()
         .TermsFacetFor(x => x.CountiesList)
         .Take(0)
         .GetPagesResult();

List<string> terms = result.TermsFacetFor(x => x.CountiesList).Select(x => x.Term).ToList();

    

Is there a default count on facets? I have tried using Take without success. I can see that result is returning all the pages of interest.

#71941
Jun 02, 2013 12:23
Vote:
 

10 is the defailt number of items returned for a facet. To have more returned use:

GetDealersQuery()
         .TermsFacetFor(x => x.CountiesList, x => x.Size = 20)
         .Take(0)
         .GetPagesResult();
#71952
Jun 03, 2013 9:05
Vote:
 

Henrik, you're the bomb! :) Thanks! 

#71955
Jun 03, 2013 10:03
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.