I will give the approach with org.hibernate.search.hcore.util.impl.ContextHelper#getSearchIntegratorBySF a shot. Thanks for the hint!
Rainer Burgstaller Wait, that was not a hint! This is internal code. It works, that's for sure, but it could change at any time. I was asking if exposing a similar feature (in a properly supported API), allowing to retrieve the SearchFactory/SearchIntegrator from the SessionFactory, would do the trick for you.
At any rate the fact that getSearchIntegrator() is called 2x is somewhat strange and inbalanced with the afterMessage() call.
Sure. |