Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-123622

partial reindexing does not remove fields which are empty

    Details

      Description

      Partial reindexing using updatePermissionFields does not remove fields which are empty.

      Example, a document is indexed with an array of groupRoleIds, then the document tries to be reindexed with an empty array of groupRoleIds using the updatePermissionFields.

      Expected Result: The document indexed in the ES cluster will not have a groupRoleIds field.
      Actual Result: The document indexed in the ES cluster's groupRoleIds field is unchanged because Liferay's logic strips out empty fields during translation.

      Method called in example: IndexerWriterImpl.updatePermissionFields

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              joshua.cords Joshua Cords
              Participants of an Issue:
              Recent user:
              Tibor Lipusz
              Engineering Assignee:
              Adam Brandizzi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Days since last comment:
                38 weeks ago
                Development Start Date:

                  Packages

                  Version Package