First i want to mention that i am very new working with both Elasticsearch and Ruby, but my new part time job requires me to do this.
I am looking for a way to insert a string from my ruby file, that is in json format, into my elasticsearch. the Json string looks like this
{
"key" : "dummykey1",
"properbility" : 2,
"severity" : 3,
"summary" : "this is a dummy summary"
}
(this is just dummy data for testing atm)
and my elasticsearch post url is "http://localhost:9200/jira_issues3/_doc/1"
using postman to insert this works perfectly, but i need a way to do it in a ruby script and i have no idea where to start.
i have a hard time finding anything on google, because when i search for both ruby and elasticsearch, all that comes up is how to install elasticsearch on your ruby on rails project. I am sorry if this is a stupid question, but i feel like i am out of options.
for anyone who tries to help my stupid brain, thank you very much <3