Hello Yoann !
You are right ! The message was in fact releated to B entity. My Bad !
Attempt to reindex an entity of type com.xxx.B because a contained
entity was modified, but this entity type is not indexed directly.
There is a bug in Hibernate Search, please report it.
Since My class A is a parent with @Inheritance(strategy = InheritanceType.JOINED), i was expecting to have the indexation working when i trigger indexation on B in the
But in fact, even with the Beta8 i got two separated indexes, so when i search into the A index i don’t find my B class.
It’s probably a misconception from me, but i was wondering to have “partial” indexes, but it’s not a “document” approach
Note : this happen in my case because i have a very specific context with and old part of my application (hibernate 3) who check changes on entities with an hibernate interceptors to trigger manual indexation on the new stack with hibernate 5.
My entities are “marked” as indexed with a simple boolean for Hibernate 3 interceptors, and in this case my B class triggers the indexation because the A class is really indexed sooo … here i found my message
This could be a simple reproducer
SearchSession searchSession = Search.session((EntityManager) sessionFactory.getCurrentSession());
SearchIndexingPlan searchWritePlan = searchSession.indexingPlan();