Hi, I have a question about child-parent join in Elasticsearch, I have a real model like Category and Product.
"categoryRelations": {
"type": "join",
"eager_global_ordinals": true,
"relations": {
"category": [
"productContent",
"category"
]
}
}
and I design mapping in my index like that. My purpose here is category have child category, and in each category has its own product. Can i design like that or any suggestion for doing that? when I tried to put some data with relation category and parent it show exception: "DocValuesField "categoryRelations#category" appears more than once in this document (only one value is allowed per field)".
Thanks so much