I am trying to query elasticsearch indices from client side of kibana plugin.
I was unable to find any native kibana plugin components which can readily enable me to create a client with which I can make request to elasticsearch with all the Privileges and roles of user.
Currently I resorted to making a fetch request like this
but query is not getting reflected in the response, only aggs is applied properly to the search API call.
setField says it requires Query | undefined type object but there is no function in data plugin which will build and return a Query type object.
and the same goes for the filters as well, there is no function in data plugin via which we can create Filter type object, though when I run data.query.filterManager.getFilters() I get the exsiting applied Filters.
How can I create Custom Filter and Query objects??
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.