Skip to content

Commit

Permalink
add track_total_hits false to getIndexDate fn
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnoble committed Feb 3, 2025
1 parent cf2daf0 commit 44d898b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ export class ElasticsearchReaderAPI {
if (date) return parseDate(date);

// we are in auto, so we determine each part
const query: AnyObject = {
const query: ClientParams.SearchParams = {
index: this.config.index,
size: 1,
body: {
Expand All @@ -686,7 +686,8 @@ export class ElasticsearchReaderAPI {
order: order === 'start' ? 'asc' : 'desc'
}
}]
}
},
track_total_hits: false
};

if (this.config.query) {
Expand Down

0 comments on commit 44d898b

Please sign in to comment.