Intelligent Search in Rails with Typesense

(avohq.io)

60 points | by adrianthedev 6 days ago ago

12 comments

  • tharropoulos 6 hours ago ago

    Typesense also maintains a native Rails integration (fork of Algolia's one). You can automatically index on write, conditionally index documents based on business logic and a bunch more.

    https://github.com/typesense/typesense-rails

  • adenta 3 days ago ago

    I love Jason Bosco (the typesense guy). I love Ruby on Rails. But I've been using Meilisearch more and more over the past year on client projects. They maintain a top of the line Rails integration: https://github.com/meilisearch/meilisearch-rails

    • tharropoulos a day ago ago

      Member of the Typesense team here.

      As I'm not super versed in the Rails ecosystem, could you share some specifics on Meilisearch integration's features so we could take some inspiration on improving ours? Would love some feedback.

    • sandreas 3 days ago ago

      MeiliSearch is the top thing to try on my list - did you use it in production environments? If so, how did the deployment go? And how is your experience about the minimum requirements for a stable search server?

      I would be very interested in a short user review...

  • Alifatisk 3 days ago ago

    Glad to see the Avo project live and well!

    I previously used Opensearch for my Rails project, it was quite heavy piece of service to run in the docker compose environment. I said to my myself that on the next project, I will eitber use Typesense or Meilisearch. I'll bookmark this guide for when the time comes

    Regarding the command to create the Rails app, I would have done this for the playground project

    rails new typesense -d sqlite3 -c tailwind -j esbuild --skip-test --skip-jbuilder --skip-action-mailbox --skip-action-text

    • adrianthedev 3 days ago ago

      I think I have a .railsrc file similar to your settings

      Are you a fellow Avo user yourself?

      • Alifatisk 3 days ago ago

        No, I haven't had the opportunity yet but it is on my list. But I am a subscriber of your Youtube channel and have been receiving updates through there

  • dewey 3 days ago ago

    I’m going to give Typesense a try today. I’m just working on a Rails app and went from Meilisearch (which is great) to Elastic for some more complex aggregation queries but this seems like a good option for instant search like behavior too.

    • adrianthedev 3 days ago ago

      yup. You should! The founder is also a great guy who cares about the Open Source community as well

  • jprokay13 3 days ago ago

    I’m debating Typesense vs. Meilisearch for a project. My use case isn’t particularly complex so either fits.

    Curious if anyone has any horror stories about either

    • cpursley 3 days ago ago

      What’s wrong with just pushing Postgres as far as possible (you said it wasn’t complex)?

      • jprokay13 3 days ago ago

          yet again I reached for a dependency when Postgres is enough