Skip to content

Commit

Permalink
Addressing Martin Comments
Browse files Browse the repository at this point in the history
Signed-off-by: Varun Jain <[email protected]>
  • Loading branch information
vibrantvarun committed Jul 9, 2024
1 parent 8c7ed1a commit ec029af
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,18 +171,15 @@ private TopDocsAndMaxScore getTopDocsAndAndMaxScore(
final DocValueFormat[] docValueFormats
) {
TopDocs newTopDocs;
List<? extends TopDocs> topDocs = hybridSearchCollector.topDocs();
List topDocs = hybridSearchCollector.topDocs();
if (docValueFormats != null) {
newTopDocs = getNewTopFieldDocs(
getTotalHits(this.trackTotalHitsUpTo, topDocs, hybridSearchCollector.getTotalHits()),
(List<TopFieldDocs>) topDocs,
topDocs,
sortAndFormats.sort.getSort()
);
} else {
newTopDocs = getNewTopDocs(
getTotalHits(this.trackTotalHitsUpTo, topDocs, hybridSearchCollector.getTotalHits()),
(List<TopDocs>) topDocs
);
newTopDocs = getNewTopDocs(getTotalHits(this.trackTotalHitsUpTo, topDocs, hybridSearchCollector.getTotalHits()), topDocs);
}
return new TopDocsAndMaxScore(newTopDocs, hybridSearchCollector.getMaxScore());
}
Expand Down

0 comments on commit ec029af

Please sign in to comment.