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

              support-lep@liferay.com SE Support
              joshua.cords Joshua Cords
              Felipe Lins Felipe Lins
              Adam Brandizzi Adam Brandizzi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                1 year, 36 weeks, 4 days ago
                Development Start Date:

                Packages

                  Version Package