public IndexedMapping cacheFromIndex(FieldCacheType... type) { Map<String, Object> cacheInMemory = new HashMap<String, Object>(1); cacheInMemory.put("value", type); entity.setCacheInMemory(cacheInMemory); return this; }