code: @Override
    public FacetResult getFacetResult(String name) {
      if (facets == null || facets.isEmpty()) {
        return null;
      }
      return facets.get(name);
    }
docs: Returns the named facet results.
  @param name The name of the facet.
  @return Returns the results for the named facet or null if no such named facet exists.