diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java index 76b92d3acfa..6f8eaf5e735 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java +++ b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java @@ -272,37 +272,6 @@ public class TestIndexWriter extends LuceneTestCase { dir.close(); } - public void testManyFields() throws IOException { - Directory dir = newDirectory(); - IndexWriter writer = new IndexWriter(dir, newIndexWriterConfig(new MockAnalyzer(random())) - .setMaxBufferedDocs(10)); - for(int j=0;j<100;j++) { - Document doc = new Document(); - doc.add(newField("a"+j, "aaa" + j, storedTextType)); - doc.add(newField("b"+j, "aaa" + j, storedTextType)); - doc.add(newField("c"+j, "aaa" + j, storedTextType)); - doc.add(newField("d"+j, "aaa", storedTextType)); - doc.add(newField("e"+j, "aaa", storedTextType)); - doc.add(newField("f"+j, "aaa", storedTextType)); - writer.addDocument(doc); - } - writer.close(); - - IndexReader reader = DirectoryReader.open(dir); - assertEquals(100, reader.maxDoc()); - assertEquals(100, reader.numDocs()); - for(int j=0;j<100;j++) { - assertEquals(1, reader.docFreq(new Term("a"+j, "aaa"+j))); - assertEquals(1, reader.docFreq(new Term("b"+j, "aaa"+j))); - assertEquals(1, reader.docFreq(new Term("c"+j, "aaa"+j))); - assertEquals(1, reader.docFreq(new Term("d"+j, "aaa"))); - assertEquals(1, reader.docFreq(new Term("e"+j, "aaa"))); - assertEquals(1, reader.docFreq(new Term("f"+j, "aaa"))); - } - reader.close(); - dir.close(); - } - public void testSmallRAMBuffer() throws IOException { Directory dir = newDirectory(); IndexWriter writer = new IndexWriter( @@ -453,56 +422,6 @@ public class TestIndexWriter extends LuceneTestCase { dir.close(); } - public void testDiverseDocs() throws IOException { - Directory dir = newDirectory(); - IndexWriter writer = new IndexWriter(dir, newIndexWriterConfig(new MockAnalyzer(random())) - .setRAMBufferSizeMB(0.5)); - int n = atLeast(1); - for(int i=0;i