thank you for doing this! On Thu, Sep 12, 2013 at 8:56 AM, <[email protected]> wrote: > Author: jpountz > Date: Thu Sep 12 12:56:42 2013 > New Revision: 1522555 > > URL: http://svn.apache.org/r1522555 > Log: > Add backward compatibility tests for Lucene 4.5 indices. > > Added: > > lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/index.45.cfs.zip > (with props) > > lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/index.45.nocfs.zip > (with props) > Modified: > > lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java > > Modified: > lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java > URL: > http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java?rev=1522555&r1=1522554&r2=1522555&view=diff > ============================================================================== > --- > lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java > (original) > +++ > lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java > Thu Sep 12 12:56:42 2013 > @@ -63,7 +63,6 @@ import org.apache.lucene.util.StringHelp > import org.apache.lucene.util._TestUtil; > import org.junit.AfterClass; > import org.junit.BeforeClass; > -import org.junit.Ignore; > > /* > Verify we can read the pre-5.0 file format, do searches > @@ -160,7 +159,9 @@ public class TestBackwardsCompatibility > "41.cfs", > "41.nocfs", > "42.cfs", > - "42.nocfs" > + "42.nocfs", > + "45.cfs", > + "45.nocfs" > }; > > final String[] unsupportedNames = {"19.cfs", > @@ -569,7 +570,7 @@ public class TestBackwardsCompatibility > mp.setMaxCFSSegmentSizeMB(Double.POSITIVE_INFINITY); > // TODO: remove randomness > IndexWriterConfig conf = new IndexWriterConfig(TEST_VERSION_CURRENT, new > MockAnalyzer(random())) > - .setMaxBufferedDocs(10).setMergePolicy(mp); > + .setUseCompoundFile(doCFS).setMaxBufferedDocs(10).setMergePolicy(mp); > IndexWriter writer = new IndexWriter(dir, conf); > > for(int i=0;i<35;i++) { > @@ -586,15 +587,15 @@ public class TestBackwardsCompatibility > mp = new LogByteSizeMergePolicy(); > mp.setNoCFSRatio(doCFS ? 1.0 : 0.0); > // TODO: remove randomness > - conf = new IndexWriterConfig(TEST_VERSION_CURRENT, new > MockAnalyzer(random())) > + conf = new IndexWriterConfig(TEST_VERSION_CURRENT, new > MockAnalyzer(random())).setUseCompoundFile(doCFS) > .setMaxBufferedDocs(10).setMergePolicy(mp); > writer = new IndexWriter(dir, conf); > addNoProxDoc(writer); > writer.close(); > > - writer = new IndexWriter(dir, > - conf.setMergePolicy(doCFS ? NoMergePolicy.COMPOUND_FILES : > NoMergePolicy.NO_COMPOUND_FILES) > - ); > + conf = new IndexWriterConfig(TEST_VERSION_CURRENT, new > MockAnalyzer(random())).setUseCompoundFile(doCFS) > + .setMaxBufferedDocs(10).setMergePolicy(doCFS ? > NoMergePolicy.COMPOUND_FILES : NoMergePolicy.NO_COMPOUND_FILES); > + writer = new IndexWriter(dir, conf); > Term searchTerm = new Term("id", "7"); > writer.deleteDocuments(searchTerm); > writer.close(); > > Added: > lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/index.45.cfs.zip > URL: > http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/index.45.cfs.zip?rev=1522555&view=auto > ============================================================================== > Binary file - no diff available. > > Added: > lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/index.45.nocfs.zip > URL: > http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/index.45.nocfs.zip?rev=1522555&view=auto > ============================================================================== > Binary file - no diff available. > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
