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

Adding one organization results in re-indexing entire company search index.

    Details

    • Branch Version/s:
      6.0.x
    • Backported to Branch:
      Committed

      Description

      When adding 1 organization, the entire company search index is re-indexed. It also reindexes the left/right and parent relationships to the organization, causing issues when there are over 15,000 organizations. This occurs in 6.0 SP2 as well.

      The code is as follows:
      // Indexer
      Indexer indexer = IndexerRegistryUtil.getIndexer(Organization.class);
      indexer.reindex(
      new String[]

      {String.valueOf(organization.getCompanyId())}

      );
      return organization;

      This will cause issues for big companies who require a large amount of organizations for their environments.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              arthur.hsiao Arthur Hsiao (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                10 years, 26 weeks, 4 days ago

                  Packages

                  Version Package
                  6.0.X EE
                  --Sprint 12/11
                  6.1.0 CE RC1