Skip to content

Apache Lucene open-source search software

Update outdated comment about maxPointsInLeafNode in BKD tree (#12532)

zhangchaoa52161b131b8
diff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_codecs/lucene86/Lucene86PointsWriter.java b/lucene/backward-codecs/src/test/org/apache/lucene/backward_codecs/lucene86/Lucene86PointsWriter.java
index 677f64b806c..f808fdbf6b7 100644
--- a/lucene/backward-codecs/src/test/org/apache/lucene/backward_codecs/lucene86/Lucene86PointsWriter.java
+++ b/lucene/backward-codecs/src/test/org/apache/lucene/backward_codecs/lucene86/Lucene86PointsWriter.java
@@ -111,7 +111,7 @@ public class Lucene86PointsWriter extends PointsWriter {
}
/**
- * Uses the defaults values for {@code maxPointsInLeafNode} (1024) and {@code maxMBSortInHeap}
+ * Uses the defaults values for {@code maxPointsInLeafNode} (512) and {@code maxMBSortInHeap}
* (16.0)
*/
public Lucene86PointsWriter(SegmentWriteState writeState) throws IOException {
diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene90/Lucene90PointsWriter.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene90/Lucene90PointsWriter.java
index 5ea47327db1..cab4f99cf40 100644
--- a/lucene/core/src/java/org/apache/lucene/codecs/lucene90/Lucene90PointsWriter.java
+++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene90/Lucene90PointsWriter.java
@@ -105,7 +105,7 @@ public class Lucene90PointsWriter extends PointsWriter {
}
/**
- * Uses the defaults values for {@code maxPointsInLeafNode} (1024) and {@code maxMBSortInHeap}
+ * Uses the defaults values for {@code maxPointsInLeafNode} (512) and {@code maxMBSortInHeap}
* (16.0)
*/
public Lucene90PointsWriter(SegmentWriteState writeState) throws IOException {
diff --git a/lucene/core/src/java/org/apache/lucene/search/PointInSetQuery.java b/lucene/core/src/java/org/apache/lucene/search/PointInSetQuery.java
index d2e0f44495c..a092bbafcf7 100644
--- a/lucene/core/src/java/org/apache/lucene/search/PointInSetQuery.java
+++ b/lucene/core/src/java/org/apache/lucene/search/PointInSetQuery.java
@@ -352,7 +352,7 @@ public abstract class PointInSetQuery extends Query implements Accountable {
if (cmpMin == 0 && cmpMax == 0) {
// NOTE: we only hit this if we are on a cell whose min and max values are exactly equal
// to our point,
- // which can easily happen if many (> 1024) docs share this one value
+ // which can easily happen if many (> 512) docs share this one value
return Relation.CELL_INSIDE_QUERY;
} else {
return Relation.CELL_CROSSES_QUERY;
diff --git a/lucene/test-framework/src/java/org/apache/lucene/tests/index/RandomCodec.java b/lucene/test-framework/src/java/org/apache/lucene/tests/index/RandomCodec.java
index 03866a3d177..d9b0920e618 100644
--- a/lucene/test-framework/src/java/org/apache/lucene/tests/index/RandomCodec.java
+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/index/RandomCodec.java
@@ -90,7 +90,7 @@ public class RandomCodec extends AssertingCodec {
private final int perFieldSeed;
// a little messy: randomize the default codec's parameters here.
- // with the default values, we have e,g, 1024 points in leaf nodes,
+ // with the default values, we have e,g, 512 points in leaf nodes,
// which is less effective for testing.
// TODO: improve how we randomize this...
private final int maxPointsInLeafNode;