# How can i get whole data response from elastic search without aggregation in kibana plugin?

**URL:** <https://discuss.elastic.co/t/how-can-i-get-whole-data-response-from-elastic-search-without-aggregation-in-kibana-plugin/91428>\
**Category:** Kibana\
**Created:** [June 30, 2017, 12:51pm UTC](https://discuss.elastic.co/t/how-can-i-get-whole-data-response-from-elastic-search-without-aggregation-in-kibana-plugin/91428 "2017-06-30T12:51:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayadirh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ayadirh/32/21617_2.png) [@ayadirh](https://discuss.elastic.co/u/ayadirh)\
**Post date:** [June 30, 2017, 12:51pm UTC](https://discuss.elastic.co/t/how-can-i-get-whole-data-response-from-elastic-search-without-aggregation-in-kibana-plugin/91428/1 "2017-06-30T12:51:11Z")

</div>

Use case:  
I want to append a column in data grid(custom) with green, red signal based on difference in time in two different columns? I want to display in one go instead of adding sub buckets and metrics. I can choose which fields to show based on angular filter in my plugin. Is there a way to get whole data response without aggregating? Am i missing something?

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [July 3, 2017, 5:41pm UTC](https://discuss.elastic.co/t/how-can-i-get-whole-data-response-from-elastic-search-without-aggregation-in-kibana-plugin/91428/2 "2017-07-03T17:41:39Z")

</div>

Hi there, just so I understand correctly: are you saying that you're developing a plugin to create a data grid with this functionality? If this is correct, can you explain what you mean by getting a "whole data response without aggregating"?

Thanks,  
CJ

---

<div class="post-metadata">

**Author:** ![ayadirh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ayadirh/32/21617_2.png) [@ayadirh](https://discuss.elastic.co/u/ayadirh)\
**Post date:** [July 3, 2017, 10:01pm UTC](https://discuss.elastic.co/t/how-can-i-get-whole-data-response-from-elastic-search-without-aggregation-in-kibana-plugin/91428/3 "2017-07-03T22:01:17Z")

</div>

Hi there,  
Thanks for replying.  
I am creating a plugin with data grid. It consists of two time columns(total 5 columns). I have to take difference of two time columns(Eg. Expected time, Delivered time). Based on the difference i have to use green or red light in another column. This is quite easy to do in just angularJS and using SVG. I am new to Kibana. So getting confused. I am using this:  
$scope.watchMulit(['esResponse', ' vis.params'], function() {  
//My code here  
});  
It seems, data is available only when aggregated with metrics or buckets. I find no suitable metrics for my purpose too. I would not quite need to change the buckets. I want to display whole grid all at once.  
But in Kibana is there way to get the data response without aggregating? or Any other way?

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [July 3, 2017, 10:15pm UTC](https://discuss.elastic.co/t/how-can-i-get-whole-data-response-from-elastic-search-without-aggregation-in-kibana-plugin/91428/4 "2017-07-03T22:15:58Z")

</div>

It sounds like you're asking about other ways to query Elasticsearch, beyond metric and bucket aggregations. Have you taken a look at the [ES documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/_exploring_your_data.html)? It sounds like you'll need to define a query to do what you want.

Hope this helps,  
CJ

---

<div class="post-metadata">

**Author:** ![ayadirh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ayadirh/32/21617_2.png) [@ayadirh](https://discuss.elastic.co/u/ayadirh)\
**Post date:** [July 7, 2017, 11:27am UTC](https://discuss.elastic.co/t/how-can-i-get-whole-data-response-from-elastic-search-without-aggregation-in-kibana-plugin/91428/5 "2017-07-07T11:27:07Z")

</div>

Thanks. I will look into it.  
Can i load ES queries as service inside kibana plugin?  
like var response = get(query);

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [July 7, 2017, 5:36pm UTC](https://discuss.elastic.co/t/how-can-i-get-whole-data-response-from-elastic-search-without-aggregation-in-kibana-plugin/91428/6 "2017-07-07T17:36:58Z")

</div>

Hey, I'm not sure actually. I don't think I've seen that before. You might want to take a look at our `esAdmin` service, and dig through Kibana's codebase a bit. Unfortunately, we don't officially support plugin development, so I can't dedicate time to looking into this myself.

Thanks,  
CJ

---

<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:** [August 4, 2017, 5:37pm UTC](https://discuss.elastic.co/t/how-can-i-get-whole-data-response-from-elastic-search-without-aggregation-in-kibana-plugin/91428/7 "2017-08-04T17:37:41Z")

</div>

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