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

Partial reindex creates Elasticsearch index but with wrong mappings

    Details

      Description

      In case of execute a partial reindex and Elasticsearch index doesn't exists, index is created but with wrong mappings

      Steps to reproduce

      1. Go to "Control Panel" => "Configuration" => "System Settings" => "Search" => "Elasticsearch 6"
        • Configure Liferay to use a remote Elasticsearch
        • Change index prefix from "liferay-" to "liferaytest-"
      2. Go to "Control Panel" => "Configuration" => "Search"
      3. Execute a partial reindex of "com.liferay.portal.kernel.model.User"
      4. Open http://<elasticsearch-ip>:9200/liferaytest-*/_mapping
      5. Check "entryClassName" mapping
        • Expected mapping: "type":"keyword","store":true
        • Wrong mapping: "type":"text","fields":{"keyword": {"type":"keyword","ignore_above":256

      The issue is also reproduced in case you manually delete Elasticsearch index.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                linda.sui Linda Sui
                Reporter:
                jorge.diaz Jorge Diaz
                Participants of an Issue:
                Recent user:
                Tibor Lipusz
                Engineering Assignee:
                André Ricardo Barreto de Oliveira
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.0.0 DXP FP92
                  7.0.X
                  7.1.X
                  7.2.10 DXP FP5
                  7.2.10.2 DXP SP2
                  7.2.X
                  7.3.1 CE GA2
                  Master