Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-26781

Add a default ES mapping for ecm:title

    XMLWordPrintable

    Details

    • Release Notes Summary:
      A default Elasticsearch mapping is added for the field ecm:title.
    • Tags:
    • Backlog priority:
      600
    • Sprint:
      nxcore 11.1.4
    • Story Points:
      1

      Description

      Under certain circumstances, the field ecm:title is incorrectly auto-mapped to an ES numeric or date type. The consequence is that the ES index is unusable since it rejects all documents with a dc:title property value that is non-numeric or not-a-date (which is most of them).

      The incorrect auto-mapping may happen when an ES full reindex is initiated and the first document re-indexed has a "dc:title" property whose value is a valid number or date. When an ES full re-index is, the error is triggered.

      One solution is to set a default mapping for ecm:title in templates/common-base/nxserver/config/elasticsearch-doc-mapping.json, for example

          "ecm:title": {
              "type": "keyword",
              "ignore_above": 256,
              "copy_to": "all_field"
          },
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours
                4h