cpoerschke commented on code in PR #13405:
URL: https://github.com/apache/lucene/pull/13405#discussion_r1613574675


##########
lucene/monitor/src/java/org/apache/lucene/monitor/Monitor.java:
##########
@@ -377,9 +375,7 @@ public ScoreMode scoreMode() {
     @Override
     public void matchQuery(final String id, QueryCacheEntry query, 
QueryIndex.DataValues dataValues)
         throws IOException {
-      Scorer scorer = ((Scorer) dataValues.scorer);
-      Weight w = scorer.getWeight();
-      Matches matches = w.matches(dataValues.ctx, scorer.docID());
+      Matches matches = dataValues.weight.matches(dataValues.ctx, 
dataValues.docID);

Review Comment:
   `dataValues.scorer` becomes unused now then it seems, #13412 proposes to 
remove it.



-- 
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...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to