Skip to content

Apache Lucene open-source search software

LUCENE-10109: Bump default beam width for HNSW (#312)

Julie Tibshiranieaa421094d3e
diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene90/Lucene90HnswVectorsFormat.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene90/Lucene90HnswVectorsFormat.java
index 4d033eacf62..213e443ba03 100644
--- a/lucene/core/src/java/org/apache/lucene/codecs/lucene90/Lucene90HnswVectorsFormat.java
+++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene90/Lucene90HnswVectorsFormat.java
@@ -78,7 +78,7 @@ public final class Lucene90HnswVectorsFormat extends KnnVectorsFormat {
static final int VERSION_CURRENT = VERSION_START;
public static final int DEFAULT_MAX_CONN = 16;
- public static final int DEFAULT_BEAM_WIDTH = 16;
+ public static final int DEFAULT_BEAM_WIDTH = 100;
/**
* Controls how many of the nearest neighbor candidates are connected to the new node. Defaults to