You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by "Serge Huber (Jira)" <ji...@apache.org> on 2021/10/11 12:37:00 UTC

[jira] [Created] (UNOMI-516) Error in migration from 1.4 to 1.5 when no import/export configs have been used

Serge Huber created UNOMI-516:
---------------------------------

             Summary: Error in migration from 1.4 to 1.5 when no import/export configs have been used
                 Key: UNOMI-516
                 URL: https://issues.apache.org/jira/browse/UNOMI-516
             Project: Apache Unomi
          Issue Type: Bug
          Components: core
    Affects Versions: 1.5.7
            Reporter: Serge Huber
             Fix For: 2.0.0, 1.6.0
         Attachments: unomierror.png

When migrating from 1.4 with a dataset that never used import / export conditions and possibly other indexes that have empty property mappings the following error occurs:

!unomierror.png!

A workaround is to force some mappings to exist for example with the following request:

{code}
curl -X PUT “localhost:9200/context/_mapping/importconfig?pretty” -H ‘Content-Type: application/json’ -d’
{
  “properties”: {
  “itemId”: {
    “analyzer”: “folding”,
    “type”: “text”,
    “fields”: {
      “keyword”: {
        “ignore_above”: 256,
        “type”: “keyword”
        }
      }
    }
  }
}
'
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)