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

Documents double indexed into System index and company index when performing a reindex on a single model

    Details

      Description

      Model documents are double indexed into System index and Company index when a model specific indexer is used.

      Steps to Reproduce:

      1. Go to Control Panel -> Users -> Users and Organizations, click the Organization Tab.
      2. Create a new Organization named "Org 1".
      3. Go to the Site Menu -> Content -> Blogs
      4. Create a new Blog named "Blog 1"
      5. Set up Kibana to connect with Elasticsearch - https://help.liferay.com/hc/en-us/articles/360043205591 should help.
      6. In Kibana's developer tab, run
        GET _search
        {
          "size": 500,
          "query": {
            "match_all": {}
          }
        }
      7. Search for "Org 1", you should find 1 entry in an Liferay company index (follows the same pattern as liferay-20098) which contains all results.
      8. Search for "Blog 1", you should find 1 entry in an Liferay company index which contains all results.
      9. Go to Control Panel -> Configuration -> Search, click on Index Actions
      10. Reindex com.liferay.portal.kernel.model.Organization and com.liferay.blogs.model.BlogsEntry.
      11. Research Kibana

      Expected Result: You find the same single results as previously.
      Actual Result: You will find 2 results, besides the company index, you will find a system index version (liferay-0)

      Doing a full reindex will remove the duplicated documents.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              joshua.chong Joshua Chong
              Reporter:
              joshua.cords Joshua Cords
              Participants of an Issue:
              Recent user:
              Sophia Zhang
              Engineering Assignee:
              Bryan Engler
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 3 weeks, 6 days ago
                Development End Date:

                  Packages

                  Version Package
                  7.0.0 DXP FP99
                  7.0.10.16 DXP SP16
                  7.0.X
                  7.1.10 DXP FP22
                  7.1.X
                  7.2.X
                  7.3.5 CE GA6
                  7.3.10 DXP GA1
                  7.4.13 DXP GA1
                  Master