Skip to content

Instantly share code, notes, and snippets.

@vyper
Last active December 23, 2015 15:09
Show Gist options
  • Save vyper/6653262 to your computer and use it in GitHub Desktop.
Save vyper/6653262 to your computer and use it in GitHub Desktop.
Arquivos para o post: Melhorando o tempo de pesquisa utilizando Sphinx
development:
adapter: mysql2
username: root
password:
database: sphinx_test_development
test:
adapter: mysql2
username: root
password:
database: sphinx_test_test
production:
adapter: mysql2
username: root
password:
database: sphinx_test_production
ThinkingSphinx::Index.define :user, with: :active_record do
indexes firstname
indexes lastname
indexes nickname
indexes email
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment