I do not know how should I exactly configure the type of IndexManager (it was not needed until upgrade of the library). I have also checked documentation but setting this property hibernate.search.[default|].indexmanager = near-real-time had no effect.
Not sure which other information should I provide to you so it is easier for you to identify my problem.
The only way I can see this happening is if you use a custom index manager which implements its org.hibernate.search.indexes.spi.IndexManager#getIndexManagerType method by returning null… Do you use a custom IndexManagerFactory that affects a different implementation to the near-real-time index manager?
If not, please give us the full stack trace, or even, if possible, the full startup log in a pastebin. The full content of hibernate.properties could be useful too. Don’t forget to edit out sensitive information such as URLs and passwords.
Looks like you found a bug. I filed HSEARCH-3339 and will try to come up with a fix.
Thank you very much for taking the time to give us all the necessary information! Things are much easier that way…
I think a workaround would be to annotate the contained entity with @Indexed. It has obvious downsides, in particular it will degrade performance since indexes will be kept up to date for no reason, but at least it should allow you to continue to work on your migration until we released a fix.
No, @Indexed on an abstract class shouldn’t cause any problem. As far as I remember, it will mostly get ignored. As a matter of fact, it was necessary in some older versions of Hibernate Search to work around another bug related to @ContainedIn.
The only change is that it will work around your bug (probably) and also it will set the default name of the index of any subclass to com.yourcompany.Place. If you don’t want that, you can set the name of the index of each subclass explicitly using @Indexed(index = ...).
@Jaro, we just released 5.9.3.Final (as well as 5.10.4.Final), which includes a fix for this problem. You should be able to get rid of this extra @Indexed by upgrading.