Sphinx Configuration - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Sphinx Configuration (/showthread.php?tid=53965) |
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%'"; 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. |