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

Expired Web Contents are being indexed in Live and not in Staging

    Details

      Description

      To expire staged Web Content deletes its indexed lucene document but if you publish to live the expired web content a new lucene-document is created for the default version.

      Steps to reproduce:

      1. Create a Site1, add a page (home)
      2. Create a Web Content in Site1:
      title: test-1
      content: test-1
      3. Edit the Web Content creating the version 1.1 with:
      title: test-1
      content: MODIFIED test-1
      4. Add the Web Content to the home (with a Web Content Display).
      5. Open Lucene index with Luke and search for title: test*
      -> Results: one document with version 1.1
      6. Enable Local Staging in Site1, selecting only Web Content as staged data.
      7. Reopen Lucene index with Luke and search for title: test*
      -> Results: two documents with version 1.1, one for staging (field stagingGroup=true) and one for live (field stagingGroup=false)
      8. Go to Control Panel > Site1 (Staging) > Web Content, check the test-1 WC and expire (all the content )
      7. Reopen Lucene index with Luke and search for title: test*
      -> Results: only the document for live (version 1.1)
      9. Publish the home page to live (with this action the web content will be published to live because is referred by the WC Display in the page)
      10. Reopen Lucene index with Luke and search for title: test*
      -> Results: one document for live (stagingGroup=false, version 1.0 and status=3 (expired) )

      Expected: Results in lucene must be the same in Staging and Live for the same web content.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pani.gui Pani Gui (Inactive)
                Reporter:
                jose.jimenez Jose Jimenez
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 years, 49 weeks, 4 days ago

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.0 CE B1