Sphinx 2.0.1 PHP API library updated

Development-related discussion, including bundled plugins
meyercr
Bear Rating Trainee
Bear Rating Trainee
Posts: 9
Joined: 30 Jul 2011, 03:03

Sphinx 2.0.1 PHP API library updated

Postby meyercr » 04 Aug 2011, 22:38

On Linux, I setup Sphinx searching, from source using

./configure --prefix=/usr/local/sphinx
make
make install

If you are using Sphinx 2.0.1-beta
You will need to update the TTRSS version of lib/sphinxapi.php to what is included in their distribution -- sphinx-2.0.1-beta/api/sphinxapi.php

When using the TTRSS sphinx.conf file you will need to update a few paths which paths relative to /usr/local/sphinx
  • path = /usr/local/sphinx/var/data/ttrss
  • log = /usr/local/sphinx/var/log/searchd.log
  • query_log = /usr/local/sphinx/var/log/query.log
  • pid_file = /usr/local/sphinx/var/run/searchd.pid

Set permission correctly for /usr/local/sphinx/var/* (So the daemon has write priv)
Update config.php to turn on SPHINX_ENABLED
Make sure you start the sphinx search daemon /usr/local/sphinx/bin/searchd

With this the search runs smoothly, Very nice :)

Note: I am not sure if I should check-in this new version to GitHub? It should be backward compatible?

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Sphinx 2.0.1 PHP API library updated

Postby fox » 04 Aug 2011, 23:58

Merged that. I hope it works with older Sphinx though. Also, not sure what sphinxapi.php.08_04_11_183927 was doing in there. :)

meyercr
Bear Rating Trainee
Bear Rating Trainee
Posts: 9
Joined: 30 Jul 2011, 03:03

Re: Sphinx 2.0.1 PHP API library updated

Postby meyercr » 05 Aug 2011, 19:34

I was feeling paranoid, and used my time-stamp backup sh script :)

I will download the earlier Sphinx release 0.9.9 (Dec 2009) and see what changes, if any show up in the php api code.

-Craig


Return to “Development”

Who is online

Users browsing this forum: No registered users and 3 guests