If the document id is not defined in the child class (which is persisted) but in the parent class, the following exception occurs:
org.hibernate.HibernateException: could not init listeners
Caused by: org.hibernate.search.SearchException: No document id in: org.mycompany.hibernate.search.MySubClass
I attached a simple example. It is a maven project which the test fails until the document id in the MySubClass class is not uncommented.
Hibernate 3.5.1, hsqldb 22.214.171.124
I can confirm this issue is still present with
Hibernate Core 3.5.6-Final
Hibernate Search 3.2.0.Final
Is there a known workaround (other than duplicating docid into parent class) ?
Was fixed some time ago in Hibernate Search 6.