CodeIgniter Forums

Full Version: Sphinx Configuration
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

Hi All,

Can anyone tell me how to configure Sphinx API with Codeigniter. I placed sphinxapi in libraries and in controller i loaded that library. throug controller i am checking the output for the query i gave in model. My query is passing into api but displaying empty results. I dont know if that api automatically takes database credentials or not.

$query = "select * from users where name LIKE '%$name%'";

  $result_array = $this->sphinxclient->Query($query);
  return $result_array;

I have installed sphinx in my ubuntu and i have given database credentials in sphinx.conf(located in /usr/local/etc). Now how can i make sure that my sphixapi which is in my application is having database credentials to give the results for the query i passed from controller.