shubhamvishu commented on code in PR #14963: URL: https://github.com/apache/lucene/pull/14963#discussion_r2265597285
########## lucene/core/src/java/org/apache/lucene/codecs/lucene99/Lucene99HnswVectorsFormat.java: ########## @@ -115,6 +115,13 @@ public final class Lucene99HnswVectorsFormat extends KnnVectorsFormat { /** Default to use single thread merge */ public static final int DEFAULT_NUM_MERGE_WORKER = 1; + /** + * Threshold below which HNSW graph building is bypassed for tiny segments. Segments with fewer + * vectors will use flat storage only, improving indexing performance when having frequent + * flushes. + */ + public static final int HNSW_GRAPH_THRESHOLD = 10_000; Review Comment: Sure, I'll elaborate on this. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org