Hi, I have an abstract AbstractDocument class and indexed Letter class which is a subclass of AbstractDocument. When I run a fulltextquery with criteria in order to filter some letters out based on some AbstractDocument property (therefore criteria target entity is AbstractDocument) search comes up with "SearchException: Criteria query entity should match query entity".
I know I could target the criteria at Letter, but I want it to be targeted at AbstractDocument in order to be able to search over other documents too (I indexed Letter to test out but later other types would also be indexed).
Now, I am not sure weather it is a bug of Hibernate (all in all AbstractDocument is part of Letter) or I am doing something wrong.
Thanks in advance.
|