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

LiferayDocumentType defaults are excluded when using Additional Type Mappings in the Elasticsearch configuration

    Details

      Description

      Defaults are excluded when providing a mapping that uses the root element: LiferayDocumentType.

      Steps to Reproduce

      1. Startup Liferay DXP
      2. Lookup the current declared mapping type: LiferayDocumentType
        1. Navigate to Elasticsearch's Restful API to view the mapping for LiferayDocumentType
        2. Notice that template_long_sortable is declared
      3. Navigate to Control Panel -> Configuration -> System Settings
        1. Navigate to Foundation -> Elasticsearch 6
        2. Add the following entry to Additional Type Mappings:
          { 
          	"LiferayDocumentType": {
          	    "dynamic_templates": []
          	}
          }
          
        3. Click Save/Update
      4. Navigate to Control Panel -> Configuration -> Server Administration
        • Execute: Reindex all search indexes
      5. Lookup the updated mapping type: LiferayDocumentType
        1. Navigate to Elasticsearch's Restful API to view the mapping for LiferayDocumentType

      Expected Result
      The mapping for template_long_sortable should still be declared

      Actual Results
      The mapping for template_long_sortable is no longer declared, as well as many other default dynamic mappings

        Attachments

          Activity

            People

            Assignee:
            brian.chan Brian Chan
            Reporter:
            eric.yan Eric Yan
            Participants of an Issue:
            Recent user:
            Tibor Lipusz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 20 weeks, 4 days ago

                Packages

                Version Package
                7.0.X
                7.1.0 M2
                7.1.X
                Master