lucene icon indicating copy to clipboard operation
lucene copied to clipboard

LUCENE-10121: More skipping in WANDScorer.

Open jpountz opened this issue 3 years ago • 4 comments

#11158

jpountz avatar Sep 23 '21 18:09 jpountz

I had to add a loop, which makes the patch bigger than it should be due to indentation changes. It's best to review the patch with ?w=1: https://github.com/apache/lucene/pull/319/files?w=1.

jpountz avatar Sep 23 '21 18:09 jpountz

I agree with you that this change is making the code harder to reason about. I'll look into ways to make the logic easier.

jpountz avatar Sep 24 '21 07:09 jpountz

Thanks @jpountz. It might go a long way to just add some comments about the invariants that have to be maintained when updating the score, etc.

gsmiller avatar Sep 24 '21 13:09 gsmiller

Agreed. Maybe another way of fixing it would consist of preserving more significant bits in the scaled values. I'll look into that as well.

jpountz avatar Sep 24 '21 16:09 jpountz

@jpountz is this still relevant? There have been lots of optos to WANDScorer lately... maybe this is already essentially done?

mikemccand avatar Nov 02 '23 10:11 mikemccand

It's still relevant but I'm not comfortable with the fact that it's a bit fragile. I'll close for now and think more about it.

jpountz avatar Nov 02 '23 12:11 jpountz