volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Term facet count

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

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

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