use of com.yahoo.prelude.searcher.CachingSearcher in project vespa by vespa-engine.
the class CachingSearcherTestCase method setUp.
@Before
public void setUp() throws Exception {
hits = new DocumentSourceSearcher();
QrSearchersConfig config = new QrSearchersConfig(new QrSearchersConfig.Builder().com(new QrSearchersConfig.Com.Builder().yahoo(new QrSearchersConfig.Com.Yahoo.Builder().prelude(new QrSearchersConfig.Com.Yahoo.Prelude.Builder().searcher(new QrSearchersConfig.Com.Yahoo.Prelude.Searcher.Builder().CachingSearcher(new QrSearchersConfig.Com.Yahoo.Prelude.Searcher.CachingSearcher.Builder().cachesizemegabytes(10).maxentrysizebytes(5 * 1024 * 1024).timetoliveseconds(86400)))))));
CachingSearcher cache = new CachingSearcher(config, Statistics.nullImplementation);
searchChain = new Chain<>(cache, hits);
}
Aggregations