migrate away from rest_total_hits_as_int (#84508)
This commit is contained in:
parent
2c084b796f
commit
b454f2a1c2
|
@ -1187,7 +1187,7 @@ function GraphWorkspace(options) {
|
|||
|
||||
// Search for connections between the selected nodes.
|
||||
searcher(self.options.indexName, searchReq, function (data) {
|
||||
const numDocsMatched = data.hits.total;
|
||||
const numDocsMatched = data.hits.total.value;
|
||||
const buckets = data.aggregations.matrix.buckets;
|
||||
const vertices = nodesForLinking.map(function (existingNode) {
|
||||
return {
|
||||
|
|
|
@ -47,7 +47,7 @@ export function registerSearchRoute({
|
|||
await esClient.asCurrentUser.search({
|
||||
index: request.body.index,
|
||||
body: request.body.body,
|
||||
rest_total_hits_as_int: true,
|
||||
track_total_hits: true,
|
||||
ignore_throttled: !includeFrozen,
|
||||
})
|
||||
).body,
|
||||
|
|
Loading…
Reference in a new issue