Skip to content

Commit

Permalink
Merge pull request #33077 from vespa-engine/arnej/estimate-like-before
Browse files Browse the repository at this point in the history
estimate should include docid 0 for consistency
  • Loading branch information
arnej27959 authored Jan 3, 2025
2 parents f5e1b12 + 4c7d852 commit f6acdd1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ class WhiteListBlueprint : public SimpleLeafBlueprint
_lock(),
_matchDataVector()
{
setEstimate(HitEstimate(numActiveLids, false));
// account for DocId 0 (considered active for estimation purposes)
setEstimate(HitEstimate(numActiveLids + 1, false));
}

bool isWhiteList() const noexcept final { return true; }
Expand Down

0 comments on commit f6acdd1

Please sign in to comment.