I have set up a google custom search engine for my site and it works really well. I have also set up refinements for different categories in the site. E.g. Cups, Saucers, Plates
When I do a search using the api or search box, for "China Cups" google returns good results, along with refinement labels for All, Cups, Saucers and Plates.
However, clicking on Saucers or Plates refinement tab returns zero results. How can I prevent google from returning refinement tabs that will yield zero results for that search?
PS: Even if I adjust max top refinements to 2, google will return "All, Cups, Saucers" as refinements. Saucer refinement will still yield zero results.
Yes the refinements simply display possible filters, without checking the content. In contrast, facets include the value count, which can be zero if that would be helpful to the users.
The Google Custom Search is giving you filters, so you would have to do your own pre-flight counting.