indexer = new Indexer();
searcher = new CompositeSearcher();
baseSearcher = (Searcher)searcher.getBaseSearcher();
cache = new LRUCache<QueryParams, GroupedSearchResults>(500);
cacheSearcher = new CacheSearcher(baseSearcher, cache); //a cacheSearcher that uses the same baseSearcher
baseSearcher.addCache(cache);
}