public void testSwitch() throws IOException, ParseException, InterruptedException {
indexTwelveDocs(this.indexEngine.getIndexer());
DocumentSearcher searcher = this.indexEngine.getSearcher();
SearchResults srs = searcher.search(new Query(new TermQuery("text","term1"),null,null),0,10, 0);
assertEquals("Number of historic results doesn't match", 1, srs.getMatches());
srs = searcher.search(new Query(new TermQuery("text","term11"),null,null),0,10, 0);
assertEquals("Number of real time results doesn't match", 1, srs.getMatches());
Query query = new Query(this.indexEngine.getParser().parseQuery("term1 OR term2 OR term3 OR term4 OR term5"),null,null);
srs = searcher.search(query,0,10, 0);
assertEquals("Number of real time results doesn't match", 5, srs.getMatches());
}