alessandrobenedetti commented on code in PR #2348: URL: https://github.com/apache/solr/pull/2348#discussion_r1529015878
########## solr/modules/ltr/src/java/org/apache/solr/ltr/LTRRescorer.java: ########## @@ -233,7 +235,14 @@ protected static boolean scoreSingleHit( boolean logHit = false; scorer.getDocInfo().setOriginalDocScore(hit.score); + QueryLimits queryLimits = QueryLimits.getCurrentLimits(); Review Comment: Yes David you are correct about the reason and I agree scoreFeatures would deserve some care, but I prefer to dedicate a separate PR to that. Your observation about the declare and then call is also welcome, the change is coming in my next commit. Not sure why I did it in that way, maybe a copy and paste from a previous version of the code outside the loop, -- 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: issues-unsubscr...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org