This is for Elasticsearch and Kibana 7.10.2
I'm currently trying to create a plugin in Kibana that will give a user a form, take the data from there as arguments to use in a transform. Then to create a vega visualization that will be formatted based on the form the user entered and also use the index of the transform for its data. And then to redirect the user to the visualization. I had set up a plugin that can do a search operation by using another plugin as a base to find what functionality I could get however it seemed messy and I wasn't able to find useful documentation for my goal. I was able to access a search function through
context.core.elasticsearch.client.asCurrentUser.search
inside the Get part of a route for the plugin. However I have no way of knowing what properties or functions each of those objects have since I can't find documentation for them. Would I be better off trying to make requests through the rest API by hardcoding the ip and port of the Elasticsearch node?
On top of that, I saw a post detailing how to create a visualization through the rest api here
I was wondering if it would be possible to do the same thing but with a custom vega graph?