original_string: public function facet($field, $min = 0, $multi = false, $postCollapsing = false) {
  		if(empty($this->data['facets'])) {
  			$this->data['facets'] = array();
  		}
  		$this->data['facets'][] = array(
  			'field' => $field,
  			'minCount' => $min,
  			'multivalued' => $multi,
  			'postCollapsing' => $postCollapsing
  		);
  		return $this;
  	}
code: public function facet($field, $min = 0, $multi = false, $postCollapsing = false) {
  		if(empty($this->data['facets'])) {
  			$this->data['facets'] = array();
  		}
  		$this->data['facets'][] = array(
  			'field' => $field,
  			'minCount' => $min,
  			'multivalued' => $multi,
  			'postCollapsing' => $postCollapsing
  		);
  		return $this;
  	}
code_tokens: public function facet ( $ field , $ min = 0 , $ multi = false , $ postCollapsing = false ) { if ( empty ( $ this -> data [ 'facets' ] ) ) { $ this -> data [ 'facets' ] = array ( ) ; } $ this -> data [ 'facets' ] [ ] = array ( 'field' => $ field , 'minCount' => $ min , 'multivalued' => $ multi , 'postCollapsing' => $ postCollapsing ) ; return $ this ; }
docstring: Add a facet to search results
  @return OpenSearchServer\Search\Search
docstring_tokens: Add a facet to search results