You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#install from apt-get
apt-get install sphinxsearch
#enable auto start with: START=yes
nano /etc/default/sphinxsearch
#install sphinx gem
gem install sphinx
#run the following from the base to generate the files you need
bundle exec rake ts:index RAILS_ENV=production
bundle exec rake ts:start RAILS_ENV=production
#link the config to auto run without rake starting it up each time
ln -s web/config/production.sphinx.conf /etc/sphinxsearch/sphinx.conf
#kill sphinxsearch which rake started (ps aux | grep sphinx) then start the daemon
service sphinxsearch start
#continue to rebuilding and reindexing below
Enabling search
By default search in Teambox is disabled. You need to modify “config/teambox.yml” in order to enable it:
# Enable search (you must have thinking_sphinx installed and configured)
allow_search: false
Once you have enabled search, you need to generate the search index:
$ bundle exec rake ts:index RAILS_ENV=production
Then simply run the following to start sphinx:
$ bundle exec rake ts:start RAILS_ENV=production
Finally, you will need to periodically update the search index (especially after updating Teambox sources) in order to keep up to date: