Your material is wonderful, thanks again for another video
@PhilSmy3 жыл бұрын
Thank you! Cheers!
@Fiskus93 жыл бұрын
Thank you very much for this video! I've learned a lot from it :)
@PhilSmy3 жыл бұрын
My pleasure!
@EngineerBeliefs3 жыл бұрын
Hey Phil, Thank you for the tutorial :) How do you test ElasticSearch in Rails? Namely, unit tests.. :)
@PhilSmy3 жыл бұрын
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!
@NeroRaliShow3 жыл бұрын
Thanks for the video!
@PhilSmy3 жыл бұрын
You're welcome!
@AtumSS2 жыл бұрын
Why not chewy gem?
@PhilSmy2 жыл бұрын
Because I had never heard of it until right now! Thanks!
@AtumSS2 жыл бұрын
@@PhilSmy gem 'kaminari' I think is even better
@ПолюваннятаРиболовлязБратамиБл3 жыл бұрын
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" } ] }