IndexSearcher searcher = ctx.acquireIndexSearcher();
TopDocs topDocs = searcher.search( q, null, 10 );
//searcher.close();
ctx.releaseIndexSearcher( searcher );
assertTrue( new File( repositoryConfig.getLocation(), ".indexer" ).exists() );
assertFalse( new File( repositoryConfig.getLocation(), ".index" ).exists() );
// should only return 1 hit!