Ok I think I can use same <property name="..." value=".."/> for those code too. but I have some java code in my ListenerInjector implementation to calculate path before setting hibernate.search.default.indexBase. So I think I still need to find alternative interface to org.jboss.hibernate.ListenerInjector
There is no need to explicitly register hibernate search event listners anymore, they are registered automaticly.
as for other properties go you just define them as you predicted:
example from one of my apps:
<property name="hibernate.search.default.directory_provider" value="filesystem" />
<property name="hibernate.search.default.indexBase" value="/store/app/indexes" />
So do you mean I dont have to register FullTextIndexEventListener for any events, is it registered by default for all events?
I had registered it for these events pre-insert, pre-update, post-insert, post-update, post-delete, post-collection-recreate, post-collection-remove, post-collection-update.
So I think now only problem is setting hibernate.search.default.indexBase dynamically.
We used find this path dynamically using java code, at server startup.
Defining in persistence.xml means I need to define it statically or need to find a way to access hibernate Configuration object before SessionFactory is constructed?