Table of Contents

Internal classSealedInternal BlockMaxWandScorer

Namespace
Rowles.LeanLucene.Search.Scoring
Assembly
Rowles.LeanLucene.dll

Block-Max WAND (Weak AND) scorer for top-K query evaluation. Uses per-block impact metadata (maxFreq, maxNorm) stored in skip data to skip entire 128-doc blocks whose maximum possible score contribution falls below the current threshold θ (score of the Kth-best doc seen so far).

internal sealed class BlockMaxWandScorer
BlockMaxWandScorer

Remarks

This scorer works with any BM25-based scoring function. For each postings list, the block's maximum possible score is precomputed from maxFreqInBlock and maxNormInBlock. If no block can beat the current threshold, the entire term is skipped.

Constructors

Public constructor BlockMaxWandScorer(TermScorer[], int, float, float, float)

Properties

Public propertyRead-only BlocksScored

Number of blocks fully scored.

Public propertyRead-only BlocksSkipped

Number of blocks skipped due to WAND threshold.

Methods

Public method Score()

Executes the Block-Max WAND algorithm for a disjunctive (OR) query over all term scorers. Returns top-K results.