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

At 6.2.x, after the publication to live, deleted objects are not removed from search index

    Details

      Description

      After the publication to live, deleted objects are not removed from search index

      This bug was caused by LPS-50379, we are disabling indexing system during Staging process and after that:

      • We only reindex the objects that we have published from staging to Live
      • All deleted objects at Live are not deleted from index

      Steps to reproduce

      1. Create a site and activate Staging local
      2. Create a vocabulary called "Voc1" with a category called "Cat1"
      3. Create a tag called "Tag1"
      4. Create a webcontent and a document at document library and categorize them with both "Cat1" and "Tag1"
      5. Create a page and add to it the search portlet
      6. Publish all this objects to Live
      7. At search portlet execute a search at Staging and Live side with "Cat1" and "Tag1"
        • Output: both webcontent and document will be displayed
      8. Delete both webcontent and document
      9. Publish publish again from Staging to Live. Only deletions of both objects should be published at Live
      10. At search portlet execute a search at Staging and Live side with "Cat1" and "Tag1"
        • Staging behaviour: Cat1/Tag1 will not display any result at search and all counters at left will display zero values
        • Wrong behaviour at Live: Cat1/Tag1 will not display any result at search but all counters at left will display non-zero values
        • Correct behaviour at Live: Live search should have same behaviour than Staging

      Additional note: You can also verify this wrong behaviour connecting to Lucene / Elastic Search index and verifying that objects are not deleted there.

        Attachments

        1. error_search_live.png
          error_search_live.png
          25 kB
        2. fixed.png
          fixed.png
          36 kB
        3. reproduced.png
          reproduced.png
          21 kB

          Issue Links

            Activity

              People

              • Assignee:
                hong.zhao Hong Zhao
                Reporter:
                jorge.diaz Jorge Diaz
                Participants of an Issue:
                Recent user:
                Hai Yu
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 9 weeks, 3 days ago

                  Packages

                  Version Package
                  6.2.X EE