I am trying to create a searchable with dynamic index cache but I get the follow error when I define: Searchable searchable = new Searchable().allowDynamicIndexing(true);
The error from Eclipse is: "Type mismatch: cannot convert from void to Searchable"
Here is my code snippet:
Configuration cacheManagerConfig = new Configuration();
CacheConfiguration cacheConfig = new CacheConfiguration("PersonCache", 0).eternal(true);
Searchable searchable = new Searchable().allowDynamicIndexing(true);