Skip to content

Commit

Permalink
Make the max results in discover configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
Rashid Khan committed May 31, 2014
1 parent de21d72 commit f57b346
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/kibana/apps/discover/controllers/discover.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ define(function (require) {

$scope.opts = {
// number of records to fetch, then paginate through
sampleSize: 500,
sampleSize: config.get('discover:maxResults'),
// max length for summaries in the table
maxSummaryLength: 100,
// Index to match
Expand Down
2 changes: 2 additions & 0 deletions src/kibana/components/config/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ define(function (require) {
defaultIndex: null,
refreshInterval: 10000,

'discover:maxResults': 500,

'histogram:barTarget': 50,
'histogram:maxBars': 100,
});
Expand Down

0 comments on commit f57b346

Please sign in to comment.