# Kibana plugin to select a subset of search results displayed as a result of passing a query to search bar in the Discover tab and then displaying the selected results in another window

**URL:** <https://discuss.elastic.co/t/kibana-plugin-to-select-a-subset-of-search-results-displayed-as-a-result-of-passing-a-query-to-search-bar-in-the-discover-tab-and-then-displaying-the-selected-results-in-another-window/88156>\
**Category:** Kibana\
**Created:** [June 3, 2017, 6:24pm UTC](https://discuss.elastic.co/t/kibana-plugin-to-select-a-subset-of-search-results-displayed-as-a-result-of-passing-a-query-to-search-bar-in-the-discover-tab-and-then-displaying-the-selected-results-in-another-window/88156 "2017-06-03T18:24:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Surabhi\_Lodha](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@Surabhi\_Lodha](https://discuss.elastic.co/u/Surabhi_Lodha)\
**Post date:** [June 3, 2017, 6:24pm UTC](https://discuss.elastic.co/t/kibana-plugin-to-select-a-subset-of-search-results-displayed-as-a-result-of-passing-a-query-to-search-bar-in-the-discover-tab-and-then-displaying-the-selected-results-in-another-window/88156/1 "2017-06-03T18:24:19Z")

</div>

I have a use-case in KIbana to develop that allows a user to select a subset of search results displayed as a result of passing a query to search bar in the Discover tab and then displaying the selected results in another window.

To implement this I thought of doing something like:

1. Add a button/icon on the navbar to allow opening of a new kibana window when clicked. This I am able to do with the help of navbarExtensions, as explained here [Dev on Kibana plugin: navbar icon disappear when switching tabs](https://discuss.elastic.co/t/dev-on-kibana-plugin-navbar-icon-disappear-when-switching-tabs/66612) .

2. Have a checkbox appear in the Discover tab results section with each document result using which I can select a subset of results and pass their document id's to open another window of Kibana when the user clicks the icon/button on the navbar.

Currently, I am not able to find a way to do step 2. So I have following questions regarding it.

1. Is it even possible to include something like a checkbox to the Discover UI programmatically?
2. If yes, what a the ways to do it? Plugin or API? Is there a document or any link where I can more about it?

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [June 5, 2017, 2:42pm UTC](https://discuss.elastic.co/t/kibana-plugin-to-select-a-subset-of-search-results-displayed-as-a-result-of-passing-a-query-to-search-bar-in-the-discover-tab-and-then-displaying-the-selected-results-in-another-window/88156/2 "2017-06-05T14:42:13Z")

</div>

Hi @Surabhi_Lodha,

If you develop a plugin, you won't be able to change the UI of other plugins, except for some predefined extension points (such as navbar).

So adding a checkbox to the documents-listing in Discover, is not something you'd be able to do from a 3rd party plugin.

What you're looking at IMHO is a new feature. I'd consider adding a new feature request for Kibana. [https://github.com/elastic/kibana/issues/new](https://github.com/elastic/kibana/issues/new) first. It will also get you feedback from some of the maintainers, who are more knowledgeable about Discover and will better understand the effort involved.

---

<div class="post-metadata">

**Author:** ![Surabhi\_Lodha](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@Surabhi\_Lodha](https://discuss.elastic.co/u/Surabhi_Lodha)\
**Post date:** [June 5, 2017, 6:45pm UTC](https://discuss.elastic.co/t/kibana-plugin-to-select-a-subset-of-search-results-displayed-as-a-result-of-passing-a-query-to-search-bar-in-the-discover-tab-and-then-displaying-the-selected-results-in-another-window/88156/3 "2017-06-05T18:45:33Z")

</div>

Thank you for your response.  
I understand what you are saying. So is it possible to get the json data in a new browser in order to display it in customised format

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [June 5, 2017, 7:23pm UTC](https://discuss.elastic.co/t/kibana-plugin-to-select-a-subset-of-search-results-displayed-as-a-result-of-passing-a-query-to-search-bar-in-the-discover-tab-and-then-displaying-the-selected-results-in-another-window/88156/4 "2017-06-05T19:23:36Z")

</div>

You can always get to the raw JSON request/response by expanding the little grey arrow on the Discover page under the histogram. I has options to show both the original request and response of the query.

![](https://us1.discourse-cdn.com/elastic/original/3X/c/a/ca20391e41b31db2c4f1720a938b6bf308d2e6f9.png)

You can use that to display the results in a separate page.

Thx,

---

<div class="post-metadata">

**Author:** ![Surabhi\_Lodha](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@Surabhi\_Lodha](https://discuss.elastic.co/u/Surabhi_Lodha)\
**Post date:** [June 8, 2017, 5:02pm UTC](https://discuss.elastic.co/t/kibana-plugin-to-select-a-subset-of-search-results-displayed-as-a-result-of-passing-a-query-to-search-bar-in-the-discover-tab-and-then-displaying-the-selected-results-in-another-window/88156/5 "2017-06-08T17:02:41Z")

</div>

Thank you Thomas.  
Worked for me.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 5:02pm UTC](https://discuss.elastic.co/t/kibana-plugin-to-select-a-subset-of-search-results-displayed-as-a-result-of-passing-a-query-to-search-bar-in-the-discover-tab-and-then-displaying-the-selected-results-in-another-window/88156/6 "2017-07-06T17:02:51Z")

</div>

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