Showing posts with label thinking sphinx. Show all posts
Showing posts with label thinking sphinx. Show all posts

Monday, March 1, 2010

ThinkingSphinx GetLastError in Windows

I have the following error when I start or stop or restart the sphinx server after Iaccidentally restarted windows while sphinx was runnung:

WARNING: could not open pipe (GetLastError()=2)
FATAL: stop: error terminating pid 24256

Then, look up sphinx_conf.pid file and delete the file to remove pid 24256. That is, I have a log file named "searchd.development.pid" under "rails_project/log". The pid file has "24256". Thus, I deleted the file and "rake ts:start" and works well.

Thursday, February 11, 2010

ThinkingSphinx Basic command

1. Create a cofiguration file as config/development.sphinx.conf:
run rake ts:config

2. Indexin data:
run rake ts:in
or
run rake ts:index

3. Run ThinkingSphinx server daemon:
run rake ts:daemon:start
or not as a daemon
run rake ts:start