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

UserLocalService.updateAsset() does not trigger reindex

    Details

      Description

      Steps to reproduce

      1. Log in with omni admin
      2. Add a Search portlet to a page
      3. Search for "tag1"
      4. Confirm that no results were found
      5. Go to Admin -> Control Panel -> Server Adminstration -> Script and run the following Groovy script
        import com.liferay.portal.service.UserLocalServiceUtil;
        import com.liferay.portal.model.User;
        import com.liferay.portal.util.PortalUtil;
        
        long companyId = PortalUtil.getDefaultCompanyId();
        
        User user = UserLocalServiceUtil.getUserByScreenName(companyId, "test");
        
        UserLocalServiceUtil.updateAsset(user.getUserId(), user, null, "tag1");
        
      6. Go back to the Search portlet and search for "tag1" again

      Result: No results were found
      Expected: Omni admin is listed

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 2 weeks, 6 days ago

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 M3