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

Search results limits MB threads and Documents to only 50 results

    Details

      Description

      Steps to reproduce:

      1. Create 55 MB threads and documents each with a common substring, for example "Alpha1", "Alpha12" etc.
      2. Search for the common substring using new search
      3. The script generates 100 documents with the following name format:
        1. title: Alpha# (where # is the document number) e.g. Alpha,1 Alpha2
        2. description: bravo
          import com.liferay.portal.kernel.service.GroupLocalServiceUtil;
          import com.liferay.portal.kernel.service.ServiceContext;
          import com.liferay.portal.kernel.service.ServiceContextFactory;
          import com.liferay.portal.kernel.util.PortalUtil;
          import com.liferay.document.library.kernel.model.DLFileEntry;
          import com.liferay.document.library.kernel.service.DLAppServiceUtil;
          
          long repositoryId = GroupLocalServiceUtil.getFriendlyURLGroup(PortalUtil.getCompanyId(actionRequest), "/guest").getGroupId();
          long folderId = 0L;
          String sourceFileName = "";
          String mimeType = "";
          String title = "Alpha";
          String description = "bravo";
          String changeLog = "";
          byte[] bytes = new byte[0];
          ServiceContext serviceContext = ServiceContextFactory.getInstance(
          	DLFileEntry.class.getName(), actionRequest);
          
          int numberOfAssetsToCreate = 100;
          int progressReportInterval = 25;
          
          for (int i = 0; i < numberOfAssetsToCreate; i++) {
              DLAppServiceUtil.addFileEntry(
                  repositoryId, folderId, sourceFileName,
                  mimeType, title + i, description, changeLog,
                  bytes, serviceContext)
          
              if (i != 0 && i % progressReportInterval == 0) {
                  System.out.println("Created " + i + " documents");
              }
          }
          
          System.out.println("DONE");
          

      Expected Result: All 55 MB threads and documents should show up.

      Actual Result: Only 50 results per site show up.

      Reproduced on:
      Tomcat 9.0.6 + MySQL 5.7.22
      Portal Master Git SHA: c015a6f84c2c19c18f989302c3ad5e50a589cf9e

      Workaround: Enable Use Advanced Search Syntax or search for alpha*

      Does not affect Solr

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  19 weeks ago

                  Packages

                  Version Package