Fix performance issue

This commit is contained in:
Andrea Cavalli 2021-10-22 00:51:54 +02:00
parent 213e446ff4
commit a77af5253d

View File

@ -177,7 +177,7 @@ public class ScoredPagedMultiSearcher implements MultiSearcher {
var after = (FieldDoc) s.last(); var after = (FieldDoc) s.last();
var totalHitsThreshold = queryParams.getTotalHitsThresholdInt(); var totalHitsThreshold = queryParams.getTotalHitsThresholdInt();
return new ScoringShardsCollectorManager(query, sort, pageLimit, after, totalHitsThreshold, return new ScoringShardsCollectorManager(query, sort, pageLimit, after, totalHitsThreshold,
resultsOffset); resultsOffset, pageLimit);
} else { } else {
return null; return null;
} }