Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (19.1k 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.4k 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

}

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...