original_string: public function returnedFields($fields) {
  		if(empty($this->data['returnedFields'])) {
  			$this->data['returnedFields'] = array();
  		}
  		$this->data['returnedFields'] = array_unique(array_merge($this->data['returnedFields'], (array)$fields));
  		return $this;
  	}
code: public function returnedFields($fields) {
  		if(empty($this->data['returnedFields'])) {
  			$this->data['returnedFields'] = array();
  		}
  		$this->data['returnedFields'] = array_unique(array_merge($this->data['returnedFields'], (array)$fields));
  		return $this;
  	}
code_tokens: public function returnedFields ( $ fields ) { if ( empty ( $ this -> data [ 'returnedFields' ] ) ) { $ this -> data [ 'returnedFields' ] = array ( ) ; } $ this -> data [ 'returnedFields' ] = array_unique ( array_merge ( $ this -> data [ 'returnedFields' ] , ( array ) $ fields ) ) ; return $ this ; }
docstring: Configure fields to return
  @param array or string $fields
  @return OpenSearchServer\Search
docstring_tokens: Configure fields to return