We have been trying to build several kibana plugin following tim roes's guide and look around the existing plugins.
It seems that all visualization plugin requires aggregation, and for us, we want to make a new plugin that can display search result differently (without aggregation). This is similar to saved search, that can also be added to dashboard.
I have found some comments of using following code, it can retreieve data but not sure if this will impact the other behaviors like save plugin or interact properly in the dashbaord with other plugins.
var searchSource = new SearchSource(); searchSource.size(500); searchSource.index($scope.vis.indexPattern); searchSource.onResults().then(function onResults(searchResp)
Is this the "proper" implementation, meaning not hacking through the kibana code for other features like save, load, options etc.