Closed Hadjerkhd closed 3 years ago
Hi @Hadjer13
You cannot pass custom string values in a property field like "my_join_field": "member"
because those are evaluated. However I understand the use case, so we will add this possibility in the next release.
Also, this is not valid, and I don't think we will support nested syntax, best is to return a map from a query
"my_join_field": {
"name": "made_parent",
"parent": "query('match (m:Member)-[:ADD_VOTE]>(r:Vote) where id(r) = {id} return m.uuid as value')"
}
Thank you sir for your quick relpay , I think I'll go for the 'return map from a query' option to implement this , then change the mapping of the index in ES to parent-child join. And I hope this is will give the expected result.
Hello @ikwattro , I have the following one-to-many relation that I want to index as a parent-child relation.
Member-[:MAKE]->Vote
where Member is the parent and Vote is the child.
I'm tried to use this mapping file :
But I got the following exeption when staring neo4j server :
the pointed line in the code
[Source: (File); line: 17, column: 34]
refers to this"my_join_field": {
I hope I can find an answer to my question here. Thanks in advance !