How manage FacetOptions discovery_value_limit with more than 20 values?

59 views
Skip to first unread message

Handerson Contreras

unread,
Mar 15, 2017, 12:28:10 PM3/15/17
to Google App Engine
Hi everyone

I'm working with Google Search API


I having a problem related to facets, in the documentation say that a facet cannot have more than 20 values and I need more than of those 20.

Ej:

CoursesIndex:

     fields:
         name
         description
         available_for

     facets:
         available_for


the available_for field is a list of schools names, so in the frontend i can display a dropdown with the schools names for which course is available. All was going well until I found that dropdown did not have more that 20 values, so I read the documentation (https://cloud.google.com/appengine/docs/standard/python/search/faceted_search) which says that  discovery_value_limit for FacetOptions class can´t be more that 20.

What do you recommend me if I need to display more than 20?
 



Jordan (Cloud Platform Support)

unread,
Mar 17, 2017, 4:15:23 PM3/17/17
to Google App Engine
You may be able to open a Feature Request for the Search API to increase the 'discovery_value_limit'. 

As there is no limit to an actual index, you may want to instead create an index of schools with their courses, and perform a course search on the index to retrieve the resulting schools.  
Reply all
Reply to author
Forward
0 new messages