I'm trying to create a simple Kibana plugin which should send _update_by_query request to elasticsearch, with values to updated provided by GUI in said plugin, but I can't quite grasp how making API calls works from a plugin.
At first I've tried doing it with
fetch(node/_update_by_query, method: "POST)", but I realized it's the wrong way to do it entirely.
From what I've learned, I believe I should use the
data plugin in order to prepare a query and send it, but I cannot comprehend, how it should be done and the documentation provided with it doesn't make anything clearer for me. Could you please provide me with some tutorial/examples on how such request should be done?
I realize this is a pretty basic question, but this plugin is my first contact with the entire ELK stack I feel a bit lost...
Thank you in advance.