Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-16188

Elasticsearch must index valid document with a null docid

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.8.0-HF27, 6.0-HF01
    • Fix Version/s: 5.8.0-HF28, 6.0-HF02, 7.1
    • Component/s: Elasticsearch

      Description

      VCS accepts to save transient document that point to existing document.

      For instance:

      DocumentModel tmpDoc = session.createDocumentModel("/", "myfile", "File");
      DocumentModel doc = session.createDocument(tmpDoc);
      // change the transient document instead of the returned one
      tmpDoc.setPropertyValue("dc:title", "NewTitle");
      session.saveDocument(tmpDoc);
      

      The tmpDoc in the above ex has a null docId. The update is persisted in VCS but not indexed by ES because it complains about a null doc id.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: