Skip to content

2KAbhishek/kicksearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

21 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

License People Stars Forks Watches Last Updated

Elasticsearch Demo with Rails πŸ”ŽπŸ’Ž

kicksearch in action
kicksearch in action

kicksearch is a simple rails app to demonstrate the usage of Elasticsearch and Searchkik with Rails.

✨ Features

  • Uses Searchkick for Model data search powered by Elasticsearch
  • Uses turbo to render search result data

Setup

⚑ Requirements

  • 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

πŸš€ Installation

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

πŸ’» Usage

bundle install
bin/rails db:migrate
bin/rails s

If you do not see search results, try running Post.reindex from rails console.

Behind The Code

🌈 Inspiration

Was integrating elasticsearch for a work project, decided to learn by doing

πŸ’‘ Challenges/Learnings

  • Initial setup of elasticsearch with security was a bit tricky
  • I learned about Searchkick and Turbo usage.

🧰 Tooling

πŸ” More Info


⭐ hit the star button if you found this useful ⭐

Source | Blog | Twitter | LinkedIn | More Links | Other Projects

Releases

No releases published

Sponsor this project

 

Packages

No packages published