int max = Math.min(topDocs.scoreDocs.length, rescoreContext.getWindowSize());
at line 277 in FairRescoreBuilder.java will fail at the following example:
Docs in index =25
WindowSize = 10
k=10
Top 9 docs are nonprotected
We will only have one protected element there
for p= 0.8 and alpha = 0,1 we will need 6 protected elements
int max = Math.min(topDocs.scoreDocs.length, rescoreContext.getWindowSize()); at line 277 in FairRescoreBuilder.java will fail at the following example: Docs in index =25 WindowSize = 10 k=10 Top 9 docs are nonprotected We will only have one protected element there for p= 0.8 and alpha = 0,1 we will need 6 protected elements