Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ private void flushDocBlock(boolean finishTerm) throws IOException {
level0FreqNormAccumulator.clear();
}

if ((docCount & LEVEL1_MASK) == 0) { // true every 32 blocks (4,096 docs)
if ((docCount & LEVEL1_MASK) == 0) { // true every 32 blocks (8,192 docs)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there any other similar comments need to be changed? Could we change them all at once?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, I have just started reading the source code, so now I cannot find other comments that need to be changed. Maybe we could write BLOCK_SIZE*LEVEL1_NUM instead?

writeLevel1SkipData();
level1LastDocID = docID;
level1CompetitiveFreqNormAccumulator.clear();
Expand Down
Loading