code: protected function setSearchFacets(SessionInterface $session, $facets) {
  		$session->set($this->getSessionPrefix() . '_facets', \json_encode($facets));
  	}
docs: Sets the given search facets in the user's session
  
  @param SessionInterface $session
  @param string[string][] $facets