Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pat/thinking-sphinx-examples
Example of advanced search form.
https://github.com/pat/thinking-sphinx-examples
Last synced: about 7 hours ago
JSON representation
Example of advanced search form.
- Host: GitHub
- URL: https://github.com/pat/thinking-sphinx-examples
- Owner: pat
- Created: 2014-11-25T11:50:48.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2020-06-24T23:51:32.000Z (over 4 years ago)
- Last Synced: 2024-10-09T09:44:01.774Z (3 months ago)
- Language: Ruby
- Size: 35.2 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
To get this running, you'll need Sphinx and PostgreSQL installed. If you want to use MySQL instead of PostgreSQL, that's fine, just modify the `Gemfile` and `config/database.yml` accordingly.
Then, once you've bundled, run the following to set things up:
```
rake db:create db:migrate ts:rebuild
rails s
```Open up http://127.0.0.1:3000 and you'll find a very basic index page with both simple and advanced search options. Nothing too crazy here, and don't take the form layout as an example of something good and proper - it's just an example to show what's possible.
`app/controllers/articles_controller.rb` has all the smarts - and it could be cleaner too, but I wanted to go with simple and obvious.