gaobinlong opened a new pull request, #15942:
URL: https://github.com/apache/lucene/pull/15942

   ### Description
   In BlockGroupingCollector.getTopGroups(), we firstly compute the 
groupMaxScore by iterating on each group docs to get the max value, then 
compute the totalMaxScore by `Math.max(maxScore, groupMaxScore)`, both can be 
optimized when the sort is by relevance.
   
   For the `groupMaxScore`, we can get the maxScore from the top scoreDoc in 
the merged top docs. For the `totalMaxScore`, we can get it from the groups[0] 
directly if sort by relevance.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to