0 votes
1 view
in AWS by (19.2k points)

I tried to create an index with join datatype on new AWS Elasticsearch 6.0.

Following the instruction on Elasticsearch 6.0 document: https://www.elastic.co/guide/en/elasticsearch/reference/6.0/parent-join.html

PUT my_index

{

  "mappings": {

    "doc": {

      "properties": {

        "my_join_field": { 

          "type": "join",

          "relations": {

            "question": "answer" 

          }

        }

      }

    }

  }

}

Then I received the following error:

{

  "error": {

    "root_cause": [

      {

        "type": "mapper_parsing_exception",

        "reason": "No handler for type [join] declared on field [my_join_field]"

      }

    ],

    "type": "mapper_parsing_exception",

    "reason": "Failed to parse mapping [doc]: No handler for type [join] declared on field [my_join_field]",

    "caused_by": {

      "type": "mapper_parsing_exception",

      "reason": "No handler for type [join] declared on field [my_join_field]"

    }

  },

  "status": 400

}

I am wondering if I'm missing something?

1 Answer

0 votes
by (44.6k points)

There is a missing module in the AWS provided installation, so add it.

{

      "name" : "parent-join",

      "version" : "6.0.0",

      "description" : "whatever description",

      "classname" : "org.elasticsearch.join.ParentJoinPlugin",

      "has_native_controller" : false,

      "requires_keystore" : false

}

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...