Extract search string in Kibana Discover for custom plugin usage


I have a custom Kibana plugin which currently allows me to access locally stored PDF files via API routing. For my use case, I want to access documents listed in an index after a search on the Kibana Discover page by using a predefined URL field contained in each document's JSON which would lead to the API and therefore the document. I also want to take the searched string in the Kibana Discover page and include it inside the API call I would make to the custom Kibana plugin API to make use of the PDF Open Parameters feature, namely to specify the searched string in the URL so that when the PDF viewer opens, the searched words will be highlighted immediately.

So, I would like to ask if there were a way to extract the searched string in Kibana for my API, preferably for the URL field in the Kibana Discover page?


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.