Skip to content

Apache Lucene open-source search software

Update documentation for Lucene104PostingsFormat (#15625)

兆森19bf11ddad89
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt
index 4b74688b5c3..739943b899b 100644
--- a/lucene/CHANGES.txt
+++ b/lucene/CHANGES.txt
@@ -376,6 +376,8 @@ Other
* GITHUB#15341: Align float vectors on disk to 64 bytes, for optimal performance on Arm Neoverse
machines (including vectors inside CFS files). (Mike McCandless, Kaival Parikh)
+* GITHUB#15619: Update documentation in Lucene104PostingsFormat. with 259 documents, the first 256 document ids should be encoded as one packed block (Lyon-NEU)
+
Build
---------------------
* Upgrade forbiddenapis to version 3.10. (Uwe Schindler)
diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene104/Lucene104PostingsFormat.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene104/Lucene104PostingsFormat.java
index b4828145aba..f2fb84f3a7e 100644
--- a/lucene/core/src/java/org/apache/lucene/codecs/lucene104/Lucene104PostingsFormat.java
+++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene104/Lucene104PostingsFormat.java
@@ -51,7 +51,7 @@ import org.apache.lucene.util.packed.PackedInts;
* <p>When the postings are long enough, Lucene104PostingsFormat will try to encode most
* integer data as a packed block.
* <p>Take a term with 259 documents as an example, the first 256 document ids are encoded as
- * two packed blocks, while the remaining 3 are encoded as one VInt block.
+ * one packed block, while the remaining 3 are encoded as one VInt block.
* <p>Different kinds of data are always encoded separately into different packed blocks, but
* may possibly be interleaved into the same VInt block.
* <p>This strategy is applied to pairs: &lt;document number, frequency&gt;, &lt;position,