Showing posts with label sphinx. Show all posts
Showing posts with label 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

Tuesday, November 10, 2009

Sphinx Dynamic index

Once your Sphinx search engine is connected to your datasource, when the datasource is updated, the search engine also need to be searchable for the updated data.

Thus, the engine should be dynamically reindexed with the following command at the terminal (or DOS command prompt)

indexer -c %your_rails_project%/config/sphinx.conf --rotate --all

or

indexer --config %your_rails_project%/config/sphinx.conf --rotate --all