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

Content Pages only become searchable after publish

    Details

      Description

      Steps to reproduce

      Scenario 1:

      0. Create a new site

      1. Create a page fragment with the following static content:

      <p>lorem ipsum</p>

      2. Create a public content page (page 1) from the fragment

      3. Checkpoint: Go to Site Builder > Pages and searching for "page 1" or "lorem" or "ipsum" returns page 1 as a hit

      4. Enable Local Live Staging for the site with default settings

      5. Go to Site Builder > Pages of the staging site: Search for "lorem" or "ipsum"

      Actual result: page 1 is not returned 
      Expected result: page 1 is returned in Search Results

       

      6. Additionally, create page 2 like page 1 on the staging site and publish it to live

      Actual result: Search only finds it on the staging site

       

      Scenario 2:

      Repeat Step 1-3 and from the Control Panel > Configuration > Search reindex all search indexes (no need for Staging)

      Search for "lorem"

      Actual result: page 1 is not returned 
      Expected result: page 1 is returned in Search Results

      Restarting DXP will result in the missing pages turning up in search.

       

      During Staging publish LayoutModelDocumentContributor reads serviceContext.getRequest() as null during #contribute(Document document, Layout layout)

      During Control Panel Search reindex, LayoutModelDocumentContributor#contribute(Document document, Layout layout) is not called.

       

        Attachments

          Activity

            People

            Assignee:
            lu.liu Lu Liu
            Reporter:
            balazs.safrany-kovalik Balázs Sáfrány-Kovalik
            Participants of an Issue:
            Recent user:
            Jayda Wu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 38 weeks, 3 days ago

                Packages

                Version Package
                7.1.10 DXP FP15
                7.1.X
                7.2.10 DXP FP2
                7.2.10.1 DXP SP1
                7.3.10 DXP GA1
                Master