Hello,
I'm making my own Kibana plugin based on Kibana and Elasticsearch 7.x. I'm creating a new visualization that will show data from index A based on values selected from index B.
To put this more clearly, our Elasticsearch has two indexes, Data and Config. The dashboard visualizations are configured to pull and display from the Data index. I want my new plugin to pull specific field values from the Data index based on the users time range. Collect the field values then issue a new search on the Config index finding documents with the specific field values.
I created my own Request Handler but now I wish to create a new searchSource where I can define the index and the kuery in order to find the right documents.
Can someone explain how to create a new searchSource?
Thank you,
Fonzy Mantooth