There are a handful of optional methods your Scorer must implement in
order to effectively participate in these skipahead algorithms. I
forget the names - something like maxScore(int upTo)? Oh yes and
advanceShallow(). Hopefully the javadocs for these methods give some
guidance? Also if your Scorers have child scorers they are responsible
for propagation of these calls.  Beyond that, it can be tricky to tell
how well your skipping is working, but you could try instrumenting
your calls to know how many docs they are able to skip due to max
score?

Regarding doc-values there is no equivalent scorer-skipping that I
know of, although I think there has been some discussion of it.  One
possible alternative would be to index your doc-scores as custom term
frequencies on a known token

On Fri, Feb 6, 2026 at 3:15 AM Vimal Jain <[email protected]> wrote:
>
> Hi Guys,
> I am looking for advice on how to make best use of maxscore/wand etc for
> document pruning ( so as to speed up query execution overall). I have
> custom scorers and collectors. Also my scoring consists of 2 parts ,
> termScore * documentBoost. I can provide safe UB in getMaxScore() in my
> scorer but not sure how to do the same for document level boost which
> involves reading docValues.
> Any advice or reference to common practice would be appreciated.
> Also is there any general documentation around maxscore/wand/block-max ?
>
> *Thanks and Regards,*
> *Vimal Jain*

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to