How to update multiple records in this case?


(Kenshero) #1

example data . in index
{
"article_name": "flame",
"authors": [ "hot", "element"]
}

{
"article_name": "water",
"authors": ["cold","element"]
}

{
"article_name": "eart",
"authors": [ "strong", "element"]
}

I want to find "element" and update all records . How to do this ?

Note : if you know in rails . I use gem elasticsearch-rails https://github.com/elastic/elasticsearch-rails/tree/master/elasticsearch-mode

Thank you


(system) #2