Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-6855

Reindex unable to parse custom mapping defined in Studio

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2022.5.6
    • Component/s: Studio Modeler

      Description

      Steps to Reproduce:

      1. In Studio Modeler, navigate to Search -> Elasticsearch Mapping
      2. Add a mapping for any field
      3. Deploy Studio project to instance
      4. Attempt a full repository reindex

      Expected Results: Able to reindex with custom mapping defined in Studio applied
      Actual Results: The following error is received

      An error occurred while putting the mapping: 
      {
        "dc:subjects" : {
          "type" : "keyword",
          "copy_to" : "all_field"
        }
      } 
      into ElasticSearch configuration, org.elasticsearch.client.ResponseException: method [PUT], host [http://localhost:9200], URI [/nuxeo/_mapping], status line [HTTP/1.1 400 Bad Request]
      {"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters:  [dc:subjects : {copy_to=all_field, type=keyword}]"}],"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters:  [dc:subjects : {copy_to=all_field, type=keyword}]"},"status":400}
      

      NOTE: This is the error received after fixing issue in NXS-6854

      The json generated by Studio should include properties, e.g.

      {
        "properties": {
          "dc:subjects" : {
            "type" : "keyword",
            "copy_to" : "all_field"
          }
        }
      } 
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: