for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Manticoresearch\Endpoints\Pq;
use Manticoresearch\Exceptions\RuntimeException;
use Manticoresearch\Request;
/**
* Class Search
* @package Manticoresearch\Endpoints\Pq
*/
class Search extends Request
{
* @var string
protected $index;
* @return mixed|string
public function getMethod()
return 'POST';
}
public function getPath()
if (isset($this->index)) {
return "/json/pq/" . $this->index . "/_search";
throw new RuntimeException('Index name is missing.');
* @return mixed
public function getIndex()
return $this->index;
* @param mixed $index
public function setIndex($index)
$this->index = $index;