Hi,
I migration from old ES version to newest 6.2.2.
Right now I want to migrate from _parent to join using Java API:
XContentBuilder documentMapping = jsonBuilder()
.startObject()
.startObject("properties")
.startObject("join_field")
.field("type", "join")
.startObject("relations")
.field("entry", "comment")
.endObject()
.endObject()
.endObject()
.endObject();
Unfortunately I got a exception:
Exception in thread "main" MapperParsingException[Failed to parse mapping [_doc]: No handler for type [join] declared on field [join_field]]; nested: MapperParsingException[No handler for type [join] declared on field [join_field]];
Probably this type is not added yet do Java API?
I found something like parent-join-client, but I don't know how to use it.