Uploaded image for project: 'Nuxeo Admin Console'
  1. Nuxeo Admin Console
  2. NAC-275

ElasticSearch Reindexing - Modify select query for count of folder type document & children

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Admin Console

      Description

      A folder-type document containing child documents of various types (e.g., pictures, notes, XML) currently returns a total count that includes hidden documents, versions, and trashed items, which are not visible in the UI. However, during reindexing, only the visible documents are processed, excluding the hidden, versioned, or trashed ones, resulting in a mismatch between the displayed count and the number of documents reindexed. To maintain consistency between the UI and reindexing, the query should be adjusted to exclude these hidden or irrelevant documents when fetching the count and reindexing.

      SELECT * FROM Document WHERE ecm:uuid=<document-uuid> OR ecm:ancestorId=<document-ancestorId> AND ecm:isProxy = 0 AND ecm:mixinType != 'HiddenInNavigation'
              AND ecm:isVersion = 0 AND ecm:isTrashed = 0
      

        Attachments

        There are no Sub-Tasks for this issue.

          Activity

            People

            • Assignee:
              schoudhury schoudhury
              Reporter:
              schoudhury schoudhury
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 day, 1 hour
                1d 1h
                Remaining:
                Time Spent - 3 hours Remaining Estimate - 5 hours
                5h
                Logged:
                Time Spent - 3 hours Remaining Estimate - 5 hours
                3h