There is an existing ehcache and lucene comparison sometime back and the answer is they can't be compared directly. However in EhCache 2.4, it now has search feature. We are thinking to migrate our currently Lucene solution into EhCache Search. One of the benefit I see is when EhCache is integrated with Terracotta, it can be become distributed cache and index easily. Any other concerns I should take account before the migration? Could anyone share their experience about EhCache Search as cache and index solution?
Thanks.
Update: After a quick test, it seems like EhCache Search does not allow cache to be persisted into disk. I got the below error if I try to set diskPersistent="true" on my ehcache.xml. Which mean the indexed cache need to be rebuilt everytime. I see this is one of the disadvantage.
Search attributes not supported by this store type: net.sf.ehcache.store.compound.impl.DiskPersistentStore