• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sphinx Configuration

#1
[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.






Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.