On 5.8.14 2:56 , Torgeir Veimo wrote:
So since that issue is unresolved, I assume I have to add the index manually. If I then use a naming scheme like name[index], I get an exception; javax.jcr.RepositoryException: Cannot create a new node using a name including an index
AFAIR you currently can't do that through the JCR API with Oak. This is only supported on Oak's internal interfaces: "the underlying oak-core and microkernel -level SNS nodes simply used the "name[index]" naming pattern with no extra semantics associated with it." [1]. We added this so Oak can cope with e.g. node type definitions, which make use of SNSs.
Michael [1] https://issues.apache.org/jira/browse/OAK-203
