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;
	}
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;
	}
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 ; }
Configure fields to return
@param array or string $fields
@return OpenSearchServer\Search
Configure fields to return