CodeIgniter Forums
Sphinx Configuration - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Sphinx Configuration (/thread-53965.html)



Sphinx Configuration - El Forum - 08-16-2012

[eluser]hema[/eluser]
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.


Code:
$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.