-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 8.10
-
Component/s: Elasticsearch
-
Release Notes Summary:The document restored from a previous version is correctly indexed in Elasticsearch
-
Backlog priority:900
-
Sprint:nxcore 9.3.6
-
Story Points:3
Reproduction case:
- create a document
- edit it, set its description to this is v1 and minor version it
- edit it again, set its description to this is v2 and minor version it
- check what is in docbase and in ES for this doc, get its UUID, curl -u Administrator:Administrator -O http://localhost:8080/nuxeo/api/v1/id/6bab6c4c-029d-4b42-aa18-d890a3b9561f/@rendition/xmlExport and curl localhost:9200/nuxeo/doc/6bab6c4c-029d-4b42-aa18-d890a3b9561f | python -m json.tool > esExport – both representations will have this is v2 in the dc:description
- restore the archived version for 0.1
- check docbase and ES again, the ES representation will have this is v1
- reindex the document in ES
- check the ES representation, it will have this is v2