// causing _0.cfs file to stay open
String path = new File( PATH, "1" ).getAbsolutePath();
BatchInserter inserter = new BatchInserterImpl( path );
BatchInserterIndexProvider provider = new LuceneBatchInserterIndexProvider(
inserter );
BatchInserterIndex index = provider.nodeIndex( "users", EXACT_CONFIG );
Map<Integer, Long> ids = new HashMap<Integer, Long>();
for ( int i = 0; i < 100; i++ )
{
long id = inserter.createNode( null );
index.add( id, map( "name", "Joe" + i, "other", "Schmoe" ) );