code: protected void appendFacetOption(StringBuffer query, final String name, final String value) {
  
          query.append(" facet.").append(name).append("=").append(value);
      }
docs: Appends the query part for the facet to the query string.
  @param query The current query string.
  @param name The name of the facet parameter, e.g. "limit", "order", ....
  @param value The value to set for the parameter specified by name.