Skip to content

Commit 4221934

Browse files
committed
migrate away from rest_total_hits_as_int
1 parent a2b71f8 commit 4221934

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

x-pack/plugins/graph/public/angular/graph_client_workspace.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,7 @@ function GraphWorkspace(options) {
11871187

11881188
// Search for connections between the selected nodes.
11891189
searcher(self.options.indexName, searchReq, function (data) {
1190-
const numDocsMatched = data.hits.total;
1190+
const numDocsMatched = data.hits.total.value;
11911191
const buckets = data.aggregations.matrix.buckets;
11921192
const vertices = nodesForLinking.map(function (existingNode) {
11931193
return {

x-pack/plugins/graph/server/routes/search.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export function registerSearchRoute({
5050
resp: await callCluster('search', {
5151
index: request.body.index,
5252
body: request.body.body,
53-
rest_total_hits_as_int: true,
53+
track_total_hits: true,
5454
ignore_throttled: !includeFrozen,
5555
}),
5656
},

0 commit comments

Comments
 (0)