4teamwork / ftw.solr

Solr integration for Plone
5 stars 5 forks source link

Extract handler overwrites previously indexed fields #137

Closed lukasgraf closed 5 years ago

lukasgraf commented 5 years ago

The extract commands will usually be the very last operations that will get executed, since the extraction is usually done in an afterCommitHook. Because the extract handler doesn't support atomic updates, it needs to include all the fields again in full.

The collection of that data is however performed much earlier, at the time when the extract command is queued. For new objects created in the very same request, this means that the time those metadata fields get read from the object might be too early.

In the case of the bumblebee_checksum in GEVER, the following seems to happen: