ElasticSearch and Ruby on Rails - Part 2 - Tips

Поділитися
Вставка
  • Опубліковано 1 жов 2024

КОМЕНТАРІ • 16

  • @EngineerBeliefs
    @EngineerBeliefs 3 роки тому +3

    Hey Phil,
    Thank you for the tutorial :)
    How do you test ElasticSearch in Rails? Namely, unit tests.. :)

    • @PhilSmy
      @PhilSmy  3 роки тому +2

      Not totally sure what you mean. I wouldn't call out to ES in a test, I would mock the response.
      Or do you mean testing that your queries are returning the right results? Really the only way to do that is to have a test ES instance and populate it (like you do with your main DB). I am sure you knew this already :-) I've actually never done that, but I guess you need to have some sort of setup for the test harness that does the population of ES.
      It's a good question!

  • @Fiskus9
    @Fiskus9 3 роки тому +2

    Thank you very much for this video! I've learned a lot from it :)

  • @baronecesar
    @baronecesar 3 місяці тому

    Amazing video, thanks for sharing

    • @PhilSmy
      @PhilSmy  3 місяці тому

      Thanks for watching!

  • @ПолюваннятаРиболовлязБратамиБл

    Hello, tell me how you can use rails in ElasticSearch www.elastic.co/guide/en/elasticsearch/reference/current/search-count.html
    this is what i do in kibana and everything works fine for me
    how can this be applied in rails
    GET / index / _count
    {
    "query": {
    "bool": {
    "must": {
    "match": {"name": "Wardrobe"}
    },
    "filter": {
    "term": {
    "status": "trash"
    }
    }
    }
    },
    "sort": [
    {
    "id": "asc"
    }
    ]
    }

  • @NeroRaliShow
    @NeroRaliShow 3 роки тому +1

    Thanks for the video!

    • @PhilSmy
      @PhilSmy  3 роки тому

      You're welcome!

  • @nsikanikpoh8594
    @nsikanikpoh8594 Рік тому

    Thanks so much, Phil. You are doing a great job.

    • @PhilSmy
      @PhilSmy  Рік тому

      I appreciate that! Thank you!

  • @CerFrus
    @CerFrus 2 роки тому

    Your material is wonderful, thanks again for another video

    • @PhilSmy
      @PhilSmy  2 роки тому +1

      Thank you! Cheers!

  • @AtumSS
    @AtumSS 2 роки тому

    Why not chewy gem?

    • @PhilSmy
      @PhilSmy  2 роки тому

      Because I had never heard of it until right now! Thanks!

    • @AtumSS
      @AtumSS 2 роки тому

      ​@@PhilSmy gem 'kaminari' I think is even better