Greetings,
We're experiencing an issue with mismatch between the database and Hibernate Search index when configuring properties with update="false"
We configure our object mapping using xml, and of course configure the index setting with annotations.
In one of our objects we have the following mapping configuration:
<property name="rank" column="rank" type="integer" update="false" /> <property name="topLevel" column="level" type="boolean" update="false" />
The problem is we also want these properties to be indexed, with the value that was initially set when the object was first persisted (hence update=false).
When we later update the object, those properties in the database remain unchanged as we require, but the index is updated with the new values! (zero).
Is there anyway we can get the Hibernate Search index to behave in the same manner?
Regards,
|