Skip to content

Commit

Permalink
fix reporting of searchResponseCount as it was always 10k
Browse files Browse the repository at this point in the history
  • Loading branch information
twrichards committed Nov 6, 2023
1 parent f70245b commit db133e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ trait ElasticSearchClient extends ElasticSearchExecutions with GridLogging {
def countImages(indexName: String = imagesCurrentAlias): Future[ElasticSearchImageCounts] = {
implicit val logMarker = MarkerMap()
val queryCatCount = catCount(indexName) // document count only of index including live documents, not deleted documents which have not yet been removed by the merge process
val queryImageSearch = search(indexName) limit 0 // hits that match the query defined in the request
val queryImageSearch = search(indexName) trackTotalHits true limit 0 // hits that match the query defined in the request
val queryStats = indexStats(indexName) // total accumulated values of an index for both primary and replica shards
val indexForAlias = getIndexForAlias(indexName)

Expand Down

0 comments on commit db133e2

Please sign in to comment.