"AssertionFailure: Unexpected duplicate key" when an entity has two getters for the same property
It's technically possible to write a class with a duplicate getter, e.g.:
Currently, when Hibernate Search encounters such a property, it will throw a cryptic exception at bootstrap:
We should at least avoid the error when the property is not used in the Hibernate Search mapping, and probably just pick one of the getter and log a warning when the property is used.
I also cause this failure
It’s message too simple and I found it very hard
Finally I find it’s problem, like this:
when I delete isValid method, It’s okay…