Skip to content

Update documentation in Lucene104PostingsWriter#15672

Open
Lyon-NEU wants to merge 2 commits intoapache:mainfrom
Lyon-NEU:doc_update
Open

Update documentation in Lucene104PostingsWriter#15672
Lyon-NEU wants to merge 2 commits intoapache:mainfrom
Lyon-NEU:doc_update

Conversation

@Lyon-NEU
Copy link
Contributor

@Lyon-NEU Lyon-NEU commented Feb 6, 2026

BLOCK_SIZE now is 256, lso, evel1 truely doc cnt equals 8192 (#15670)

Description

BLOCK_SIZE now is 256, lso, evel1 truely doc cnt equals 8192
@github-actions github-actions bot added this to the 10.4.0 milestone Feb 6, 2026
@benwtrent benwtrent modified the milestones: 10.4.0, 10.5.0 Feb 6, 2026

* GITHUB#15619: Update documentation in Lucene104PostingsFormat. with 259 documents, the first 256 document ids should be encoded as one packed block (Lyon-NEU)

* GITHUB#15670: Update documentation in Lucene104PostingsWriter. since BLOCK_SIZE now is 256, level1 truely doc cnt equals 8192. (Lyon-NEU)
Copy link
Contributor

Choose a reason for hiding this comment

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

can we either remove this CHANGES entry or fix it?

Copy link
Contributor Author

@Lyon-NEU Lyon-NEU Feb 24, 2026

Choose a reason for hiding this comment

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

Sure, i have removed this changes entry

}

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants