Hi All,

when using the batch inserter java code below the property "name" doesn't 
appear on the node when I check it via a Cypher query.
The property "aka" does however appear on the node. If i don't add the 
"aka" property then the "name" property appears.

I have been scratching me head on this for a while now - I can't seem to 
create both "name" and "aka" properties.

Thanks for any help, John,



inserter.createDeferredSchemaIndex(MyLabel.Person).on("name").create();

...........

Map<String, Object> propertyName = new HashMap<String, Object>();

propertyName.put("name", nd.name);


long nodeId = -1;    

nodeId = inserter.createNode(propertyName, MyLabel.Person);


String[] aka = new String[nd.akaNames.size()];

aka = nd.akaNames.toArray(aka);         

Map<String, Object> propertyAka = new HashMap<String, Object>();

propertyAka.put("aka", aka);

inserter.setNodeProperties(nodeId, propertyAka);

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to