benwtrent commented on issue #15324:
URL: https://github.com/apache/lucene/issues/15324#issuecomment-3458254028

   With some more digging, what we found is that `DisjunctionScorer` will 
utilize a cached view of its `TwoPhase.verifiedMatches` on a later document. 
This will cause the `getSubMatches` to be completely wrong, matching a 
`NO_MORE_DOCS` value. 
   
   I am not sure why this is the case, 
`TwoPhaseIterator.asDocIdSetIterator(twoPhase);` should be calling `matches()` 
on every doc. But there apparently is a case where this doesn't happen.
   
   Whatever the cause, `approximation` and `TwoPhase#verifiedMatches` get out 
of sync in `DisjunctionScorer` when used in `MaxScoreBulkScorer` (the 
underlying scorer in this case was also a PhraseScorer). 
   
   Still trying to figure out why these get out of sync :/


-- 
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