kicksearch is a simple rails app to demonstrate the usage of Elasticsearch and Searchkik with Rails.
- Uses Searchkick for Model data search powered by Elasticsearch
- Uses turbo to render search result data
- rails 7
- a working elasticsearch instance running on port 9200
Follow this tutorial to install with docker.
You can disable security locally if you want by using this config
git clone https://github.com/2kabhishek/kicksearch
cd kicksearch
# Setup elasticsearch config, es01 is the container name here
docker cp ./elasticsearch.yml es01:/usr/share/elasticsearch/config/elasticsearch.yml
bundle install
bin/rails db:migrate
bin/rails s
If you do not see search results, try running Post.reindex
from rails console.
Was integrating elasticsearch for a work project, decided to learn by doing
- Initial setup of elasticsearch with security was a bit tricky
- I learned about Searchkick and Turbo usage.
- gogeo β Geocoder demo
- swaggerize β rswag and swagger api demo
β hit the star button if you found this useful β
Source | Blog | Twitter | LinkedIn | More Links | Other Projects