I am thinking how to provide programmatic configuration into Hibernate Search for many caches, i.e. if user wants to use different configured caches for each index.
With XML it is ok, in one file can be configured many named caches. So far in programmatic version user have to implement method that returns Configuration object - only one configuration can be provided that way. 
To achieve this same what in XML case, method should return something like: List<{cacheName}, {configuration}>. It is quite painfull, but on the other hand just extra feature. Some other ideas?

Cheers,
Lukasz Moren