new IndexBuilder( basename, new StringArrayDocumentCollection( "A B", "B", "A", "A" ) ).run();
BinIO.storeObject( DocumentalStrategies.uniform( 2, 4 ), basename + "-strategy" );
new PartitionDocumentally( basename + "-text", basename + "-cluster", DocumentalStrategies.uniform( 2, 4 ), basename + "-strategy", 0, 1024, CompressionFlags.DEFAULT_STANDARD_INDEX, true, false, 0, 0, 0, ProgressLogger.DEFAULT_LOG_INTERVAL ).run();
FileLinesCollection flc;
flc = new FileLinesCollection( basename + "-cluster-0.terms", "ASCII" );
BinIO.storeObject( new ShiftAddXorSignedStringMap( flc.iterator(), new MWHCFunction<CharSequence>( flc , TransformationStrategies.utf16() ) ), basename + "-cluster-0.termmap" );
flc = new FileLinesCollection( basename + "-cluster-1.terms", "ASCII" );
BinIO.storeObject( new ShiftAddXorSignedStringMap( flc.iterator(), new MWHCFunction<CharSequence>( flc , TransformationStrategies.utf16() ) ), basename + "-cluster-1.termmap" );
Index index = Index.getInstance( basename + "-cluster" );
assertEquals( Integer.MAX_VALUE, index.documents( "b" ).skipTo( 2 ) );
}