CodeIgniter Forums
Sphinx Configuration - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: Sphinx Configuration (/thread-53965.html)

Sphinx Configuration - El Forum - 08-16-2012

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.