Fix RAM buffer size

This commit is contained in:
Julie Tibshirani 2022-10-20 16:31:32 -07:00
parent 6af6556fa3
commit 09d2b68014
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ public class TestManyKnnVectors extends LuceneTestCase {
public void testLargeSegment() throws Exception {
IndexWriterConfig iwc = new IndexWriterConfig();
iwc.setCodec(TestUtil.getDefaultCodec()); // Make sure to use the default codec instead of a random one
iwc.setRAMBufferSizeMB(3_000); // Use a 3GB buffer to create a single large segment
iwc.setRAMBufferSizeMB(200); // Use a 200MB buffer to create larger initial segments
String fieldName = "field";
VectorSimilarityFunction similarityFunction = VectorSimilarityFunction.DOT_PRODUCT;