I have created a custom plugin (using plugin generator) and added control like textbox ( I am using elastic UI framework). I am able to read the data from these UI controls.
I want to execute a search request based on the user inputs, Could you please let me know what is the recommended way to communicate with Elasticsearch and get the data. Currently i am making a rest call from main.js (my_plugin_name/public/components/main/main.js)
Git Url : my_test_plugin
Could you please let me know if i am missing something.
Thanks in advance for your help and support.