Setup Searchkick Gem With Elasticsearch | Ruby On Rails 7 Tutorial

  Рет қаралды 6,461

Deanin

Deanin

Күн бұрын

Setup search using Searchkick, Turbo, and Eleasticsearch. This allows for a powerful search solution with incredibly flexibility in Rails.
Checkout my course(s) at: learn.deanin.com
Today we add Searchkick and Elasticsearch to a project, implement a search bar and use turbo for no-refresh searching and indexing.
Gist Commands: gist.github.co...
Links:
github.com/ank...
www.digitaloce...
learn.microsof...
magento.stacke...
Join this channel to help support these videos:
/ @deanin
Follow me on social media:
linktr.ee/deanin
If you liked this video, please consider subscribing: t.co/RZ4EwP0F2a
#Deanin #Software #Programming

Пікірлер: 17
@ledockol
@ledockol Жыл бұрын
Great! Thanks! PS Install elasticsearch on Mac OS: brew tap elastic/tap brew install elastic/tap/elasticsearch-full brew services start elastic/tap/elasticsearch-full Second, in GemFile change: gem "elasticsearch", "< 7.14" # gem "elasticsearch", "~> 8.5" # not worked on Ventura and elasticsearch > 7.14
@Deanin
@Deanin Жыл бұрын
Thank you! Pinning this for the Mac users. 🙂
@PreRenderedRealities
@PreRenderedRealities Жыл бұрын
Dean, I don't know how may times your channel has cleared up confusions and questions as a new Rails dev. Thank you.
@Deanin
@Deanin Жыл бұрын
Glad to hear it! As funny as it sounds, it's also how I've cleared up a lot of these questions for myself haha.
@NoobCodeSaga
@NoobCodeSaga Жыл бұрын
I've been learning so much with you, thank you.
@carltanner3632
@carltanner3632 Жыл бұрын
Super helpful, thanks Dean.
@rafaljaroszewicz8695
@rafaljaroszewicz8695 Жыл бұрын
I literally wanted to ask about this under your last video, nice! Also, note to people using Opensearch, it might be worth adding plugins.security.disabled: true To your opensearch.yml if you run into any connection problems related to unsafe connection(if you're just running your local stuff without https), basically what was said in the video but for Opensearch.
@Deanin
@Deanin Жыл бұрын
This setup process was kind of annoying so I decided to make a video covering it. Hope it helps! PS: Video is still processing so it might be blurry until KZbin gives us a 1080p version. Sorry about that!
@ddd2283
@ddd2283 Жыл бұрын
Hi ! We using opensearch in production, it was helpfull for me!
@azizdevfull
@azizdevfull Жыл бұрын
useful video : )
@fugeeohu9357
@fugeeohu9357 11 ай бұрын
Can I ask one dumb question? What happens now to the index view now that you've taken the @ out of @posts ?
@IvanOrdonezGeotechnical
@IvanOrdonezGeotechnical 11 ай бұрын
Can you search the whole site and not just the Posts? Thanks
@Arnaudband
@Arnaudband Жыл бұрын
Hi Dean, thank you for sharing the tutorial. When I tried to run Post.reindex, I got this error: The client is unable to verify that the server is Elasticsearch. Some functionality may not be compatible if the server is running an unsupported product.
@Deanin
@Deanin Жыл бұрын
First time I've seen this. From what I can tell it looks like a version issue, but that's about all I could find 🙃 I'll look into this more when I get home, sorry about that
@ddd2283
@ddd2283 Жыл бұрын
If someone catch the error - "Unathorized" or "Faraday Error" create some file below "initializers" folder with this content: Searchkick.client_options = { url: 'localhost:9200', retry_on_failure: true, user: "admin", password: "admin", transport_options: { request: { timeout: 250 }, ssl: { verify: false } } }
@huthaifaTaya
@huthaifaTaya Жыл бұрын
I had a problem after starting the service on wsl2 on windows 10 which prevented me from accessing the service from windows browser when hitting localhost:9200, turns out instead of 'localhost' at 3:10 i used '_local_' and it worked
@ralfspavars5690
@ralfspavars5690 5 ай бұрын
Thank you sooooo mutch! You saved my sanity
АЗАРТНИК 4 |СЕЗОН 1 Серия
40:47
Inter Production
Рет қаралды 1,4 МЛН
Players vs Corner Flags 🤯
00:28
LE FOOT EN VIDÉO
Рет қаралды 37 МЛН
Electric Flying Bird with Hanging Wire Automatic for Ceiling Parrot
00:15
Shopping Cart Order Sessions In Rails 7 With Turbo
26:21
Install Ruby On Rails 7 With Docked (2 Commands!)
10:20
Deanin
Рет қаралды 4,5 М.
Ruby on Rails Job Market 2024 - What's Really Going On?
6:27
Till Carlos
Рет қаралды 1,4 М.
Vue CRUD App With A Ruby On Rails 7 API Tutorial
22:17
Deanin
Рет қаралды 8 М.
Digging into Turbo with Ruby on Rails 7
44:50
webcrunch
Рет қаралды 16 М.
Vue And Vite With Hot Reloading In Ruby On Rails 7
11:51
Pundit Gem For Authorization In Ruby On Rails 7
21:27
Deanin
Рет қаралды 7 М.
No, Einstein Didn’t Solve the Biggest Problem in Physics
8:04
Sabine Hossenfelder
Рет қаралды 271 М.
АЗАРТНИК 4 |СЕЗОН 1 Серия
40:47
Inter Production
Рет қаралды 1,4 МЛН