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

DLFileEntry results are not retrieved when using searchContext.setIncludeAttachments(true)

Details

    Description

      If you set searchContext.setIncludeAttachments(true)
      within postProcessSearchQuery(BooleanQuery, BooleanFilter, SearchContext) of your custom IndexerPostProcessor class, then DLFileEntries are not retrieved anymore by the search portlet.

      Reproduction:

      1. Start Liferay
      2. Deploy the attached plugin (indexer.post.processor.include.attachment.jar) which uses searchContext.setIncludeAttachments(true);
      3. Add a new DLFileEntry
      4. Use the search portlet on the welcome page to search the newly created DLFileEntry

      Result: DLFileEntry is not found
      Expected: It should be found

      Attachments

        Activity

          People

            yvonne.han Yvonne Han
            istvan.sajtos Istvan Sajtos
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              4 years, 1 week, 5 days ago

              Packages

                Version Package
                7.0.0 DXP FP84
                7.0.10.12 DXP SP12
                7.0.X
                7.1.10 DXP FP13
                7.1.X
                7.2.X