use \li3_sphinx\http\Sphinx; Sphinx::config(array( 'default' => array( 'production' => array( 'host' => '127.0.0.1', 'port' => '3312' ), 'test' => array( 'host' => '10.0.1.203', 'port' => '3312' ), 'development' => array( 'host' => '127.0.0.1', 'port' => '3312' ), ) )); $client = Sphinx::get(); $results = $client->Query('sphinx based fulltext search');
Document for Sphinx API is here: http://sphinxsearch.com/docs/current.html