private SearchManager searchManager;
@Override
protected EmbeddedCacheManager createCacheManager() throws Exception {
ConfigurationBuilder cfg = getDefaultStandaloneCacheConfig(true);
cfg.indexing().enable()
.addProperty("default.directory_provider", "ram")
.addProperty("lucene_version", "LUCENE_CURRENT");
EmbeddedCacheManager cacheManager = TestCacheManagerFactory.createCacheManager(cfg);
Cache<Object, Object> cache = cacheManager.getCache();
searchManager = Search.getSearchManager(cache);