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!
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" } ] }
Hey Phil,
Thank you for the tutorial :)
How do you test ElasticSearch in Rails? Namely, unit tests.. :)
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!
Thank you very much for this video! I've learned a lot from it :)
My pleasure!
Amazing video, thanks for sharing
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"
}
]
}
Thanks for the video!
You're welcome!
Thanks so much, Phil. You are doing a great job.
I appreciate that! Thank you!
Your material is wonderful, thanks again for another video
Thank you! Cheers!
Why not chewy gem?
Because I had never heard of it until right now! Thanks!
@@PhilSmy gem 'kaminari' I think is even better