Skip to content

Commit

Permalink
Adds document version to doc table's track_by
Browse files Browse the repository at this point in the history
  • Loading branch information
Bargs committed Feb 28, 2017
1 parent 44e7248 commit 747b8ed
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ function discoverController($scope, config, courier, $route, $window, Notifier,
$scope.indexPattern = resolveIndexPatternLoading();
$scope.searchSource
.set('index', $scope.indexPattern)
.highlightAll(true);
.highlightAll(true)
.version(true);

if (savedSearch.id) {
docTitle.change(savedSearch.title);
Expand Down
3 changes: 2 additions & 1 deletion src/ui/public/courier/data_source/search_source.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ export default function SearchSourceFactory(Promise, Private, config) {
'aggs',
'from',
'size',
'source'
'source',
'version'
];

SearchSource.prototype.index = function (indexPattern) {
Expand Down
2 changes: 1 addition & 1 deletion src/ui/public/doc_table/doc_table.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
sorting="sorting">
</thead>
<tbody>
<tr ng-repeat="row in hits|limitTo:limit track by row._index+row._type+row._id+row._score"
<tr ng-repeat="row in hits|limitTo:limit track by row._index+row._type+row._id+row._score+row._version"
kbn-table-row="row"
columns="columns"
sorting="sorting"
Expand Down

0 comments on commit 747b8ed

Please sign in to comment.