In some situations we have both the "before" and "after" state of the domain model which needs to be re-indexed.
Today we apply a dirty-checking strategy which hooks into Hibernate ORM's knowdledge of changed fields, but we could have a second step in which we compare the built Document in it's pre- and after- shape, to see if it's acceptable to avoid sending any update to the indexing backend.
See also https://issues.jboss.org/browse/ISPN-1865
|