code: public void setValueOn(String newValue, @Nullable String newName) {
          if (isChecked()) { // refining on valueOn: facetRefinement needs an update
              searcher.updateFacetRefinement(attribute, valueOn, false)
                      .updateFacetRefinement(newName != null ? newName : attribute, newValue, true)
                      .search();
          }
          this.valueOn = newValue;
          applyEventualNewAttribute(newName);
      }
docs: Changes the Toggle's valueOn, updating facet refinements accordingly.
  
  @param newValue valueOn's new value.
  @param newName  an eventual new attribute name.