public function search($query, $offset = NULL, $docs = NULL, $list = NULL, $ordering = NULL, $returnType = DOC_TYPE_SIMPLEXML, $stemLang = NULL) {
		$request = new CPS_SearchRequest($query, $offset, $docs, $list);
		if (!is_null($ordering))
			$request->setOrdering($ordering);
		if (!is_null($stemLang))
			$request->setStemLang($stemLang);
		$this->_lastResponse = $this->_connection->sendRequest($request);
		return $this->_lastResponse->getDocuments($returnType);
	}