Recently, DEV has started the migration from Algolia to Elasticsearch. Since I am often asked what is the best way to get started with Elasticsearc...
For further actions, you may consider blocking this person and/or reporting abuse
Nice article ma'am awesome as always. Question though. So after getting the results, you will still have to query in your own database so you can get the full information needed? like the comments of the posts, the owner, users who liked, and some metadata? thank you again. :)
If you want other data associated with tags then yes. Or you store some of that data in Elasticsearch in another index and fetch it that way.
Hey, Molly! Thanks for writing such a great article/walkthrough. I saw there are gems that act as a wrapper for elastic search like Searchkick.
How do things like that differ from the implementation youโve shown above? Are there performance benefits to doing it either way?
The benefit of using the plain ruby wrapper is that you have much more control over what and how you are searching. The more you abstract the Elasticsearch interactions away like with Searchkick the less control you have. The trade-off is that it can be very easy to get up and running quickly with minimal understanding of Elasticsearch itself.
I see. Makes total sense. Thanks for the quick reply!
Yay for Elasticsearch! We run with docker locally and it makes life easier for us, especially for upgrades and it's nice to be able to wipe our volumes to start with a clean slate.
Great write up, as always!
Gracias!! for this great tutorial, only one point for the part of installing the elasticsearch iI want to suggest to use testcontainers ruby github.com/testcontainers/testcont...
Thank you so much for writing this! I'm leveraging a lot of what Forem is doing for Brave's creators site. Plus the docs written in the repo are great. ๐
Hi Molly! Thanks for this article. I would like to know what made you decide to switch from Algolia to Elastic? Is that the price? Or just because you love Elastic in general?
Cool! As expected. I was wondering because I'm kind of in the business.
I'm working on an Algolia open-source alternative. It's free, self-hosted and built-in user-facing search. I'm putting the link here just in case. github.com/meilisearch/meilisearch
Interesting! A FTS engine in Rust! Starred :)